Function at 0x405230
Capabilities:
Check for software breakpoints
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428edb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x504
mov al, byte [0x432385]
push ebx
push esi
push edi
test al, 1
mov esi, ecx
jne 0x405277
mov bl, al
or bl, 1
mov byte [0x432385], bl
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x1f
and al, 1
mov byte [0x432384], al
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x38], 1
mov eax, dword [ebx]
dec eax
cmp eax, 7
ja case.0x40528d.5
jmp dword [eax*4 + 0x405b74]
push ebx
mov ecx, esi
call fcn.00405ba0
mov dword [ebp - 0x38], eax
jmp case.0x40528d.5
mov eax, dword [ebx + 0x10]
xor edi, edi
mov dword [esi + 0xbc], eax
mov ecx, dword [ebx + 0x24]
mov dword [0x43238c], ecx
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x30]
push eax
push ecx
lea ecx, [esi + 0xc4]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edi
call fcn.0040bf40
mov eax, dword [ebp - 0x30]
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x10], edx
mov ecx, dword [ebx + 8]
mov dword [esi + 0xc0], ecx
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x30]
push eax
push ecx
lea ecx, [esi + 0x134]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edi
call fcn.0040dc20
mov edx, dword [ebp - 0x30]
push 0x431830
lea eax, [ebp - 0x18]
mov dword [edx + 0x10], edi
lea edi, [esi + 0x70]
push edi
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push edx
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.00407910
mov eax, dword [0x432388]
test eax, eax
jne 0x4053c9
push 0x12
call dword [sym.imp.IMAGEHLP.dll_SymSetOptions]
lea ecx, [ebp + 8]
call fcn.00426fd2
lea ecx, [esi + 0x6c]
push 0x5c
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [esi + 0x6c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00426fc6
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0xbc]
push 0
push ecx
push edx
call dword [sym.imp.IMAGEHLP.dll_SymInitialize]
test eax, eax
je 0x4053bd
mov dword [0x432388], 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebx + 0x18]
mov ecx, dword [esi + 0x6c]
push eax
mov eax, dword [ebx + 0xc]
push edx
push ecx
push ecx
mov ecx, dword [esi + 0xbc]
push eax
push ecx
call dword [sym.imp.IMAGEHLP.dll_SymLoadModule]
lea ecx, [ebp - 0x24]
call fcn.00426fd2
mov edx, dword [ebx + 0x18]
mov eax, dword [edi]
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x43180c
push ecx
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x4324dc]
add esp, 0x10
cmp eax, 1
jne 0x405442
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 8]
push edx
push eax
push 1
push 5
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push edi
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x1c], esp
jmp 0x405467
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 8]
push ecx
push edx
push 1
push 5
push ecx
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x431800
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004082a0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
jmp 0x405b57
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], ecx
xor edi, edi
push edx
push eax
lea ecx, [esi + 0xc4]
mov dword [ebp - 0x10], edi
call fcn.0040bf40
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebx + 0xc]
mov dword [edx + 0x10], ecx
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x30]
push ecx
push edx
lea ecx, [esi + 0x134]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
call fcn.0040dc20
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x10], edi
jmp case.0x40528d.5
add ebx, 8
lea edi, [esi + 0xc4]
push ebx
mov ecx, edi
call fcn.0040fd40
lea ecx, [ebp - 0x28]
push ebx
push ecx
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.0040c590
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp eax, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
je 0x405529
lea ecx, [ebp - 0x18]
call fcn.0040c710
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
cmp eax, edx
jne 0x405514
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea edx, [ebp + 8]
push ecx
push eax
push edx
mov ecx, edi
call fcn.0040a4b0
add esi, 0x134
push ebx
mov ecx, esi
call fcn.0040ffc0
mov edi, eax
lea eax, [ebp - 0x28]
push ebx
push eax
mov ecx, esi
call fcn.0040f810
mov ebx, dword [eax]
cmp ebx, edi
mov dword [ebp + 8], ebx
je 0x40556b
lea ecx, [ebp + 8]
call fcn.00410050
cmp dword [ebp + 8], edi
jne 0x40555e
push edi
lea ecx, [ebp - 0x18]
push ebx
push ecx
mov ecx, esi
call fcn.0040ae50
jmp case.0x40528d.5
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x405694
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x405694
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x30]
push eax
push ecx
lea ecx, [esi + 0xc4]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0
call fcn.0040bf40
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebx + 0x10]
mov eax, dword [edx + 0x10]
mov dword [esi + 0x90], ecx
mov cl, byte [0x432384]
test cl, cl
je 0x405684
lea edx, [ebp - 0x510]
mov dword [ebp - 0x510], 0x10001
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x405694
mov eax, dword [ebp - 0x458]
test eax, 0x80000000
jne 0x405694
push 0xcc
push eax
mov ecx, esi
call fcn.00407230
cmp al, 0xcc
mov byte [ebp + 0xb], al
je 0x405694
mov ecx, dword [ebp - 0x458]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
lea edi, [esi + 0xac]
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x30], edx
call fcn.0040b810
mov edx, dword [ebp - 0x14]
mov al, byte [ebp + 0xb]
mov byte [edx + 0x10], al
mov ecx, dword [ebp - 0x458]
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x30], edx
call fcn.0040b810
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x14], 0
jmp 0x405694
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00408bb0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x144]
lea edx, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x14]
push ecx
push edx
lea ecx, [esi + 0xc4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
call fcn.0040bf40
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x144]
lea edi, [ebx + 0xc]
push eax
mov edx, dword [ecx + 0x10]
push edi
push edx
mov ecx, esi
mov dword [ebp - 0x28], edi
call fcn.00407440
test eax, eax
je 0x4058eb
lea edi, [ebp - 0x144]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x8c]
not ecx
dec ecx
test eax, eax
jne 0x405773
cmp ecx, 8
jl 0x405773
lea eax, [ebp + ecx - 0x14c]
push str.flog.dll
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x405773
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + 0xbc]
push str.ManDoHook
push eax
push ecx
mov dword [esi + 0x94], eax
call fcn.00404f10
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
push edx
mov edx, dword [esi + 0xbc]
push 5
push ecx
push eax
push edx
mov dword [esi + 0x8c], eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [ebp - 0x14], 0xe9
jne 0x405773
mov eax, dword [ebp - 0x13]
mov ecx, dword [esi + 0x8c]
add eax, 5
add ecx, eax
mov dword [esi + 0x8c], ecx
lea ecx, [ebp - 0x18]
call fcn.00426fd2
mov ecx, dword [ebx + 0x10]
lea edx, [ebp - 0x144]
push ecx
push edx
lea eax, [ebp - 0x18]
push 0x4317d4
push eax
mov dword [ebp - 4], 7
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [ebp + 8]
push eax
push edx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [0x4324dc]
mov ecx, dword [ebx + 8]
cmp eax, 1
mov eax, dword [ebx + 0x10]
push eax
push ecx
push 1
push 5
push ecx
mov byte [ebp - 4], 9
mov ecx, esp
jne 0x4057fe
lea edx, [ebp + 8]
mov dword [ebp - 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x1c], esp
jmp 0x405814
lea edx, [ebp - 0x18]
mov dword [ebp - 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x431800
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.004082a0
push 0x2e
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xc
call fcn.00426fc6
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4058c1
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 0x24]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edx
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00407910
mov edi, dword [ebp - 0x28]
push 0
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4058c1
mov ecx, dword [ebx + 0x10]
mov edx, dword [edi]
push eax
mov eax, dword [ebp - 0x24]
push ecx
push eax
push eax
mov eax, dword [esi + 0xbc]
push edx
push eax
call dword [sym.imp.IMAGEHLP.dll_SymLoadModule]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp - 0x28]
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x40528d.5
mov ecx, dword [esi + 0x14c]
mov edx, dword [ebx + 0xc]
or edi, 0xffffffff
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp + 8], edi
jle 0x40592b
mov edi, dword [esi + 0x148]
cmp edx, dword [edi]
je 0x405925
inc eax
add edi, 0xc
cmp eax, ecx
jl 0x405917
jmp 0x405928
mov dword [ebp + 8], eax
mov edi, dword [ebp + 8]
cmp edx, dword [esi + 0x94]
jne 0x405941
xor eax, eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x8c], eax
cmp edi, 0xffffffff
je 0x405a4e
lea ecx, [ebp - 0x18]
call fcn.00426fd2
mov eax, dword [esi + 0x148]
mov edx, dword [ebp - 0x20]
lea edi, [edi + edi*2]
push edx
shl edi, 2
lea edx, [ebp - 0x18]
mov dword [ebp - 4], 0xe
mov ecx, dword [eax + edi + 4]
push ecx
push 0x4317b4
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebx + 8]
add esp, 0x10
lea edx, [ebp - 0x18]
push eax
push ecx
push 5
push 8
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4317a8
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.004082a0
mov eax, dword [esi + 0x14c]
mov edx, dword [ebp + 8]
sub eax, edx
mov ebx, edi
dec eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x148]
add ebx, eax
mov dword [ebp - 0x1c], ebx
lea ecx, [ebx + 8]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [ebx + 4]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x28]
add ebx, 0xc
mov ecx, eax
dec eax
test ecx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], eax
jne 0x4059dc
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x405a32
mov eax, dword [esi + 0x148]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
shl edx, 2
lea ecx, [ecx + ecx*2 + 3]
push edx
lea edx, [eax + ecx*4]
add eax, edi
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, dword [esi + 0x14c]
mov dword [ebp - 4], 0xffffffff
dec eax
lea ecx, [ebp - 0x18]
mov dword [esi + 0x14c], eax
jmp 0x405b57
lea ecx, [ebp + 8]
call fcn.00426fd2
mov edi, dword [ebp - 0x20]
lea eax, [ebp + 8]
push edi
push 0x43178c
push eax
mov dword [ebp - 4], 0x11
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebx + 8]
add esp, 0xc
lea edx, [ebp + 8]
push edi
push ecx
push 5
push 8
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 0x12
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x4317a8
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.004082a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
jmp 0x405b57
xor ecx, ecx
lea eax, [ebp - 0x1c]
mov cx, word [ebx + 0x12]
push eax
mov eax, dword [ebx + 0xc]
lea edx, [ebp - 0x244]
push ecx
mov ecx, dword [esi + 0xbc]
push edx
push eax
push ecx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp + edx - 0x244], 0
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0x13
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x405b4d
mov edx, dword [ebx + 8]
push 0
push edx
push 4
push 7
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [ebp - 4], 0x14
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x431780
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.004082a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4