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

Disassembly:
push 0xffffffffffffffff
push 0x42c2b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp + 0x7c]
push esi
push edi
mov dword [esp + 0x30], 0
test eax, eax
je 0x40a8ef
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x78]
add ecx, ecx
add ecx, ecx
mov esi, dword [ecx + eax]
mov eax, dword [ebp + 8]
add eax, ecx
mov cl, byte [ebp + 0x60]
test cl, cl
je 0x40a6c7
mov dword [esp + 0x14], 1
jmp 0x40a6cd
mov edx, dword [eax]
mov dword [esp + 0x14], edx
test cl, cl
je 0x40a6d9
mov eax, dword [eax]
mov dword [esp + 0x18], eax
jmp 0x40a6e1
mov dword [esp + 0x18], 1
mov ebx, dword [esi + 0x74]
test ebx, ebx
je 0x40a70f
mov ecx, dword [esi + 0x70]
mov edi, dword [ecx + ebx*4 - 4]
dec ebx
test edi, edi
je 0x40a70b
mov eax, dword [edi]
test eax, eax
je 0x40a702
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push edi
call fcn.004259b6
add esp, 4
test ebx, ebx
jne 0x40a6e8
cmp dword [esp + 0x14], 0
mov dword [esi + 0x74], 0
mov dword [esp + 0x10], 0
jbe 0x40a7d4
lea esp, [esp]
push 4
call fcn.004259f0
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x40a927
mov dword [ecx], 0
mov eax, dword [esi + 0x78]
cmp dword [esi + 0x74], eax
jne 0x40a7b5
mov ecx, eax
shr ecx, 2
lea ebx, [ecx + eax + 1]
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.004259f0
mov edi, eax
add esp, 4
test edi, edi
je 0x40a93c
cmp dword [esi + 0x74], 0
je 0x40a79f
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
add eax, eax
add eax, eax
push eax
push ecx
push edi
call fcn.00429520
add esp, 0xc
mov eax, dword [esi + 0x70]
push eax
call fcn.004259b6
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esi + 0x70], edi
mov dword [esi + 0x78], ebx
mov edx, dword [esi + 0x74]
mov eax, dword [esi + 0x70]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x10]
inc dword [esi + 0x74]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jb 0x40a730
mov ebx, dword [esi + 0x80]
test ebx, ebx
je 0x40a807
mov edi, edi
mov ecx, dword [esi + 0x7c]
mov edi, dword [ecx + ebx*4 - 4]
dec ebx
test edi, edi
je 0x40a803
mov eax, dword [edi]
test eax, eax
je 0x40a7fa
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push edi
call fcn.004259b6
add esp, 4
test ebx, ebx
jne 0x40a7e0
cmp dword [esp + 0x18], 0
mov dword [esi + 0x80], 0
mov dword [esp + 0x10], 0
jbe 0x40a8dd
push 4
call fcn.004259f0
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x40a951
mov dword [ecx], 0
mov eax, dword [esi + 0x84]
cmp dword [esi + 0x80], eax
jne 0x40a8b8
mov ecx, eax
shr ecx, 2
lea ebx, [ecx + eax + 1]
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.004259f0
mov edi, eax
add esp, 4
test edi, edi
je 0x40a966
cmp dword [esi + 0x80], 0
je 0x40a89f
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x7c]
add eax, eax
add eax, eax
push eax
push ecx
push edi
call fcn.00429520
add esp, 0xc
mov eax, dword [esi + 0x7c]
push eax
call fcn.004259b6
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esi + 0x7c], edi
mov dword [esi + 0x84], ebx
mov edx, dword [esi + 0x80]
mov eax, dword [esi + 0x7c]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x10]
inc dword [esi + 0x80]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x18]
jb 0x40a824
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [ebp + 0x7c]
jb 0x40a6a3
cmp dword [ebp + 0x18], 0
mov dword [esp + 0x30], 0
jbe 0x40aaa7
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x3c]
lea edx, [edx + eax*8]
mov eax, dword [edx]
mov esi, dword [ecx + eax*4]
mov ecx, dword [ebp + 0x30]
sub eax, dword [ecx + esi*4]
mov ecx, eax
mov al, byte [ebp + 0x60]
test al, al
je 0x40a97b
mov ebx, dword [edx + 4]
jmp 0x40a97d
push 0x433900
lea ecx, [esp + 0x38]
xor al, al
push ecx
mov byte [esp + 0x3c], al
call fcn.0042a55f
push 0x433900
lea edx, [esp + 0x38]
xor al, al
push edx
mov byte [esp + 0x3c], al
call fcn.0042a55f
xor al, al
mov byte [esp + 0x34], al
push 0x433900
lea eax, [esp + 0x38]
push eax
call fcn.0042a55f
push 0x433900
lea ecx, [esp + 0x38]
xor al, al
push ecx
mov byte [esp + 0x3c], al
call fcn.0042a55f
mov ebx, esi
test al, al
je 0x40a987
mov dword [esp + 0x18], esi
jmp 0x40a98e
mov edx, dword [edx + 4]
mov dword [esp + 0x18], edx
xor edx, edx
test al, al
mov edi, dword [esp + 0x30]
setne dl
movzx esi, al
mov eax, dword [ebp + 0x78]
dec edx
and edx, ecx
neg esi
sbb esi, esi
and esi, ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [eax + ecx*4]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ecx + 0x7c]
mov eax, dword [eax + 0x70]
mov ecx, dword [ecx + esi*4]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x6c]
mov edi, dword [edx + edi*4]
push ecx
push eax
call fcn.00416620
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], edx
mov byte [esp + 0x28], 1
mov eax, dword [ebp + 0x78]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x18]
cmp ecx, edx
je 0x40a9f3
mov eax, ecx
jmp 0x40a9f6
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x431128
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [ebp + 0x78]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x40aa1c
mov eax, ecx
jmp 0x40aa1f
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x431128
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x40aa6c
test ecx, ecx
je 0x40aa6c
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push 0x80000
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push 0x80000
push esi
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x28], 0
test ecx, ecx
je 0x40aa81
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
test eax, eax
je 0x40aa95
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [ebp + 0x18]
jb 0x40a901
cmp byte [ebp + 0x60], 0
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x78]
mov eax, dword [edx + ecx*4]
je 0x40aadd
mov ebx, dword [esp + 0x34]
mov esi, dword [ebx]
mov eax, dword [eax + 0x70]
mov edi, dword [eax]
test esi, esi
je 0x40aacd
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [edi]
test eax, eax
je 0x40ab06
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40ab06
mov ecx, dword [esp + 0x38]
mov esi, dword [ecx]
mov eax, dword [eax + 0x7c]
mov edi, dword [eax]
test esi, esi
je 0x40aaf4
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [edi]
test eax, eax
je 0x40ab02
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebx, dword [esp + 0x34]
mov dword [edi], esi
cmp dword [ebp + 0x24], 0
mov dword [esp + 0x30], 0
jbe 0x40aba4
mov eax, dword [esp + 0x38]
sub eax, ebx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax + ecx*4]
mov edx, dword [ebp + 0x3c]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp + 0x30]
sub eax, dword [edx + ecx*4]
cmp byte [ebp + 0x60], 0
mov edx, dword [ebp + 0x78]
mov ecx, dword [edx + ecx*4]
je 0x40ab6f
mov edx, dword [esp + 0x34]
mov esi, dword [edx + ebx]
mov ecx, dword [ecx + 0x7c]
mov edi, dword [ecx + eax*4]
test esi, esi
je 0x40ab5f
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov eax, dword [edi]
test eax, eax
je 0x40ab91
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x40ab91
mov esi, dword [ebx]
mov ecx, dword [ecx + 0x70]
mov edi, dword [ecx + eax*4]
test esi, esi
je 0x40ab83
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [edi]
test eax, eax
je 0x40ab91
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
inc eax
mov dword [edi], esi
add ebx, 4
mov dword [esp + 0x30], eax
cmp eax, dword [ebp + 0x24]
jb 0x40ab24
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc