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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x7c], 0
push edi
jbe 0x40c109
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x78]
shl ecx, 2
mov edi, dword [ecx + eax]
mov eax, dword [esi + 8]
add eax, ecx
mov cl, byte [esi + 0x60]
test cl, cl
je 0x40c0ae
mov dword [ebp - 0xc], 1
jmp 0x40c0b3
mov edx, dword [eax]
mov dword [ebp - 0xc], edx
test cl, cl
je 0x40c0be
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x40c0c5
mov dword [ebp - 8], 1
lea ecx, [edi + 0x70]
call fcn.0040bf18
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40c0e4
mov dword [ebp - 0xc], eax
lea ecx, [edi + 0x70]
call fcn.0040bef5
dec dword [ebp - 0xc]
jne 0x40c0d7
lea ecx, [edi + 0x7c]
call fcn.0040bf18
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40c0fe
lea ecx, [edi + 0x7c]
call fcn.0040bef5
dec ebx
jne 0x40c0f3
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x7c]
jb 0x40c08d
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
jbe 0x40c230
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0x3c]
mov bl, byte [esi + 0x60]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
mov edi, dword [edx + eax*4]
mov edx, dword [esi + 0x30]
sub eax, dword [edx + edi*4]
test bl, bl
je 0x40c13a
mov edx, dword [ecx + 4]
jmp 0x40c13c
mov edx, edi
test bl, bl
je 0x40c144
mov ecx, edi
jmp 0x40c147
mov ecx, dword [ecx + 4]
movzx edi, bl
neg edi
sbb edi, edi
movzx ebx, bl
not edi
and edi, eax
neg ebx
sbb ebx, ebx
and ebx, eax
mov eax, dword [esi + 0x78]
shl ecx, 2
mov dword [ebp - 0x14], ecx
mov ecx, dword [ecx + eax]
mov ecx, dword [ecx + 0x7c]
push dword [ecx + ebx*4]
mov ecx, dword [ebp - 4]
shl edx, 2
mov eax, dword [edx + eax]
mov eax, dword [eax + 0x70]
push dword [eax + edi*4]
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
call fcn.0040e7fc
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi + 0x78]
mov eax, dword [ecx + eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x40c1a6
mov eax, ecx
jmp 0x40c1a9
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 0x41888c
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x78]
mov eax, dword [ecx + eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x40c1cb
mov eax, ecx
jmp 0x40c1ce
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41888c
push eax
call dword [ecx]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40c207
cmp dword [ebp - 8], 0
je 0x40c217
mov ecx, dword [eax]
push 0x80000
push edi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 0x80000
push ebx
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40c217
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40c221
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x40c117
cmp byte [esi + 0x60], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx + eax*4]
mov ebx, dword [ebp + 8]
je 0x40c250
mov eax, dword [eax + 0x70]
push dword [ebx]
mov ecx, dword [eax]
call fcn.0040e2fd
jmp 0x40c25f
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
push dword [ecx]
mov ecx, dword [eax]
call fcn.0040e2fd
xor edi, edi
cmp dword [esi + 0x24], edi
jbe 0x40c2b5
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x20]
mov eax, dword [eax + edi*4]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + eax*4]
mov edx, dword [esi + 0x30]
sub eax, dword [edx + ecx*4]
cmp byte [esi + 0x60], 0
mov edx, dword [esi + 0x78]
mov ecx, dword [edx + ecx*4]
je 0x40c29f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x7c]
push dword [edx + ebx]
mov ecx, dword [ecx + eax*4]
call fcn.0040e2fd
jmp 0x40c2ac
mov ecx, dword [ecx + 0x70]
push dword [ebx]
mov ecx, dword [ecx + eax*4]
call fcn.0040e2fd
inc edi
add ebx, 4
cmp edi, dword [esi + 0x24]
jb 0x40c26e
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8