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

Disassembly:
mov eax, 0x41d6d0
call fcn.0041a068
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x20], esi
mov ebx, edi
lea edx, [esi + 0x60]
mov dword [ebp - 0x1c], edx
cmp dword [esi + 0x7c], edi
jbe 0x40c5f6
cmp byte [esi + 0x60], 0
mov ecx, ebx
mov eax, dword [esi + 0x78]
mov edx, dword [eax + ecx*4]
mov eax, dword [esi + 8]
mov dword [ebp - 0x24], edx
je 0x40c594
mov eax, dword [eax + ecx*4]
xor edi, edi
inc edi
jmp 0x40c59a
mov edi, dword [eax + ecx*4]
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
lea eax, [edx + 0x70]
mov ecx, eax
mov dword [ebp - 0x28], eax
call fcn.0040c10e
test edi, edi
je 0x40c5c0
mov esi, dword [ebp - 0x28]
mov ecx, esi
call fcn.0040bd84
sub edi, 1
jne 0x40c5b1
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
add eax, 0x7c
mov ecx, eax
mov dword [ebp - 0x28], eax
call fcn.0040c10e
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x40c5e9
mov esi, dword [ebp - 0x28]
mov ecx, esi
call fcn.0040bd84
sub edi, 1
jne 0x40c5da
mov esi, dword [ebp - 0x20]
inc ebx
cmp ebx, dword [esi + 0x7c]
jb 0x40c578
xor edi, edi
lea edx, [esi + 0x60]
jmp 0x40c5f9
mov dword [ebp - 0x1c], edx
mov ebx, edi
cmp dword [esi + 0x18], edi
jbe 0x40c746
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + ebx*8]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 0x30]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
sub esi, dword [eax + ecx*4]
mov al, byte [edx]
mov dword [ebp - 0x24], esi
test al, al
mov esi, dword [ebp - 0x20]
mov byte [ebp - 0xd], al
mov eax, dword [esi + 0x14]
je 0x40c63c
mov edx, dword [eax + ebx*8 + 4]
mov eax, ecx
mov dword [ebp - 0x28], edx
jmp 0x40c646
mov eax, dword [eax + ebx*8 + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x24]
mov edx, ecx
and dword [ebp - 0x24], 0
cmp byte [ebp - 0xd], 0
cmovne edx, dword [ebp - 0x24]
mov dword [ebp - 0x24], edx
xor edx, edx
cmp byte [ebp - 0xd], dl
cmovne edx, ecx
mov ecx, dword [esi + 0x78]
mov dword [ebp - 0x30], edx
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x7c]
push dword [eax + edx*4]
mov edx, dword [ebp - 0x28]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + 0x70]
push dword [eax + ecx*4]
mov ecx, dword [esi + 0x6c]
mov ecx, dword [ecx + ebx*4]
call fcn.00407f8c
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x28]
mov eax, dword [esi + 0x78]
mov byte [ebp - 4], 1
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x40c6ab
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
push 0x41e410
push ecx
call dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [esi + 0x78]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x40c6cc
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push 0x41e410
push ecx
call dword [eax]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x40c70d
test ecx, ecx
je 0x40c70d
mov ecx, dword [eax]
push 0x80000
push dword [ebp - 0x24]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
push 0x80000
push dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40c71e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 3
test eax, eax
je 0x40c72f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
inc ebx
mov edx, dword [ebp - 0x1c]
cmp ebx, dword [esi + 0x18]
jb 0x40c604
lea edx, [esi + 0x60]
mov dword [ebp - 0x1c], edx
cmp byte [edx], 0
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x78]
mov ebx, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
je 0x40c765
mov ecx, dword [ecx + 0x70]
push dword [ebx]
mov ecx, dword [ecx]
call fcn.00401d0f
jmp 0x40c774
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x7c]
push dword [eax]
mov ecx, dword [ecx]
call fcn.00401d0f
cmp dword [esi + 0x24], edi
jbe 0x40c7cb
sub dword [ebp + 0xc], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [eax + edi*4]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + edx*4]
mov eax, dword [esi + 0x78]
mov eax, dword [eax + ecx*4]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x30]
sub edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
cmp byte [eax], 0
je 0x40c7b5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x7c]
push dword [ebx + eax]
mov ecx, dword [ecx + edx*4]
call fcn.00401d0f
jmp 0x40c7c2
mov ecx, dword [ecx + 0x70]
push dword [ebx]
mov ecx, dword [ecx + edx*4]
call fcn.00401d0f
inc edi
add ebx, 4
cmp edi, dword [esi + 0x24]
jb 0x40c77c
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8