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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42a0fa
push eax
mov al, byte [0x433385]
mov dword fs:[0], esp
sub esp, 0x508
test al, 1
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x4055d5
mov bl, al
or bl, 1
mov byte [0x433385], bl
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x1f
and al, 1
mov byte [0x433384], al
mov ebp, dword [esp + 0x528]
mov dword [esp + 0x40], 1
mov eax, dword [ebp]
dec eax
cmp eax, 7
ja case.0x4055f1.5
jmp dword [eax*4 + 0x406004]
push ebp
mov ecx, esi
call fcn.00406030
mov dword [esp + 0x40], eax
jmp case.0x4055f1.5
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 0xb8], eax
mov ecx, dword [ebp + 0x24]
mov dword [0x43338c], ecx
mov edx, dword [ebp + 8]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esi + 0xc0]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
call fcn.0040c890
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp + 8]
mov dword [esi + 0xbc], ecx
mov edx, dword [ebp + 8]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esi + 0x130]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
call fcn.0040e580
mov edx, dword [esp + 0x2c]
lea edi, [esi + 0x70]
push 0x432830
lea eax, [esp + 0x20]
push edi
push eax
mov dword [edx + 0x10], ebx
call sub.MFC42.DLL_operator_1
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov dword [esp + 0x52c], ebx
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x52c], 1
mov ecx, esp
mov dword [esp + 0x1c], esp
push edi
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x52c], bl
call fcn.004081b0
cmp dword [0x433388], ebx
jne 0x40575f
push 0x12
call dword [sym.imp.IMAGEHLP.dll_SymSetOptions]
lea ecx, [esp + 0x28]
call fcn.00428122
lea ebx, [esi + 0x6c]
push 0x5c
mov ecx, ebx
mov byte [esp + 0x524], 2
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x524], 3
call fcn.00428116
lea ecx, [esp + 0x44]
mov byte [esp + 0x520], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0xb8]
push 0
push ecx
push edx
call dword [sym.imp.IMAGEHLP.dll_SymInitialize]
test eax, eax
je 0x40574c
mov dword [0x433388], 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x520], 0
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0x18]
mov ecx, dword [esi + 0x6c]
push eax
mov eax, dword [ebp + 0xc]
push edx
push ecx
push ecx
mov ecx, dword [esi + 0xb8]
push eax
push ecx
call dword [sym.imp.IMAGEHLP.dll_SymLoadModule]
lea ecx, [esp + 0x24]
call fcn.00428122
mov edx, dword [ebp + 0x18]
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x2c]
mov bl, 4
push 0x43280c
push ecx
mov byte [esp + 0x530], bl
call sub.MFC42.DLL_CString::Format
mov eax, dword [0x4334dc]
add esp, 0x10
cmp eax, 1
jne 0x4057e4
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push edx
push eax
push 1
push 5
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x538], 5
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x405810
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push ecx
push edx
push 1
push 5
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x538], 6
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x432800
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x538], bl
call fcn.00408c60
lea ecx, [esp + 0x24]
mov byte [esp + 0x520], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x520], 0xffffffff
lea ecx, [esp + 0x1c]
jmp 0x405fdf
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], ecx
xor edi, edi
push edx
push eax
lea ecx, [esi + 0xc0]
mov dword [esp + 0x20], edi
call fcn.0040c890
mov edx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0xc]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esi + 0x130]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
call fcn.0040e580
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x10], edi
jmp case.0x4055f1.5
mov ecx, dword [ebp + 8]
lea edi, [ebp + 8]
lea edx, [esp + 0x14]
lea ebp, [esi + 0xc0]
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], ecx
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x20], 0
call fcn.0040c890
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov ecx, ebp
call fcn.00410610
mov ebx, eax
lea eax, [esp + 0x1c]
push edi
push eax
mov ecx, ebp
call fcn.0040ced0
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax]
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
call fcn.00412080
mov eax, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x24]
push ebx
push eax
push ecx
mov ecx, ebp
call fcn.0040ae30
add esi, 0x130
push edi
mov ecx, esi
call fcn.00410890
lea edx, [esp + 0x1c]
push edi
push edx
mov ecx, esi
mov ebx, eax
call fcn.004100d0
mov edi, dword [eax]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push ecx
push ebx
push edi
mov dword [esp + 0x20], 0
call fcn.00412140
add esp, 0x10
lea edx, [esp + 0x24]
mov ecx, esi
push ebx
push edi
push edx
call fcn.0040b7d0
jmp case.0x4055f1.5
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x405aa7
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x405aa7
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esi + 0xc0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call fcn.0040c890
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x90], ecx
mov cl, byte [0x433384]
test cl, cl
je 0x405a97
lea edx, [esp + 0x24c]
mov dword [esp + 0x24c], 0x10001
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x405aa7
mov eax, dword [esp + 0x304]
test eax, 0x80000000
jne 0x405aa7
push 0xcc
push eax
mov ecx, esi
call fcn.00407a20
mov bl, al
cmp bl, 0xcc
je 0x405aa7
mov ecx, dword [esp + 0x304]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], 0
mov edx, dword [esp + 0x14]
lea edi, [esi + 0xa8]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x38], edx
call fcn.0040c170
mov edx, dword [esp + 0x14]
xor eax, eax
mov byte [edx + 0x10], bl
mov ecx, dword [esp + 0x304]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], 0
mov edx, dword [esp + 0x14]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x38], edx
call fcn.0040c170
mov edx, dword [esp + 0x14]
mov dword [edx + 0x14], 0
jmp 0x405aa7
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00409590
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x48]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ecx, [esi + 0xc0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call fcn.0040c890
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x48]
lea edi, [ebp + 0xc]
push eax
mov edx, dword [ecx + 0x10]
push edi
push edx
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.00407c60
test eax, eax
je 0x405d43
lea edi, [esp + 0x48]
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 0x405b81
cmp ecx, 8
jl 0x405b81
lea eax, [esp + ecx + 0x40]
push str.flog.dll
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x405b81
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 0xb8]
push str.ManDoHook
push ecx
push edx
call fcn.00405200
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
push ecx
push 5
push edx
mov dword [esi + 0x8c], eax
push eax
mov eax, dword [esi + 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [esp + 0x14], 0xe9
jne 0x405b81
mov ecx, dword [esp + 0x15]
mov eax, dword [esi + 0x8c]
add ecx, 5
add eax, ecx
mov dword [esi + 0x8c], eax
lea ecx, [esp + 0x1c]
call fcn.00428122
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x48]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x4327d4
push ecx
mov dword [esp + 0x530], 7
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x48]
lea ecx, [esp + 0x24]
push edx
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [esp + 0x28]
mov byte [esp + 0x524], 8
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
call sub.MFC42.DLL_CString::Mid
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [0x4334dc]
push ecx
push edx
push 1
push 5
mov bl, 9
push ecx
cmp eax, 1
mov byte [esp + 0x534], bl
mov ecx, esp
jne 0x405c22
lea eax, [esp + 0x4c]
mov dword [esp + 0x40], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x538], 0xa
mov ecx, esp
mov dword [esp + 0x38], esp
jmp 0x405c3f
lea eax, [esp + 0x30]
mov dword [esp + 0x40], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x538], 0xb
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x432800
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x538], bl
call fcn.00408c60
push 0x2e
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x524], 0xc
call fcn.00428116
lea ecx, [esp + 0x3c]
mov byte [esp + 0x520], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x38]
mov eax, dword [edx - 8]
test eax, eax
je 0x405d09
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x530], 0xd
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x52c], bl
call fcn.004081b0
mov edi, dword [esp + 0x10]
push 0
mov ecx, dword [edi]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x405d09
mov edx, dword [ebp + 0x10]
mov ecx, dword [esi + 0xb8]
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
push eax
mov eax, dword [edi]
push eax
push ecx
call dword [sym.imp.IMAGEHLP.dll_SymLoadModule]
lea ecx, [esp + 0x38]
mov byte [esp + 0x520], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x520], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x520], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x10]
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4055f1.5
mov eax, dword [esi + 0x148]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x10], edi
test eax, eax
jle 0x405d7a
mov ecx, dword [esi + 0x144]
cmp edi, dword [ecx]
je 0x405df7
inc ebx
add ecx, 0xc
cmp ebx, eax
jl 0x405d6a
lea ecx, [esp + 0x1c]
call fcn.00428122
push edi
lea edx, [esp + 0x20]
mov ebx, 0x11
push 0x4327b8
push edx
mov dword [esp + 0x52c], ebx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 8]
add esp, 0xc
lea edx, [esp + 0x1c]
push edi
push eax
push 5
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x538], 0x12
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x4327ac
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x538], bl
call fcn.00408c60
mov dword [esp + 0x520], 0xffffffff
lea ecx, [esp + 0x1c]
jmp 0x405fdf
cmp ebx, 0xffffffff
je 0x405d7a
lea ecx, [esp + 0x1c]
call fcn.00428122
mov ecx, dword [esi + 0x144]
mov eax, dword [esp + 0x10]
lea edi, [ebx + ebx*2]
push eax
shl edi, 2
lea eax, [esp + 0x20]
mov dword [esp + 0x524], 0xe
mov edx, dword [edi + ecx + 4]
mov dword [esp + 0x2c], edi
push edx
push 0x43278c
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 8]
add esp, 0x10
lea eax, [esp + 0x1c]
push ecx
push edx
push 5
push 8
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x538], 0xf
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x4327ac
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x538], 0xe
call fcn.00408c60
mov ebp, dword [esi + 0x148]
mov eax, dword [esi + 0x144]
sub ebp, ebx
mov dword [esp + 0x10], 0
dec ebp
add edi, eax
mov dword [esp + 0x20], edi
lea ecx, [edi + 8]
mov byte [esp + 0x520], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 4]
mov byte [esp + 0x520], 0xe
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
add edi, 0xc
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], eax
jne 0x405ea3
test ebp, ebp
je 0x405f03
mov eax, dword [esi + 0x144]
lea edx, [ebp + ebp*2]
shl edx, 2
lea ecx, [ebx + ebx*2 + 3]
push edx
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x2c]
add eax, ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, dword [esi + 0x148]
mov dword [esp + 0x520], 0xffffffff
dec eax
lea ecx, [esp + 0x1c]
mov dword [esi + 0x148], eax
jmp 0x405fdf
xor ecx, ecx
lea eax, [esp + 0x20]
mov cx, word [ebp + 0x12]
push eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x150]
push ecx
mov ecx, dword [esi + 0xb8]
push edx
push eax
push ecx
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + edx + 0x150], 0
call sub.MFC42.DLL_CString::CString_1
mov ebx, 0x13
lea ecx, [esp + 0x28]
mov dword [esp + 0x520], ebx
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x405fd0
mov edx, dword [ebp + 8]
push 0
push edx
push 4
push 7
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x538], 0x14
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x432780
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x538], bl
call fcn.00408c60
mov dword [esp + 0x520], 0xffffffff
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x518]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x514
ret 4