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

Disassembly:
mov eax, 0x4324cc
call fcn.00427c2c
sub esp, 0x18
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x7c]
push edi
test eax, eax
je 0x40a889
mov ecx, dword [ebp - 0x10]
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 0x40a82e
mov dword [ebp - 0x18], 1
jmp 0x40a833
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
test cl, cl
je 0x40a83e
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x40a845
mov dword [ebp - 0x14], 1
lea ecx, [edi + 0x70]
call fcn.0040a5b6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40a864
mov dword [ebp - 0x18], eax
lea ecx, [edi + 0x70]
call fcn.0040a54d
dec dword [ebp - 0x18]
jne 0x40a857
lea ecx, [edi + 0x7c]
call fcn.0040a5b6
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a87e
lea ecx, [edi + 0x7c]
call fcn.0040a54d
dec ebx
jne 0x40a873
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x7c]
jb 0x40a80d
and dword [ebp - 0x10], 0
cmp dword [esi + 0x18], 0
jbe 0x40a9c9
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 0x30]
lea edi, [eax + ecx*8]
mov eax, dword [edi]
mov ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + eax*4]
sub eax, dword [edx + ecx*4]
mov dl, byte [esi + 0x60]
test dl, dl
je 0x40a8bd
mov ebx, dword [edi + 4]
mov dword [ebp - 0x1c], ebx
jmp 0x40a8c0
mov dword [ebp - 0x1c], ecx
test dl, dl
jne 0x40a8c7
mov ecx, dword [edi + 4]
movzx edi, dl
neg edi
sbb edi, edi
movzx ebx, dl
not edi
and edi, eax
neg ebx
sbb ebx, ebx
shl ecx, 2
and ebx, eax
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + ecx]
mov ecx, dword [ecx + 0x7c]
mov edx, dword [ecx + ebx*4]
mov ecx, dword [ebp - 0x1c]
shl ecx, 2
mov eax, dword [ecx + eax]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + ecx*4]
push edx
push dword [ebp - 0x1c]
call fcn.004088d3
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi + 0x78]
mov eax, dword [ecx + eax]
mov ecx, dword [eax + 0x18]
mov byte [ebp - 4], 1
cmp ecx, edx
je 0x40a937
mov eax, ecx
jmp 0x40a93a
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push 0x4344ec
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x24]
mov eax, dword [esi + 0x78]
mov eax, dword [ecx + eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x40a95c
mov eax, ecx
jmp 0x40a95f
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x4344ec
push eax
call dword [ecx]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40a998
cmp dword [ebp - 0x14], 0
je 0x40a998
mov ecx, dword [eax]
push 0x80000
push edi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 0x80000
push ebx
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x40a9ac
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x40a9ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x18]
jb 0x40a897
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 0x40a9e9
mov eax, dword [eax + 0x70]
push dword [ebx]
mov ecx, dword [eax]
call fcn.0040897b
jmp 0x40a9f8
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x7c]
push dword [ecx]
mov ecx, dword [eax]
call fcn.0040897b
xor edi, edi
cmp dword [esi + 0x24], edi
jbe 0x40aa4e
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 0x40aa38
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x7c]
push dword [edx + ebx]
mov ecx, dword [ecx + eax*4]
call fcn.0040897b
jmp 0x40aa45
mov ecx, dword [ecx + 0x70]
push dword [ebx]
mov ecx, dword [ecx + eax*4]
call fcn.0040897b
inc edi
add ebx, 4
cmp edi, dword [esi + 0x24]
jb 0x40aa07
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 8