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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4b5870]
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 0x40a8de
mov ecx, eax
call fcn.0040b1c0
cmp dword [esi + 0x10], 0
je 0x40a8de
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.00403730
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.0040a910
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.0040a260
test al, al
sete bl
cmp dword [esp + 0x38], 8
jb 0x40a645
push dword [esp + 0x24]
call fcn.0046ec0e
add esp, 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push eax
call fcn.0040aa50
lea ecx, [esp + 0x54]
test bl, bl
je 0x40a6d3
cmp ecx, eax
je 0x40a669
push 0xffffffffffffffff
push 0
push eax
call fcn.00403730
cmp dword [esp + 0x38], 8
jb 0x40a67c
push dword [esp + 0x24]
call fcn.0046ec0e
add esp, 4
lea ecx, [esp + 0x54]
call fcn.0040a460
test al, al
jne 0x40a697
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x14]
call fcn.00407700
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0040a910
lea ecx, [esp + 0x3c]
cmp ecx, eax
je 0x40a6b7
push 0xffffffffffffffff
push 0
push eax
call fcn.00403730
cmp dword [esp + 0x38], 8
jb 0x40a614
push dword [esp + 0x24]
call fcn.0046ec0e
add esp, 4
jmp 0x40a614
cmp ecx, eax
je 0x40a6e5
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
call fcn.00403730
cmp dword [esp + 0x38], 8
jb 0x40a6f8
push dword [esp + 0x24]
call fcn.0046ec0e
add esp, 4
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40a738
push 1
push 0x4a76e0
push eax
push 0
lea ecx, [esp + 0x64]
call fcn.004081d0
test eax, eax
je 0x40a738
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0040aa50
push eax
lea ecx, [esp + 0x14]
call fcn.00407700
lea ecx, [esp + 0x24]
call fcn.0040a530
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x40]
call fcn.0040a910
lea ecx, [esp + 0x6c]
call fcn.0040a1f0
cmp eax, 0xffffffff
je 0x40a79d
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.00403730
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.00407680
cmp dword [esp + 0x38], 8
jb 0x40a79d
push dword [esp + 0x24]
call fcn.0046ec0e
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 0x40a815
cmp eax, 0xaaaaaaa
ja 0x40a8f5
lea edi, [eax + eax*2]
shl edi, 3
push edi
call fcn.0046ebbd
add esp, 4
test eax, eax
je 0x40a8ff
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.0040b3b0
add esp, 0xc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
call fcn.00407610
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40a842
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
push edi
call fcn.00407c50
push edi
call fcn.0046ec0e
add esp, 4
cmp dword [esp + 0x80], 8
jb 0x40a858
push dword [esp + 0x6c]
call fcn.0046ec0e
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 0x40a885
push dword [esp + 0x54]
call fcn.0046ec0e
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 0x40a8af
push dword [esp + 0x3c]
call fcn.0046ec0e
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 0x40a8de
push ebx
push esi
lea ecx, [esp + 0x18]
call fcn.00407c50
push esi
call fcn.0046ec0e
add esp, 4
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046f685
mov esp, ebp
pop ebp
ret 4
push str.vector_T__too_long
call fcn.0046e073
call fcn.0046e042
int3