Function at 0x409590
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.0040a0e0
mov ecx, ebx
call fcn.0040a440
test al, al
je 0x409684
cmp byte [esp + 0x14], 0
je 0x409641
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.00410e86
cmp eax, 2
jne 0x409641
mov word [esp + 0x2c], 0x105
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x1c]
call fcn.004099a0
mov ebx, eax
cmp byte [0x417e90], 1
jne 0x4096c5
test byte [ebx + 0x3c], 8
jne 0x4096c5
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
jae 0x4096ae
mov edx, dword [esp + 0x88]
mov dword [esp + 0x88], 0
mov dword [eax], edx
movups xmm0, xmmword [esp + 0x8c]
movups xmm1, xmmword [esp + 0x9c]
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x14], xmm1
add eax, 0x28
mov dword [ecx + 4], eax
jmp 0x4098a2
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.0040a530
jmp 0x4098a2
lea eax, [esp + 0x88]
mov dword [esp], eax
call fcn.00409f90
sub esp, 4
jmp 0x4098a2
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.00410fb8
sub esp, 0xc
mov dword [esp], ebx
lea ecx, [esp + 0x70]
call fcn.00410fee
sub esp, 4
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
movzx ecx, word [esp + 0x2c]
mov edi, dword [esp + 0x30]
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], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x2c], cx
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x40], eax
test esi, esi
mov dword [esp + 0x14], edx
je 0x40975e
lea ecx, [esp + 0x20]
mov eax, dword [esi]
mov dword [esp], esi
call dword [eax]
sub esp, 4
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], esi
mov dword [esp + 0x30], edi
test edx, edx
je 0x4097c9
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 dword [esp + 0x40], 4
jae 0x4097d6
cmp edi, 4
mov esi, dword [esp + 0x34]
jb 0x409810
cmp dword [esp + 0x24], ebx
je 0x409810
lea edi, [esp + 0x1c]
nop
movzx eax, byte [0x417e90]
mov dword [esp], eax
mov ecx, esi
mov edx, edi
call fcn.00408920
mov ecx, edi
call fcn.00408170
cmp dword [esp + 0x30], 4
jb 0x409810
cmp dword [esp + 0x24], ebx
jne 0x4097a0
jmp 0x409810
xor eax, eax
mov dword [esp + 0x44], eax
cmp dword [esp + 0x40], 4
jb 0x409787
cmp dword [esp + 0x3c], ebx
mov esi, dword [esp + 0x34]
je 0x409810
lea edi, [esp + 0x1c]
nop word cs:[eax + eax]
movzx eax, byte [0x417e90]
mov dword [esp], eax
mov ecx, esi
mov edx, edi
call fcn.00408920
mov ecx, edi
call fcn.00408170
cmp dword [esp + 0x24], ebx
jne 0x4097f0
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x40981d
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 0x409836
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x409843
mov eax, dword [ecx]
call dword [eax + 8]
test esi, esi
je 0x40984e
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.00404c30
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x409895
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4098a2
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x88], 0
test ecx, ecx
je 0x4098bd
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret