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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
movsd xmm0, qword [esp + 0x54]
movsd qword [esp], xmm0
lea ebx, [esp + 0x88]
mov ecx, ebx
call fcn.0040a080
mov ecx, ebx
call fcn.0040a380
test al, al
je 0x40964e
cmp byte [esp + 0x14], 0
je 0x409611
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
movsd xmm0, qword [esp + 0x4c]
movsd qword [esp], xmm0
call fcn.00410bd2
cmp eax, 3
jne 0x409611
mov word [esp + 0x2c], 0x105
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x1c]
call fcn.00409970
mov ebx, eax
cmp byte [0x416e98], 1
jne 0x4096af
test byte [ebx + 0x3c], 8
jne 0x4096af
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jae 0x409675
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x88], 0
mov dword [eax], ecx
movups xmm0, xmmword [esp + 0x8c]
movups xmm1, xmmword [esp + 0x9c]
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x14], xmm1
add eax, 0x28
jmp 0x409689
mov word [esp + 0x6c], 0x105
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x5c]
movups xmmword [esp], xmm0
call fcn.0040a470
jmp 0x40968c
lea eax, [esp + 0x88]
mov dword [esp], eax
mov ecx, esi
call fcn.00409f30
sub esp, 4
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x88], 0
test ecx, ecx
je 0x4096a7
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], 1
lea ecx, [esp + 0x1c]
call fcn.00410d04
sub esp, 0xc
mov dword [esp], ebx
lea ecx, [esp + 0x70]
call fcn.00410d3a
sub esp, 4
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
movzx ecx, word [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x24], esi
mov word [esp + 0x2c], cx
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + 0x84]
test edi, edi
mov dword [esp + 0x14], edx
je 0x409748
lea ecx, [esp + 0x20]
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax]
sub esp, 4
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x30], edi
test edx, edx
je 0x4097b9
mov eax, dword [edx]
mov dword [esp], edx
lea ecx, [esp + 0x70]
call dword [eax]
sub esp, 4
mov eax, dword [esp + 0x70]
mov dword [esp + 0x44], eax
cmp esi, 4
jae 0x4097c4
cmp edi, 4
mov esi, dword [esp + 0x34]
jb 0x409800
cmp dword [esp + 0x24], ebx
je 0x409800
lea edi, [esp + 0x1c]
nop word [eax + eax]
movzx eax, byte [0x416e98]
mov dword [esp], eax
mov ecx, esi
mov edx, edi
call fcn.004089d0
mov ecx, edi
call fcn.00408240
cmp dword [esp + 0x30], 4
jb 0x409800
cmp dword [esp + 0x24], ebx
jne 0x409790
jmp 0x409800
xor eax, eax
mov dword [esp + 0x44], eax
cmp esi, 4
jb 0x409773
cmp dword [esp + 0x3c], ebx
mov esi, dword [esp + 0x34]
je 0x409800
lea edi, [esp + 0x1c]
nop word cs:[eax + eax]
movzx eax, byte [0x416e98]
mov dword [esp], eax
mov ecx, esi
mov edx, edi
call fcn.004089d0
mov ecx, edi
call fcn.00408240
cmp dword [esp + 0x24], ebx
jne 0x4097e0
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x40980d
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], 0
test ecx, ecx
mov esi, dword [esp + 0x48]
je 0x409826
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x409833
mov eax, dword [ecx]
call dword [eax + 8]
test esi, esi
je 0x40983e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], 0
mov word [esp + 0xc0], 0x101
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0xb0]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x38]
call fcn.00404df0
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x409885
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40968c
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40968c