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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 8], esi
mov ebx, edi
mov dword [ebp - 0x14], edi
cmp dword [esi + 0x7c], edi
jbe 0x40e610
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 8]
mov ecx, ebx
shl ecx, 2
add edi, ecx
mov eax, dword [ecx + eax]
mov cl, byte [esi + 0x60]
mov dword [ebp - 0x18], eax
test cl, cl
je 0x40e5a1
mov dword [ebp - 0x10], 1
jmp 0x40e5a9
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
test cl, cl
je 0x40e5b1
mov edi, dword [edi]
jmp 0x40e5b4
xor edi, edi
inc edi
add eax, 0x70
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.0040e1df
cmp dword [ebp - 0x10], 0
jbe 0x40e5dd
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.0040dfe8
dec esi
jne 0x40e5cd
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, 0x7c
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.0040e1df
test edi, edi
je 0x40e601
mov esi, dword [ebp - 0x20]
mov ecx, esi
call fcn.0040dfe8
dec edi
jne 0x40e5f4
mov esi, dword [ebp - 8]
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [esi + 0x7c]
jb 0x40e57e
xor edi, edi
mov ebx, edi
cmp dword [esi + 0x18], edi
jbe 0x40e743
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x3c]
mov edx, dword [ecx + ebx*8]
mov dword [ebp - 0x14], edx
mov edx, dword [eax + edx*4]
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax + edx*4]
mov al, byte [esi + 0x60]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 1], al
test al, al
je 0x40e64f
mov esi, dword [ecx + ebx*8 + 4]
mov dword [ebp - 0x18], esi
jmp 0x40e652
mov dword [ebp - 0x18], edx
test al, al
jne 0x40e65d
mov edx, dword [ecx + ebx*8 + 4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x20], 0
mov cl, byte [ebp - 1]
test cl, cl
mov esi, eax
cmovne esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
xor esi, esi
test cl, cl
cmovne esi, eax
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 8]
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx + edx*4]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + 0x7c]
push dword [eax + edx*4]
mov eax, dword [ebp - 0x18]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 0x70]
push dword [eax + ecx*4]
mov ecx, dword [esi + 0x6c]
mov ecx, dword [ecx + ebx*4]
call fcn.00410fdf
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x40e6c1
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x426d9c
push ecx
call dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x78]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x40e6e2
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0xc]
push edx
push 0x426d9c
push ecx
call dword [eax]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40e71f
cmp dword [ebp - 0xc], 0
je 0x40e72f
mov ecx, dword [eax]
push 0x80000
push dword [ebp - 0x14]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0xc]
push 0x80000
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40e72f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40e739
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x40e61b
cmp byte [esi + 0x60], 0
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x78]
mov ebx, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
je 0x40e763
mov ecx, dword [ecx + 0x70]
push dword [ebx]
mov ecx, dword [ecx]
call fcn.0040df41
jmp 0x40e772
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x7c]
push dword [eax]
mov ecx, dword [ecx]
call fcn.0040df41
cmp dword [esi + 0x24], edi
jbe 0x40e7ca
sub dword [ebp + 0xc], ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + edi*4]
mov eax, dword [esi + 0x3c]
mov edx, dword [eax + ecx*4]
mov eax, dword [esi + 0x30]
sub ecx, dword [eax + edx*4]
cmp byte [esi + 0x60], 0
mov eax, dword [esi + 0x78]
mov dword [ebp + 8], ecx
mov ecx, dword [eax + edx*4]
je 0x40e7b1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x7c]
push dword [eax + ebx]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + eax*4]
call fcn.0040df41
jmp 0x40e7c1
mov ecx, dword [ecx + 0x70]
mov eax, dword [ebp + 8]
push dword [ebx]
mov ecx, dword [ecx + eax*4]
call fcn.0040df41
inc edi
add ebx, 4
cmp edi, dword [esi + 0x24]
jb 0x40e77a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 8