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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40073c6d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push esi
push edi
mov esi, edx
mov dword [esp + 0x1c], 0
mov edi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x44], 1
mov dword [esp + 0x104], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x104], 1
cmp word [esi], 0
jne 0x400460c7
xor eax, eax
jmp 0x400460d0
push esi
call fcn.40054188
add esp, 4
push ecx
lea eax, [esi + eax*2]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.4002eb10
mov byte [esp + 0x104], 2
xor eax, eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
cmp word [edi], ax
je 0x4004610c
push edi
call fcn.40054188
add esp, 4
push eax
push edi
lea ecx, [esp + 0x50]
call fcn.4000744c
mov byte [esp + 0x104], 3
lea ecx, [esp + 0x48]
cmp dword [esp + 0x5c], 8
lea edi, [esp + 0x48]
mov eax, dword [esp + 0x58]
cmovae ecx, dword [esp + 0x48]
cmovae edi, dword [esp + 0x48]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4004614a
mov ecx, dword [ecx + 0x14]
jmp 0x4004614c
xor ecx, ecx
test ecx, 0x80000
jne 0x40046191
push edi
push 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
push ecx
push eax
push edi
lea ecx, [esp + 0x90]
call fcn.4002e090
lea ecx, [esp + 0x78]
mov byte [esp + 0x104], 4
call fcn.4002f000
lea ecx, [esp + 0x78]
mov byte [esp + 0x104], 3
call fcn.40046f40
mov ebx, dword [esp + 0x20]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x1c]
mov ecx, ebx
sub ecx, esi
imul ecx
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp edi, 2
jae 0x400461b6
xor edi, edi
jmp 0x400461b9
add edi, 0xfffffffe
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jae 0x400461f9
cmp edi, 0xaaaaaaa
jbe 0x400461e8
push str.vector_T__too_long
call fcn.4005237f
mov ecx, dword [ebp + 8]
push edi
call fcn.4001ce76
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edi, 3
mov dword [esp + 0x10], 0x24
mov ecx, ebx
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
jae 0x40046223
xor edx, edx
jmp 0x40046226
lea edx, [ecx - 2]
lea eax, [edi - 2]
cmp eax, edx
jae 0x400462a1
cmp byte [esp + 0x44], 0
je 0x40046238
cmp esi, ebx
je 0x4004629c
cmp edi, ecx
jge 0x40046249
test edi, edi
js 0x40046249
mov ebx, dword [esp + 0x10]
lea ecx, [esi + ebx]
jmp 0x40046251
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x60]
push eax
call fcn.4002e450
mov ecx, dword [ebp + 8]
push eax
mov byte [esp + 0x108], 5
call fcn.400468d0
mov byte [esp + 0x104], 3
cmp dword [esp + 0x74], 8
jb 0x40046287
push dword [esp + 0x60]
call fcn.40053016
add esp, 4
mov esi, dword [esp + 0x1c]
inc edi
add ebx, 0xc
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x20]
jmp 0x40046206
call fcn.4002e040
cmp dword [esp + 0x5c], 8
jb 0x400462b8
push dword [esp + 0x48]
call fcn.40053016
mov esi, dword [esp + 0x20]
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 7
mov byte [esp + 0x104], al
or ebx, 0xffffffff
mov edi, dword [esp + 0x18]
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
test edi, edi
je 0x40046309
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x40046305
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x40046305
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x104], 6
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x40046343
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x4004633f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x4004633f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40046350
push esi
call fcn.40053016
add esp, 4
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4