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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x150
mov dword [esp + 0x2c], ecx
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov eax, dword [eax]
lea ecx, [esp + 0xb8]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0xc0]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
lea eax, [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x10c]
call fcn.00403970
sub esp, 0x28
add edi, 4
adc ebx, 0
mov eax, dword [ebp + 0x24]
mov eax, dword [eax + 4]
and eax, 0xfffffffc
lea ecx, [esp + 0xb0]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
lea eax, [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
lea ecx, [esp + 0xa0]
call fcn.00403970
sub esp, 0x28
mov eax, dword [ebp + 0x24]
cmp dword [eax], 0
jne 0x40540e
test byte [esp + 0x118], 1
jne 0x405818
cmp dword [eax + 4], 0
jne 0x405422
test byte [esp + 0xac], 1
jne 0x405818
xorps xmm0, xmm0
test byte [esp + 0x118], 1
jne 0x405478
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x110]
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [eax]
movsd xmm0, qword [esp + 0x3c]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
lea ecx, [esp + 0x30]
call dword [edx + 0x28]
sub esp, 0xc
test byte [esp + 0x38], 1
jne 0x40589e
movsd xmm0, qword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edi, dword [eax]
mov dword [esp + 0x104], 0x54bde7
mov dword [esp + 0x108], 8
movlps qword [esp + 0x11c], xmm0
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xb8]
mov esi, dword [esp + 0xbc]
movsd xmm0, qword [esp + 0x11c]
movsd qword [esp], xmm0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
lea ecx, [esp + 0x3c]
call fcn.00405180
movzx eax, byte [esp + 0x3c]
mov ecx, eax
shr ecx, 1
test al, 1
lea esi, [esp + 0x3d]
mov eax, dword [esp + 0x44]
cmove eax, esi
cmovne ecx, dword [esp + 0x40]
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], ecx
mov eax, dword [edi]
movsd xmm0, qword [esp + 0xfc]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x104]
movsd qword [esp], xmm0
mov ecx, edi
call dword [eax + 0x74]
sub esp, 0x10
test byte [esp + 0x3c], 1
je 0x40553e
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
test byte [esp + 0xac], 1
jne 0x405702
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [eax]
movsd xmm0, qword [esp + 0x3c]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
lea ecx, [esp + 0x30]
call dword [edx + 0x28]
sub esp, 0xc
test byte [esp + 0x38], 1
jne 0x405915
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax]
mov dword [esp + 0xf4], str.ExceptionRecord
mov dword [esp + 0xf8], 0xf
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xe4], eax
mov edx, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
movsd xmm0, qword [esp + 0xe4]
movsd qword [esp], xmm0
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], edx
call fcn.00405180
movzx eax, byte [esp + 0x3c]
mov ecx, eax
shr ecx, 1
test al, 1
cmovne esi, dword [esp + 0x44]
cmovne ecx, dword [esp + 0x40]
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], ecx
mov eax, dword [ebx]
movsd xmm0, qword [esp + 0xec]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xf4]
movsd qword [esp], xmm0
mov ecx, ebx
call dword [eax + 0x74]
sub esp, 0x10
test byte [esp + 0x3c], 1
je 0x405661
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], ecx
mov edx, dword [eax]
movsd xmm0, qword [esp + 0x80]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
lea ecx, [esp + 0x3c]
call dword [edx + 0x40]
sub esp, 0xc
test byte [esp + 0x48], 1
mov ecx, dword [ebp + 8]
jne 0x40581c
mov eax, dword [esp + 0x44]
mov dword [esp + 0x88], eax
movsd xmm0, qword [esp + 0x3c]
movsd qword [esp + 0x80], xmm0
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x80]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
call fcn.00404250
sub esp, 0x18
mov ebx, eax
test byte [esp + 0x48], 1
jne 0x405861
jmp 0x405876
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax]
mov dword [esp + 0xdc], str.ExceptionRecord
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xcc], 0x54be00
mov dword [esp + 0xd0], 0
mov edx, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
movsd xmm0, qword [esp + 0xcc]
movsd qword [esp], xmm0
mov dword [esp + 8], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], edx
call fcn.00405180
movzx eax, byte [esp + 0x3c]
mov ecx, eax
shr ecx, 1
test al, 1
cmovne esi, dword [esp + 0x44]
cmovne ecx, dword [esp + 0x40]
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], ecx
mov eax, dword [ebx]
movsd xmm0, qword [esp + 0xd4]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xdc]
movsd qword [esp], xmm0
mov ecx, ebx
call dword [eax + 0x74]
sub esp, 0x10
test byte [esp + 0x3c], 1
je 0x4057ce
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
mov dword [esp + 0xc], edi
mov ebx, dword [esp + 0x60]
mov dword [esp + 8], ebx
mov esi, dword [ebp + 8]
mov dword [esp + 4], esi
lea esi, [esp + 0x3c]
mov ecx, esi
call fcn.00403210
sub esp, 0x10
test byte [esp + 0x48], 1
jne 0x405818
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov ecx, dword [esp + 0x2c]
call fcn.00404250
sub esp, 0x18
mov ebx, eax
jmp 0x405892
xor ebx, ebx
jmp 0x405892
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x68], eax
lea eax, [esp + 0x67]
mov dword [esp + 8], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
lea eax, [esp + 0x80]
mov dword [esp], eax
call fcn.00407790
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x405858
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
test byte [esp + 0x48], 1
je 0x405876
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x3c], 0
test ecx, ecx
je 0x405876
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x38], 1
je 0x405892
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x405892
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x20
xorps xmm0, xmm0
movsd qword [esp + 0x68], xmm0
mov dword [esp + 0x70], 0
lea eax, [esp + 0x68]
mov dword [esp], eax
lea esi, [esp + 0x3c]
mov ecx, esi
call fcn.00403b80
sub esp, 4
xor eax, eax
test byte [esp + 0x38], 1
je 0x4058d9
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], 0
mov dword [esp + 0x7c], eax
mov word [esp + 0x148], 0x101
mov eax, dword [esp + 0x148]
mov dword [esp + 0x18], eax
movups xmm0, xmmword [esp + 0x138]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
lea eax, [esp + 0x7c]
mov dword [esp], eax
call fcn.0054a4f2
mov ecx, dword [esp + 0x7c]
jmp 0x40598a
xorps xmm0, xmm0
movsd qword [esp + 0x68], xmm0
mov dword [esp + 0x70], 0
lea eax, [esp + 0x68]
mov dword [esp], eax
lea esi, [esp + 0x3c]
mov ecx, esi
call fcn.00403b80
sub esp, 4
xor eax, eax
test byte [esp + 0x38], 1
je 0x405950
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], 0
mov dword [esp + 0x78], eax
mov word [esp + 0x134], 0x101
mov eax, dword [esp + 0x134]
mov dword [esp + 0x18], eax
movups xmm0, xmmword [esp + 0x124]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
lea eax, [esp + 0x78]
mov dword [esp], eax
call fcn.0054a4f2
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x405993
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x5c]
mov word [esp + 0x90], 0x104
mov dword [esp + 0x80], eax
lea eax, [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.0054a4e0
int3