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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x488240]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
push ebx
push esi
mov esi, ecx
push edi
test eax, eax
je 0x40aacc
mov ecx, eax
call fcn.0040b5a0
cmp dword [esi + 0x10], 0
je 0x40aacc
xor eax, eax
mov dword [esp + 0x10], 0
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
call fcn.00407a60
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0040ab00
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.0040a480
test al, al
sete bl
cmp dword [esp + 0x38], 8
jb 0x40a835
push dword [esp + 0x24]
call fcn.0043aa53
add esp, 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push eax
call fcn.0040ac40
lea ecx, [esp + 0x54]
test bl, bl
je 0x40a8c3
cmp ecx, eax
je 0x40a859
push 0xffffffffffffffff
push 0
push eax
call fcn.00407a60
cmp dword [esp + 0x38], 8
jb 0x40a86c
push dword [esp + 0x24]
call fcn.0043aa53
add esp, 4
lea ecx, [esp + 0x54]
call fcn.0040a680
test al, al
jne 0x40a887
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x14]
call fcn.00407630
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0040ab00
lea ecx, [esp + 0x3c]
cmp ecx, eax
je 0x40a8a7
push 0xffffffffffffffff
push 0
push eax
call fcn.00407a60
cmp dword [esp + 0x38], 8
jb 0x40a804
push dword [esp + 0x24]
call fcn.0043aa53
add esp, 4
jmp 0x40a804
cmp ecx, eax
je 0x40a8d5
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
call fcn.00407a60
cmp dword [esp + 0x38], 8
jb 0x40a8e8
push dword [esp + 0x24]
call fcn.0043aa53
add esp, 4
cmp dword [esp + 0x64], 0
je 0x40a926
lea eax, [esp + 0x54]
push 0x481804
push eax
call fcn.004090e0
add esp, 8
test al, al
je 0x40a926
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0040ac40
push eax
lea ecx, [esp + 0x14]
call fcn.00407630
lea ecx, [esp + 0x24]
call fcn.004074c0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x40]
call fcn.0040ab00
lea ecx, [esp + 0x6c]
call fcn.0040a410
cmp eax, 0xffffffff
je 0x40a98b
inc eax
mov dword [esp + 0x38], 7
xor ecx, ecx
mov dword [esp + 0x34], 0
push eax
push ecx
lea eax, [esp + 0x74]
mov word [esp + 0x2c], cx
push eax
lea ecx, [esp + 0x30]
call fcn.00407a60
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.004075b0
cmp dword [esp + 0x38], 8
jb 0x40a98b
push dword [esp + 0x24]
call fcn.0043aa53
add esp, 4
mov ebx, dword [esp + 0x14]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x10]
mov ecx, ebx
sub ecx, esi
mov dword [esp + 0x10], 0
imul ecx
mov dword [esp + 0x14], 0
sar edx, 2
mov eax, edx
mov dword [esp + 0x18], 0
shr eax, 0x1f
add eax, edx
je 0x40aa03
cmp eax, 0xaaaaaaa
ja 0x40aae3
lea edi, [eax + eax*2]
shl edi, 3
push edi
call fcn.0043aa02
add esp, 4
test eax, eax
je 0x40aaed
push dword [esp + 0x1c]
lea ecx, [eax + edi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov ecx, eax
push esi
push ebx
call fcn.0040b830
add esp, 0xc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
call fcn.00407540
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40aa30
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
push edi
call fcn.00407de0
push edi
call fcn.0043aa53
add esp, 4
cmp dword [esp + 0x80], 8
jb 0x40aa46
push dword [esp + 0x6c]
call fcn.0043aa53
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
cmp dword [esp + 0x68], 8
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
jb 0x40aa73
push dword [esp + 0x54]
call fcn.0043aa53
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
cmp dword [esp + 0x50], 8
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
jb 0x40aa9d
push dword [esp + 0x3c]
call fcn.0043aa53
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
test esi, esi
je 0x40aacc
push ebx
push esi
lea ecx, [esp + 0x18]
call fcn.00407de0
push esi
call fcn.0043aa53
add esp, 4
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043b1e4
mov esp, ebp
pop ebp
ret 4
push str.vector_T__too_long
call fcn.00439dad
call fcn.00439d7c
int3