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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41ec10
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x164], edi
je 0x40c592
mov eax, dword [esp + 0x70]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0x6c]
lea ebp, [esi + 0x3c]
push 0x425168
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov ecx, ebp
mov edx, dword [eax + 8]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x40], eax
call fcn.0041dd56
push edi
mov ecx, esi
call fcn.0040f240
mov eax, dword [ebp]
push ebp
push eax
mov ecx, esi
call fcn.0040f210
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], edi
call fcn.0041dd5c
lea ecx, [esp + 0x6c]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x68]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x70]
push edi
push eax
mov ecx, esi
call fcn.00411320
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00411550
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [esi + 0x94], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0x98], eax
push eax
lea eax, [esp + 0x24]
push ebp
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x70], 1
call fcn.004120c0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x164]
cmp eax, 1
jne 0x40c6b0
mov eax, dword [esp + 0x70]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esi + 0x90]
mov dword [eax + 0xc], 0
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x90]
test ecx, ecx
jle 0x40c682
mov dword [eax + 0x18], 1
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x48], ebx
add ebx, edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
jmp 0x40c7c5
test eax, eax
jne 0x40c7c1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x78]
mov dword [esp + 0x48], ebx
test eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jl 0x40c703
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
push 0
push 5
push ecx
mov ecx, dword [esi + 0x60]
push edx
lea edx, [esp + 0x58]
push ecx
push edx
push eax
mov eax, dword [esi + 0x15c]
push eax
lea ecx, [esi + 0xd0]
call fcn.004070c0
mov eax, dword [esi + 0x144]
test eax, eax
je 0x40c72c
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x68]
push 1
push ecx
push edx
mov edx, dword [esi + 0x15c]
lea ecx, [esp + 0x54]
push eax
push ecx
push edx
jmp 0x40c749
mov ecx, dword [esi + 0x88]
mov eax, dword [esi + 0x148]
push 1
push ecx
push eax
push eax
mov eax, dword [esi + 0x15c]
lea edx, [esp + 0x58]
push edx
push eax
lea ecx, [esi + 0xd0]
call fcn.00408060
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0x8c]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
lea edx, [ecx + eax]
add ebp, edx
add ebx, edx
lea edx, [ecx + eax]
add ecx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x50]
sub eax, ecx
mov ecx, dword [esi + 0x84]
sub ebp, edx
dec ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], eax
je 0x40c7a9
dec ecx
jne 0x40c7c1
mov ecx, dword [esp + 0x70]
sub eax, dword [ecx + 0xc]
mov dword [esp + 0x4c], eax
jmp 0x40c7c1
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x4c]
sub eax, dword [edx + 0xc]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [edi]
mov edx, dword [ecx - 8]
mov ecx, dword [esp + 0x6c]
cmp ecx, edx
jge 0x40c932
push ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x6c], ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x425170
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x18]
mov ecx, esi
push edx
push edi
call fcn.004117f0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.table
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
push edi
call fcn.004117f0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
cmp edx, ecx
mov ebp, edx
jl 0x40c82a
mov ebp, ecx
mov eax, dword [esp + 0x6c]
xor ebx, ebx
cmp ebp, eax
mov dword [esp + 0x2c], ebx
jle 0x40c886
mov ecx, ebp
lea edx, [esp + 0x18]
sub ecx, eax
push ecx
push eax
push edx
mov ecx, edi
call sub.MFC42.DLL_CString::Mid
lea eax, [esp + 0x48]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x6c], 2
call fcn.0040c9e0
mov ebx, dword [eax]
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x6c]
jmp 0x40c8f4
cmp ecx, edx
jge 0x40c8eb
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x6c]
push ecx
push edi
mov ecx, esi
call fcn.00411e90
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
sub edx, eax
mov ecx, edi
push edx
push eax
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::Mid
lea ecx, [esp + 0x48]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x6c], 3
call fcn.0040aec0
mov ebx, dword [eax]
mov byte [esp + 0x60], 1
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x6c]
jmp 0x40c8f4
mov edx, dword [edi]
mov ecx, dword [edx - 8]
mov dword [esp + 0x6c], ecx
mov eax, dword [esi + 0x164]
test eax, eax
je 0x40c915
mov eax, dword [esp + 0x70]
mov ebp, dword [eax + 8]
cmp ebx, ebp
jg 0x40c90b
mov ebx, ebp
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], ebx
add dword [eax + 0xc], edx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
add edx, eax
mov dword [esp + 0x4c], edx
mov edx, dword [edi]
cmp ecx, dword [edx - 8]
jl 0x40c7d6
mov eax, dword [esp + 0x70]
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x40c984
mov ecx, dword [esi + 0x90]
mov edi, dword [eax + 8]
cmp ecx, edi
jle 0x40c94b
mov edi, ecx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x10], edi
mov ecx, dword [esi + 0x94]
cmp ecx, edx
jg 0x40c95d
mov ecx, edx
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 0x8c]
add edx, dword [esi + 0xa4]
lea edx, [edi + edx*2]
mov dword [eax + 0x10], edx
mov edx, dword [esi + 0x8c]
add edx, dword [esi + 0xa4]
lea ecx, [ecx + edx*2]
mov dword [eax + 0x14], ecx
push 0x425168
lea ecx, [esi + 0x3c]
call fcn.0041dd56
push 1
mov ecx, esi
call fcn.0040f240
test eax, eax
je 0x40c9a5
mov ecx, esi
call fcn.0040f570
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 0xc