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

Disassembly:
push 0xffffffffffffffff
push 0x54d45b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x64]
call fcn.005256d9
or edi, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x60], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0xa0]
inc eax
push eax
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0xa0], ebx
call fcn.0040acb0
cmp eax, ebx
jne 0x40c602
lea ecx, [esp + 0x60]
mov dword [esp + 0x98], edi
call fcn.00409000
xor eax, eax
jmp 0x40c8d9
push ebp
lea ecx, [esp + 0x3c]
call fcn.004562e0
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x68]
mov byte [esp + 0xa0], 1
call fcn.0040b3a0
lea ecx, [esp + 0x14]
call fcn.004562e0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 2
call fcn.004565b0
mov eax, dword [esi + 0x24]
inc eax
push eax
lea ecx, [esp + 0x18]
call fcn.004565b0
mov ebp, dword [esp + 0xa8]
xor edi, edi
movsx ecx, byte [edi + ebp]
push ecx
lea ecx, [esp + 0x18]
call fcn.004565e0
mov eax, ebp
inc edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c670
sub eax, edx
cmp edi, eax
jbe 0x40c655
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x18]
call fcn.00455db0
push eax
push 0x38
lea ecx, [esp + 0x48]
call fcn.00456700
lea ecx, [esp + 0x3c]
call fcn.00455db0
mov ebp, eax
push ebp
call fcn.004661ba
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40c78a
call fcn.00528076
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x34]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x34]
cmp eax, ecx
mov dword [esp + 0x38], ebx
je 0x40c6ea
mov esi, dword [eax]
push eax
call fcn.005253e2
mov ecx, dword [esp + 0x38]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x40c6d5
push ecx
call fcn.005253e2
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x34], ebx
je 0x40c708
push eax
call fcn.005253e2
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
mov dword [esp + 0x60], ebx
je 0x40c745
nop
mov esi, dword [eax]
push eax
call fcn.005253e2
mov ecx, dword [esp + 0x60]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x40c730
push ecx
call fcn.005253e2
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x5c], ebx
je 0x40c763
push eax
call fcn.005253e2
add esp, 4
lea ecx, [esp + 0x64]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x9c], 0xffffffff
call fcn.00409000
xor eax, eax
jmp 0x40c8d8
push edi
lea ecx, [esp + 0x40]
call fcn.00455e00
mov ecx, dword [esi + 0x20]
mov eax, dword [esi]
push ebx
push ebx
push ecx
mov ecx, esi
call dword [eax + 0x28]
push ebp
push edi
mov ecx, esi
call fcn.00408af0
push edi
call fcn.004660a2
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x14]
mov edx, dword [esi]
add esp, 4
push ebx
inc ecx
push ebx
mov dword [esi + 0x24], ecx
push eax
mov ecx, esi
call dword [edx + 0x28]
mov edx, dword [esi]
push 4
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov word [esi + 0x10], bx
mov byte [esi + 0x12], bl
call dword [edx + 0x34]
mov eax, dword [esi + 0x14]
mov edx, dword [esi]
push ebx
push ebx
push eax
mov ecx, esi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
add ecx, ebp
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
mov ecx, esi
mov word [esi + 0x10], bx
mov byte [esi + 0x12], bl
call dword [edx + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x34]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x34]
cmp eax, ecx
mov dword [esp + 0x38], ebx
je 0x40c838
mov esi, dword [eax]
push eax
call fcn.005253e2
mov ecx, dword [esp + 0x38]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x40c823
push ecx
call fcn.005253e2
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x34], ebx
je 0x40c856
push eax
call fcn.005253e2
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x5c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
mov dword [esp + 0x60], ebx
je 0x40c895
lea ecx, [ecx]
mov esi, dword [eax]
push eax
call fcn.005253e2
mov ecx, dword [esp + 0x60]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x40c880
push ecx
call fcn.005253e2
mov eax, dword [esp + 0x44]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x5c], ebx
je 0x40c8b3
push eax
call fcn.005253e2
add esp, 4
lea ecx, [esp + 0x64]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x9c], 0xffffffff
call fcn.00409000
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 8