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

Disassembly:
mov eax, 0x41d390
call fcn.00419e78
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x1c], esi
mov ebx, edi
lea edx, [esi + 0x60]
mov dword [ebp - 0x18], edx
cmp dword [esi + 0x7c], edi
jbe 0x40c611
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 0x40c5af
mov eax, dword [eax + ecx*4]
xor edi, edi
inc edi
jmp 0x40c5b5
mov edi, dword [eax + ecx*4]
xor eax, eax
inc eax
mov dword [ebp - 0x28], eax
lea eax, [edx + 0x70]
mov ecx, eax
mov dword [ebp - 0x2c], eax
call fcn.0040c125
test edi, edi
je 0x40c5db
mov esi, dword [ebp - 0x2c]
mov ecx, esi
call fcn.0040bd9b
sub edi, 1
jne 0x40c5cc
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
add eax, 0x7c
mov ecx, eax
mov dword [ebp - 0x2c], eax
call fcn.0040c125
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x40c604
mov esi, dword [ebp - 0x2c]
mov ecx, esi
call fcn.0040bd9b
sub edi, 1
jne 0x40c5f5
mov esi, dword [ebp - 0x1c]
inc ebx
cmp ebx, dword [esi + 0x7c]
jb 0x40c593
xor edi, edi
lea edx, [esi + 0x60]
jmp 0x40c614
mov dword [ebp - 0x18], edx
mov ebx, edi
cmp dword [esi + 0x18], edi
jbe 0x40c75d
mov eax, dword [esi + 0x14]
mov dl, byte [edx]
mov ecx, dword [eax + ebx*8]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 0x30]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
sub esi, dword [eax + ecx*4]
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ebx*8 + 4]
test dl, dl
je 0x40c652
mov dword [ebp - 0x24], eax
jmp 0x40c658
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
and dword [ebp - 0x2c], 0
test dl, dl
mov ecx, dword [ebp - 0x20]
mov eax, ecx
cmovne eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
xor eax, eax
test dl, dl
cmovne eax, ecx
mov ecx, dword [esi + 0x78]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x7c]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 0x24]
push edx
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 0x70]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 0x6c]
push ecx
mov ecx, dword [eax + ebx*4]
call fcn.00407f9c
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 0x24]
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 0x40c6c2
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push 0x41e410
push ecx
call dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, dword [esi + 0x78]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x40c6e3
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x41e410
push ecx
call dword [eax]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
test eax, eax
je 0x40c724
test ecx, ecx
je 0x40c724
mov ecx, dword [eax]
push 0x80000
push dword [ebp - 0x20]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
push 0x80000
push dword [ebp - 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40c735
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 3
test eax, eax
je 0x40c746
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
inc ebx
mov edx, dword [ebp - 0x18]
cmp ebx, dword [esi + 0x18]
jb 0x40c61f
lea edx, [esi + 0x60]
mov dword [ebp - 0x18], 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 0x40c77c
mov ecx, dword [ecx + 0x70]
push dword [ebx]
mov ecx, dword [ecx]
call fcn.00401d0f
jmp 0x40c78b
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 0x40c7e2
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 - 0x18]
mov ecx, dword [ebp + 8]
cmp byte [eax], 0
je 0x40c7cc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x7c]
push dword [eax + ebx]
mov ecx, dword [ecx + edx*4]
call fcn.00401d0f
jmp 0x40c7d9
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 0x40c793
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8