Function at 0x40f560
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43a8c4
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x80]
mov eax, dword [ebp + 4]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
jle 0x40fad1
mov edi, dword [esp + 0x84]
mov dword [esp + 0x34], ebx
add edi, 0x50
jmp 0x40f5b9
mov ebx, dword [esp + 0x18]
mov ebp, ecx
lea esi, [esp + 0x24]
mov eax, ebp
call fcn.004063c0
lea esi, [esp + 0x28]
mov eax, ebp
mov dword [esp + 0x78], 0
call fcn.004063a0
push 0x444ad8
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x40f600
push 0x444d8c
lea ecx, [esp + 0x28]
call dword [0x443738]
jmp 0x40f611
push 0
lea ecx, [esp + 0x34]
call dword [0x443828]
or dword [esp + 0x1c], 1
test byte [esp + 0x1c], 1
je 0x40f627
and dword [esp + 0x1c], 0xfffffffe
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push str._67
push ecx
mov esi, esp
mov eax, ebp
mov dword [esp + 0x40], esp
call fcn.00406400
lea eax, [esp + 0x60]
push eax
call fcn.0041f0d0
add esp, 8
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x444d88
mov byte [esp + 0x80], 2
call dword [0x443828]
lea ecx, [esp + 0x5c]
push ecx
call fcn.00409a70
xor edx, edx
cmp eax, 0xffffffff
setne dl
add esp, 4
mov ecx, esp
mov dword [esp + 0x40], esp
xor ebp, ebp
push 0x444d80
mov dword [esp + 0x28], ebp
mov dword [esp + 0x40], edx
call dword [0x443828]
lea eax, [esp + 0x5c]
push eax
call fcn.00409a70
mov esi, dword [esp + 0x20]
add esp, 8
test esi, esi
jle 0x40f702
cmp eax, 0xffffffff
je 0x40f702
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 0x48]
sub edx, dword [ecx + 0x44]
add ecx, 0x38
sar edx, 2
test edx, edx
jbe 0x40f760
mov ebx, eax
lea eax, [esp + 0x58]
call fcn.0041c410
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call dword [0x443834]
call fcn.00409950
mov ebp, eax
mov eax, dword [esp + 0x88]
add esp, 4
lea ebx, [esi - 1]
add eax, 0x38
call fcn.0041c2b0
mov eax, dword [eax]
lea ebp, [eax + ebp + 4]
jmp 0x40f75c
push 0x444ad8
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x40f736
mov ecx, dword [esp + 0x84]
push ecx
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call dword [0x443834]
call fcn.0040fb00
jmp 0x40f757
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
push ecx
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call dword [0x443834]
call fcn.00410400
mov ebp, eax
add esp, 8
mov dword [esp + 0x20], ebp
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x444d78
call dword [0x443828]
lea eax, [esp + 0x5c]
push eax
call fcn.00409a70
add esp, 8
cmp eax, 0xffffffff
je 0x40f7ab
mov ebx, eax
lea eax, [esp + 0x58]
call fcn.0041c410
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call dword [0x443834]
call fcn.00409950
add esp, 4
add ebp, eax
mov dword [esp + 0x20], ebp
mov esi, dword [esp + 0x84]
mov ecx, dword [esi + 0x44]
add esi, 0x38
test ecx, ecx
jne 0x40f7c0
xor eax, eax
jmp 0x40f7c8
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
mov ebx, dword [esi + 0x10]
mov edx, ebx
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x40f7e0
mov dword [ebx], ebp
add ebx, 4
mov dword [esi + 0x10], ebx
jmp 0x40f7ff
cmp ecx, ebx
jbe 0x40f7ea
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
push ebx
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov eax, esi
call fcn.00415560
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x40f80a
xor eax, eax
jmp 0x40f812
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x40f82e
mov dword [esi], 0
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x40f84d
cmp ecx, esi
jbe 0x40f838
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi]
push esi
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x54]
push ecx
mov eax, edi
call fcn.00415560
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x444d7c
call dword [0x443828]
lea edx, [esp + 0x5c]
push edx
call fcn.00409a70
add esp, 8
cmp dword [esp + 0x38], 1
jne 0x40f88d
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 2
lea ebx, [eax - 1]
mov eax, edi
call fcn.0041c2b0
mov dword [eax], ebp
jmp 0x40f91d
cmp dword [esp + 0x18], 0
jle 0x40f8f4
cmp eax, 0xffffffff
je 0x40f8f4
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
sar ecx, 2
test ecx, ecx
jbe 0x40f91d
mov ebx, eax
lea eax, [esp + 0x58]
call fcn.0041c410
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call dword [0x443834]
call fcn.00409950
mov esi, dword [edi + 0x10]
sub esi, dword [edi + 0xc]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
add esp, 4
dec ebx
mov eax, edi
sar esi, 2
call fcn.0041c2b0
mov ebp, dword [eax]
add ebp, dword [esp + 0x38]
lea ebx, [esi - 1]
mov eax, edi
call fcn.0041c2b0
mov dword [eax], ebp
jmp 0x40f91d
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0
sar eax, 2
lea ebx, [eax - 1]
push 4
mov eax, edi
call fcn.0041c2b0
mov edx, dword [esp + 0x8c]
push eax
mov eax, dword [edx]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x80]
lea esi, [esp + 0x2c]
call fcn.004063e0
mov ecx, dword [esp + 0x2c]
push 0x10
push 0
push ecx
call dword [sym.imp.MSVCR90.dll_wcstoul]
add esp, 0xc
mov ecx, esi
mov ebp, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x444d84
mov dword [esp + 0x28], ebp
call dword [0x443828]
lea edx, [esp + 0x5c]
push edx
call fcn.00409a70
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x40f9b5
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 2
lea ebx, [eax - 1]
mov eax, edi
call fcn.0041c2b0
mov dword [esp + 0x38], eax
mov ebx, esi
lea eax, [esp + 0x58]
call fcn.0041c410
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call dword [0x443834]
call fcn.00409950
mov ecx, dword [esp + 0x3c]
add esp, 4
add dword [ecx], eax
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 2
lea ebx, [eax - 1]
mov eax, edi
call fcn.0041c2b0
test ebp, ebp
jne 0x40f9f5
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 2
lea ebx, [eax - 1]
mov eax, edi
call fcn.0041c2b0
mov ecx, dword [esp + 0x84]
mov eax, dword [eax]
mov ebx, dword [ecx]
call fcn.0040f500
mov ebp, eax
mov dword [esp + 0x20], ebp
mov ebx, dword [esp + 0x84]
mov ecx, dword [ebx + 0x74]
add ebx, 0x68
test ecx, ecx
jne 0x40fa0a
xor eax, eax
jmp 0x40fa12
mov eax, dword [ebx + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [ebx + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x40fa2a
mov dword [esi], ebp
add esi, 4
mov dword [ebx + 0x10], esi
jmp 0x40fa49
cmp ecx, esi
jbe 0x40fa34
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx]
push esi
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov eax, ebx
call fcn.00415560
mov byte [esp + 0x78], 3
mov esi, dword [esp + 0x64]
xor eax, eax
cmp esi, eax
je 0x40fa7e
mov ebx, dword [esp + 0x68]
cmp esi, ebx
je 0x40fa73
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
add esi, 4
cmp esi, ebx
jne 0x40fa60
mov esi, dword [esp + 0x64]
push esi
call sub.mfc90u.dll_delete
add esp, 4
xor eax, eax
mov byte [esp + 0x78], 1
mov edx, dword [esp + 0x58]
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
call sub.mfc90u.dll_delete
add esp, 4
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x24]
mov dword [esp + 0x78], 0xffffffff
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x80]
inc eax
cmp eax, dword [ecx + 4]
mov dword [esp + 0x18], eax
jl 0x40f5b3
mov eax, dword [esp + 0x84]
call fcn.0040f350
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret