Function at 0x4065fc
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
xor edx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x406b77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
jne 0x406642
mov ecx, 0xdb
mov edx, 0x406b8c
mov eax, 0x406bbc
call fcn.004748c4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x40665f
mov ecx, 0xdc
mov edx, 0x406b8c
mov eax, 0x406bdc
call fcn.004748c4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x40667c
mov ecx, 0xdd
mov edx, 0x406b8c
mov eax, 0x406bfc
call fcn.004748c4
mov dl, 1
mov eax, dword [0x452014]
call fcn.00473be8
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x452014]
call fcn.00473be8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call sym.DnPatch.exe__Cpatutls_Dir_qqr17System_AnsiStringp16Classes_TStrings
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0xc]
call sym.DnPatch.exe__Cpatutls_Dir_qqr17System_AnsiStringp16Classes_TStrings
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.004626e0
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x406b40
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, sym.DnPatch.exe__Cpatches_PatchSign
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.00462738
mov eax, dword [ebp - 4]
lea edx, [eax + 0x4c]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.00462738
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x50]
mov eax, dword [ebp - 0x1c]
call sym.DnPatch.exe__Cpatutls_WriteStr_qqri17System_AnsiString
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 0x1c]
call sym.DnPatch.exe__Cpatutls_WriteStr_qqri17System_AnsiString
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x58]
mov eax, dword [ebp - 0x1c]
call sym.DnPatch.exe__Cpatutls_WriteStr_qqri17System_AnsiString
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 0x1c]
call sym.DnPatch.exe__Cpatutls_WriteStr_qqri17System_AnsiString
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0x1c]
call sym.DnPatch.exe__Cpatutls_WriteStr_qqri17System_AnsiString
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x44], 0
je 0x406791
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x406791
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jge 0x406789
inc dword [ebp - 0x18]
inc dword [ebp - 0x10]
dec dword [ebp - 0x2c]
jne 0x406769
mov eax, dword [ebp - 4]
cmp word [eax + 0x8a], 0
je 0x4067bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x88]
mov dword [eax + 0x28], ecx
mov ecx, dword [edx + 0x8c]
mov dword [eax + 0x2c], ecx
mov eax, dword [ebp - 4]
cmp word [eax + 0x92], 0
je 0x4067e7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x90]
mov dword [eax + 0x30], ecx
mov ecx, dword [edx + 0x94]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 4]
cmp word [eax + 0x9a], 0
je 0x406812
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x98]
mov dword [eax + 0x38], ecx
mov ecx, dword [edx + 0x9c]
mov dword [eax + 0x3c], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0xa4], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x72], 0
je 0x406838
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x74]
call dword [ebx + 0x70]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4069a5
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
je 0x4069a5
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x84]
call dword [ebx + 0x80]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jl 0x4068be
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
call fcn.00474c6c
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call sym.DnPatch.exe__Cfilepat_TFilePatch_SetOldFileName_qqr17System_AnsiString
jmp 0x4068ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
xor edx, edx
call sym.DnPatch.exe__Cfilepat_TFilePatch_SetOldFileName_qqr17System_AnsiString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
add eax, 0x10
mov edx, dword [ebp - 0x24]
call fcn.004749bc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
call fcn.00474c6c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call sym.DnPatch.exe__Cfilepat_TFilePatch_SetNewFileName_qqr17System_AnsiString
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x5c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xa0]
mov byte [edx + 0x20], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xa0]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0x1c]
call sym.DnPatch.exe__Cfilepat_TFilePatch_GenPatch_qqri
test al, al
je 0x406965
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, 0x406c18
call fcn.004636fc
jmp 0x406999
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, 0x406c28
call fcn.004636fc
mov eax, dword [ebp - 0x28]
call fcn.00474e18
push eax
call sub.KERNEL32.DLL_OutputDebugStringA
inc dword [ebp - 0x10]
dec dword [ebp - 0x2c]
jne 0x406854
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x44], 0
je 0x406ae6
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x406ae6
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
je 0x406ae6
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jge 0x406ada
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x84]
call dword [ebx + 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
add eax, 0x10
mov edx, dword [ebp - 0x24]
call fcn.004749bc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x24]
call fcn.00474c6c
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
call sym.DnPatch.exe__Cfilepat_TFilePatch_SetOldFileName_qqr17System_AnsiString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
xor edx, edx
call sym.DnPatch.exe__Cfilepat_TFilePatch_SetNewFileName_qqr17System_AnsiString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov edx, dword [ebp - 0x1c]
call sym.DnPatch.exe__Cfilepat_TFilePatch_GenPatch_qqri
test al, al
je 0x406aa6
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, 0x406c44
call fcn.004636fc
jmp 0x406ada
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, 0x406c54
call fcn.004636fc
mov eax, dword [ebp - 0x28]
call fcn.00474e18
push eax
call sub.KERNEL32.DLL_OutputDebugStringA
inc dword [ebp - 0x10]
dec dword [ebp - 0x2c]
jne 0x4069d9
mov byte [ebp - 0x1d], 0x45
lea edx, [ebp - 0x1d]
mov ecx, 1
mov eax, dword [ebp - 0x1c]
call fcn.00462738
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b47
mov eax, dword [ebp - 0xc]
call fcn.00473c18
mov eax, dword [ebp - 8]
call fcn.00473c18
mov eax, dword [ebp - 0x1c]
call fcn.004627a8
mov eax, dword [ebp - 4]
cmp word [eax + 0x7a], 0
je 0x406b35
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x7c]
call dword [ebx + 0x78]
mov eax, dword [ebp - 4]
mov byte [eax + 0xa4], 0
ret