Function at 0x405350
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 0x40542e
test byte [esp + 0x118], 1
jne 0x405838
cmp dword [eax + 4], 0
jne 0x405442
test byte [esp + 0xac], 1
jne 0x405838
xorps xmm0, xmm0
test byte [esp + 0x118], 1
jne 0x405498
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 0x4058be
movsd xmm0, qword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edi, dword [eax]
mov dword [esp + 0x104], 0x552db7
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.00405160
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 0x40555e
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
test byte [esp + 0xac], 1
jne 0x405722
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 0x40593c
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.00405160
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 0x405681
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 0x40583c
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.00404240
sub esp, 0x18
mov ebx, eax
test byte [esp + 0x48], 1
jne 0x405881
jmp 0x405896
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax]
mov dword [esp + 0xdc], str.ExceptionRecord
mov dword [esp + 0xe0], 0xf
mov dword [esp + 0xcc], 0x552dd0
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.00405160
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 0x4057ee
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 0x405838
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.00404240
sub esp, 0x18
mov ebx, eax
jmp 0x4058b2
xor ebx, ebx
jmp 0x4058b2
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.004077c0
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x405878
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
test byte [esp + 0x48], 1
je 0x405896
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x3c], 0
test ecx, ecx
je 0x405896
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x38], 1
je 0x4058b2
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x4058b2
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
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
lea eax, [esp + 0x68]
mov dword [esp], eax
lea esi, [esp + 0x3c]
mov ecx, esi
call fcn.00403b90
sub esp, 4
xor eax, eax
test byte [esp + 0x38], 1
je 0x405900
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.00550906
mov ecx, dword [esp + 0x7c]
jmp 0x4059b8
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
lea eax, [esp + 0x68]
mov dword [esp], eax
lea esi, [esp + 0x3c]
mov ecx, esi
call fcn.00403b90
sub esp, 4
xor eax, eax
test byte [esp + 0x38], 1
je 0x40597e
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.00550906
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x4059c1
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.005508f4
int3