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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x494240]
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 0x40ab7c
mov ecx, eax
call fcn.0040b720
cmp dword [esi + 0x10], 0
je 0x40ab7c
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.00407ad0
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.0040abb0
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.0040a530
test al, al
sete bl
cmp dword [esp + 0x38], 8
jb 0x40a8e5
push dword [esp + 0x24]
call fcn.00444e3c
add esp, 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push eax
call fcn.0040acf0
lea ecx, [esp + 0x54]
test bl, bl
je 0x40a973
cmp ecx, eax
je 0x40a909
push 0xffffffffffffffff
push 0
push eax
call fcn.00407ad0
cmp dword [esp + 0x38], 8
jb 0x40a91c
push dword [esp + 0x24]
call fcn.00444e3c
add esp, 4
lea ecx, [esp + 0x54]
call fcn.0040a730
test al, al
jne 0x40a937
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x14]
call fcn.004076a0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0040abb0
lea ecx, [esp + 0x3c]
cmp ecx, eax
je 0x40a957
push 0xffffffffffffffff
push 0
push eax
call fcn.00407ad0
cmp dword [esp + 0x38], 8
jb 0x40a8b4
push dword [esp + 0x24]
call fcn.00444e3c
add esp, 4
jmp 0x40a8b4
cmp ecx, eax
je 0x40a985
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
call fcn.00407ad0
cmp dword [esp + 0x38], 8
jb 0x40a998
push dword [esp + 0x24]
call fcn.00444e3c
add esp, 4
cmp dword [esp + 0x64], 0
je 0x40a9d6
lea eax, [esp + 0x54]
push 0x48d524
push eax
call fcn.00409150
add esp, 8
test al, al
je 0x40a9d6
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0040acf0
push eax
lea ecx, [esp + 0x14]
call fcn.004076a0
lea ecx, [esp + 0x24]
call fcn.00407530
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x40]
call fcn.0040abb0
lea ecx, [esp + 0x6c]
call fcn.0040a4c0
cmp eax, 0xffffffff
je 0x40aa3b
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.00407ad0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.00407620
cmp dword [esp + 0x38], 8
jb 0x40aa3b
push dword [esp + 0x24]
call fcn.00444e3c
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 0x40aab3
cmp eax, 0xaaaaaaa
ja 0x40ab93
lea edi, [eax + eax*2]
shl edi, 3
push edi
call fcn.00444deb
add esp, 4
test eax, eax
je 0x40ab9d
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.0040b9b0
add esp, 0xc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
call fcn.004075b0
mov edi, dword [esp + 0x10]
test edi, edi
je 0x40aae0
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
push edi
call fcn.00407e50
push edi
call fcn.00444e3c
add esp, 4
cmp dword [esp + 0x80], 8
jb 0x40aaf6
push dword [esp + 0x6c]
call fcn.00444e3c
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 0x40ab23
push dword [esp + 0x54]
call fcn.00444e3c
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 0x40ab4d
push dword [esp + 0x3c]
call fcn.00444e3c
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 0x40ab7c
push ebx
push esi
lea ecx, [esp + 0x18]
call fcn.00407e50
push esi
call fcn.00444e3c
add esp, 4
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004455d4
mov esp, ebp
pop ebp
ret 4
push str.vector_T__too_long
call fcn.00444196
call fcn.00444165
int3