Skip to content

Commit

Permalink
Merge pull request #254 from matanki-saito/feature/1_37
Browse files Browse the repository at this point in the history
epic version 1.37.1.0
  • Loading branch information
matanki-saito authored May 26, 2024
2 parents 808b602 + 4b5e5e1 commit 3a4414d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Plugin64/file_save.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace FileSave {
void fileSaveProc6();
void fileSaveProc6V130();
void fileSaveProc6V137();
void fileSaveProc6V137E();
void fileSaveProc7();
void fileSaveProc7V137();
void fileSaveProc8();
Expand Down Expand Up @@ -528,7 +529,22 @@ namespace FileSave {
Injector::MakeJMP(address, fileSaveProc6V137, true);
}
else {
e.fileSave.unmatchdFileSaveProc6Injector = true;
// mov [rsp+3E0h+var_390], 0C0h
BytePattern::temp_instance().find_pattern("C7 44 24 50 C0 00 00 00 48 8D 95 A0 00 00 00");
if (BytePattern::temp_instance().has_size(1, u8"スタート画面でのコンティニューのツールチップ")) {
// lea rdx, [rbp+2E0h+var_240]
uintptr_t address = BytePattern::temp_instance().get_first().address(0x8);

fileSaveProc6CallAddress = (uintptr_t)utf8ToEscapedStr2;

// call xxxxx
fileSaveProc6ReturnAddress = address + 0x23;

Injector::MakeJMP(address, fileSaveProc6V137E, true);
}
else {
e.fileSave.unmatchdFileSaveProc6Injector = true;
}
}
break;
default:
Expand Down
18 changes: 18 additions & 0 deletions Plugin64/file_save_asm.asm
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,24 @@ fileSaveProc6V137 ENDP

;-------------------------------------------;

fileSaveProc6V137E PROC
lea rdx, [rbp+2E0h-240h]
mov rcx, rdx
call fileSaveProc6CallAddress
mov rdx, rax
mov r8, [rdx+10h]
cmp qword ptr [rdx+18h], 10h
jb JMP_A
mov rdx, [rdx]
JMP_A:
lea rcx, [rsp+3E0h-388h]

push fileSaveProc6ReturnAddress;
ret;
fileSaveProc6V137E ENDP

;-------------------------------------------;

fileSaveProc7 PROC

lea rcx, [rsp + 58h - 30h];
Expand Down

0 comments on commit 3a4414d

Please sign in to comment.