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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2b8
mov eax, dword [0x426024]
xor eax, esp
mov dword [esp + 0x2b4], eax
movups xmm0, xmmword [0x423010]
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [0x423030]
movups xmmword [esp + 0x88], xmm0
mov dword [esp + 0x48], eax
movups xmm0, xmmword [0x423020]
mov eax, dword [0x42303c]
mov dword [esp + 0x80], eax
movzx eax, word [0x423040]
movups xmmword [esp + 0x38], xmm0
mov word [esp + 0x84], ax
movq xmm0, qword [0x423034]
movzx eax, word [0x42304c]
movq qword [esp + 0x78], xmm0
movq xmm0, qword [0x423044]
push esi
mov word [esp + 0x78], ax
mov eax, dword [0x423058]
push edi
mov edi, dword [ebp + 0x10]
movq qword [esp + 0x74], xmm0
movq xmm0, qword [0x423050]
mov dword [esp + 0x6c], eax
movzx eax, word [0x42305c]
movq qword [esp + 0x64], xmm0
movups xmm0, xmmword [0x423060]
push 0x208
mov word [esp + 0x74], ax
lea eax, [esp + 0xb4]
push 0
push eax
movups xmmword [esp + 0xac], xmm0
call fcn.0040b6f0
add esp, 0xc
lea eax, [esp + 0xb0]
push 0x104
push eax
push 0
call dword [0x41d078]
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
cmp word [esp + 0xb0], ax
jne 0x405950
xor ecx, ecx
jmp 0x40596f
lea ecx, [esp + 0xb0]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405960
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x18]
call fcn.00404cf0
push 0x423070
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
call fcn.00405da0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40599e
mov eax, dword [eax]
push eax
call dword [0x41d06c]
mov eax, dword [esp + 0x3c]
cmp eax, 8
jb 0x4059b9
inc eax
push eax
push dword [esp + 0x2c]
call fcn.00402dc0
xor eax, eax
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], 0
cmp eax, 8
jb 0x4059e4
inc eax
push eax
push dword [esp + 0x14]
call fcn.00402dc0
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
cmp word [edi], ax
jne 0x405a04
xor ecx, ecx
jmp 0x405a1f
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a10
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x18]
call fcn.00404cf0
cmp word [esp + 0x90], 0
jne 0x405a39
xor ecx, ecx
jmp 0x405a52
lea ecx, [esp + 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a43
sub ecx, edx
sar ecx, 1
push ecx
push 0
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404c00
test eax, eax
mov eax, dword [esp + 0x24]
sete byte [esp + 0xb]
cmp eax, 8
jb 0x405a81
inc eax
push eax
push dword [esp + 0x14]
call fcn.00402dc0
cmp byte [esp + 0xb], 0
jne 0x405bac
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
cmp word [edi], ax
jne 0x405aac
xor ecx, ecx
jmp 0x405ac0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ab1
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x18]
call fcn.00404cf0
cmp word [esp + 0x80], 0
jne 0x405ada
xor ecx, ecx
jmp 0x405af3
lea ecx, [esp + 0x80]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ae4
sub ecx, edx
sar ecx, 1
push ecx
push 0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404c00
test eax, eax
mov eax, dword [esp + 0x24]
sete byte [esp + 0xb]
cmp eax, 8
jb 0x405b22
inc eax
push eax
push dword [esp + 0x14]
call fcn.00402dc0
cmp byte [esp + 0xb], 0
je 0x405b47
push ecx
call fcn.00406d10
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.004090e5
mov esp, ebp
pop ebp
ret 0x10
push edi
lea ecx, [esp + 0x2c]
call fcn.00404ba0
cmp word [esp + 0x40], 0
mov esi, eax
jne 0x405b5f
xor ecx, ecx
jmp 0x405b75
lea ecx, [esp + 0x40]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b66
sub ecx, edx
sar ecx, 1
push ecx
push 0
lea eax, [esp + 0x48]
mov ecx, esi
push eax
call fcn.00404c00
test eax, eax
mov eax, dword [esp + 0x3c]
sete byte [esp + 0xb]
cmp eax, 8
jb 0x405b9f
inc eax
push eax
push dword [esp + 0x2c]
call fcn.00402dc0
cmp byte [esp + 0xb], 0
je 0x405bd4
push ecx
call fcn.00406d10
sub esp, 0xc
lea eax, [esp + 0xbc]
push eax
call fcn.004067c0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.004090e5
mov esp, ebp
pop ebp
ret 0x10
push edi
lea ecx, [esp + 0x2c]
call fcn.00404ba0
cmp word [esp + 0x74], 0
mov esi, eax
jne 0x405bec
xor ecx, ecx
jmp 0x405c02
lea ecx, [esp + 0x74]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405bf3
sub ecx, edx
sar ecx, 1
push ecx
push 0
lea eax, [esp + 0x7c]
mov ecx, esi
push eax
call fcn.00404c00
test eax, eax
mov eax, dword [esp + 0x3c]
sete byte [esp + 0xb]
cmp eax, 8
jb 0x405c2c
inc eax
push eax
push dword [esp + 0x2c]
call fcn.00402dc0
cmp byte [esp + 0xb], 0
je 0x405c54
mov ecx, dword [esp + 0xc]
call fcn.00407660
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.004090e5
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [esp + 0x68]
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.00404ba0
mov ecx, eax
call fcn.00404a50
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00402630
test esi, esi
jne 0x405d2e
lea eax, [esp + 0x40]
mov dword [esp + 0x54], 0xf
push eax
mov edx, 0x401110
mov dword [esp + 0x54], 0
mov ecx, 0x422ddc
mov byte [esp + 0x44], 0
call fcn.004010c0
add esp, 4
test al, al
je 0x405cb6
cmp dword [esp + 0x50], 0
jne 0x405cc4
push 0x422dcc
lea ecx, [esp + 0x44]
call fcn.00402960
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0xc]
lea edx, [esp + 0x40]
cmovae edx, dword [esp + 0x40]
lea ecx, [esp + 0x40]
push eax
call fcn.00402670
push ecx
lea ecx, [esp + 0x2c]
push dword [eax]
push edx
call fcn.00403350
cmp dword [eax + 0x14], 8
jb 0x405cf5
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00401d50
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00402630
lea ecx, [esp + 0x40]
call fcn.00402790
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.004090e5
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [esp + 0xa4]
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.00404ba0
mov ecx, eax
call fcn.00404a50
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00402630
test esi, esi
je 0x405c7f
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0x422f04
push eax
mov dword [esp + 0x6c], 0x4060f0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call dword [0x41d028]
mov ecx, dword [esp + 0x2bc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004090e5
mov esp, ebp
pop ebp
ret 0x10