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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5f75ac
mov eax, dword fs:[0]
push eax
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x30], 3
jne 0x5a41df
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x3c]
inc eax
cmp eax, 2
jle 0x5a41ef
mov ebp, eax
mov dword [esp + 0x48], ebp
jmp 0x5a41fb
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 0x44]
inc eax
cmp eax, 2
mov dword [esp + 0x48], eax
jg 0x5a41f7
mov dword [esp + 0x48], 2
mov ebp, dword [esp + 0x48]
xor ecx, ecx
mov eax, ebp
mov edx, 0x18
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423e60
mov ebx, eax
add esp, 4
mov dword [esp + 0x60], ebx
xor edi, edi
mov dword [esp + 0x140], edi
cmp ebx, edi
je 0x5a423d
push 0x412770
push ebp
push 0x18
push ebx
call fcn.00424e90
mov dword [esp + 0x50], ebx
jmp 0x5a4241
mov dword [esp + 0x50], edi
mov dword [esp + 0x140], 0xffffffff
cmp dword [esp + 0x50], edi
je 0x5a42f7
cmp dword [esi + 0x34], 3
jne 0x5a4270
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x3c]
inc eax
cmp eax, 2
jle 0x5a4280
mov edi, eax
mov dword [esp + 0x4c], edi
jmp 0x5a428c
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx + 0x44]
inc eax
cmp eax, 2
mov dword [esp + 0x4c], eax
jg 0x5a4288
mov dword [esp + 0x4c], 2
mov edi, dword [esp + 0x4c]
xor ecx, ecx
mov eax, edi
mov edx, 0x18
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423e60
mov ebx, eax
add esp, 4
mov dword [esp + 0x60], ebx
mov dword [esp + 0x140], 1
test ebx, ebx
je 0x5a42d0
push 0x412770
push edi
push 0x18
push ebx
call fcn.00424e90
mov dword [esp + 0x5c], ebx
jmp 0x5a42d8
mov dword [esp + 0x5c], 0
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x140], 0xffffffff
jne 0x5a4310
mov eax, dword [esp + 0x50]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 3
cmp dword [esi + 0x30], ecx
jne 0x5a431f
mov eax, dword [esi + 0x10]
jmp 0x5a4322
mov eax, dword [esi + 0x20]
movsd xmm1, qword [eax + 0x10]
movsd xmm0, qword [eax + 0x18]
lea ebx, [ebp - 1]
subsd xmm0, xmm1
movsd qword [esp + 0x64], xmm1
cvtsi2sd xmm1, ebx
divsd xmm0, xmm1
movsd qword [esp + 0xc4], xmm0
cmp dword [esi + 0x34], ecx
jne 0x5a4354
mov eax, dword [esi + 0x14]
jmp 0x5a4357
mov eax, dword [esi + 0x24]
movsd xmm0, qword [eax + 0x10]
movsd qword [esp + 0x6c], xmm0
movsd xmm0, qword [eax + 0x18]
movsd qword [esp + 0xb4], xmm0
fld qword [esp + 0xb4]
fsub qword [esp + 0x6c]
lea ecx, [edi - 1]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x50]
fidiv dword [esp + 0x58]
push 0
sub esp, 0x10
lea eax, [esp + 0x90]
lea ecx, [esp + 0xa8]
fstp qword [esp + 0xe0]
fld qword [esp + 0xd8]
fstp qword [esp + 8]
fld qword [esp + 0x78]
fstp qword [esp]
push ebp
push edx
push eax
push ecx
mov ecx, esi
call fcn.005a3d70
fld qword [esp + 0xcc]
push 1
sub esp, 0x10
fstp qword [esp + 8]
lea edx, [esp + 0xc0]
fld qword [esp + 0x80]
lea eax, [esp + 0xe8]
fstp qword [esp]
push edi
mov edi, dword [esp + 0x74]
push edi
push edx
push eax
mov ecx, esi
call fcn.005a3d70
movsd xmm0, qword [esi + 8]
movsd xmm2, qword [esp + 0x94]
movapd xmm1, xmm0
addsd xmm1, qword [esp + 0xac]
comisd xmm2, xmm1
ja 0x5a4496
movsd xmm2, qword [esp + 0x9c]
movapd xmm1, xmm0
addsd xmm1, qword [esp + 0xb4]
comisd xmm2, xmm1
ja 0x5a4496
movsd xmm2, qword [esp + 0xa4]
movapd xmm1, xmm0
addsd xmm1, qword [esp + 0xbc]
comisd xmm2, xmm1
ja 0x5a4496
movsd xmm1, qword [esp + 0xd4]
subsd xmm1, xmm0
comisd xmm1, xmmword [esp + 0x7c]
ja 0x5a4496
movsd xmm1, qword [esp + 0xdc]
subsd xmm1, xmm0
comisd xmm1, xmmword [esp + 0x84]
ja 0x5a4496
movsd xmm1, qword [esp + 0xe4]
subsd xmm1, xmm0
comisd xmm1, xmmword [esp + 0x8c]
jbe 0x5a44c2
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x54]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 8
xor al, al
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x40]
xor edi, edi
mov dword [esp + 0x60], edx
test ebx, ebx
jle 0x5a471e
mov edx, dword [esp + 0x50]
add edx, 0x28
mov dword [esp + 0x54], edx
movsd xmm0, qword [edx - 0x28]
movsd xmm1, qword [edx - 0x10]
comisd xmm1, xmm0
jbe 0x5a44ff
movsd qword [esp + 0x94], xmm0
movsd qword [esp + 0x7c], xmm1
jmp 0x5a450e
movsd qword [esp + 0x94], xmm1
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [edx - 0x20]
movsd xmm1, qword [edx - 8]
comisd xmm1, xmm0
jbe 0x5a4532
movsd qword [esp + 0x9c], xmm0
movsd qword [esp + 0x84], xmm1
jmp 0x5a4544
movsd qword [esp + 0x9c], xmm1
movsd qword [esp + 0x84], xmm0
movsd xmm0, qword [edx - 0x18]
movsd xmm1, qword [edx]
comisd xmm1, xmm0
jbe 0x5a4567
movsd qword [esp + 0xa4], xmm0
movsd qword [esp + 0x8c], xmm1
jmp 0x5a4579
movsd qword [esp + 0xa4], xmm1
movsd qword [esp + 0x8c], xmm0
xor ebx, ebx
cmp dword [esp + 0x58], ebx
jle 0x5a470b
mov ebp, dword [esp + 0x5c]
add ebp, 0x28
lea esp, [esp]
movsd xmm0, qword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x10]
comisd xmm1, xmm0
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x10]
jbe 0x5a45b0
movapd xmm5, xmm0
movapd xmm6, xmm1
jmp 0x5a45b8
movapd xmm5, xmm1
movapd xmm6, xmm0
movsd xmm0, qword [ebp - 0x20]
movsd xmm1, qword [ebp - 8]
comisd xmm1, xmm0
jbe 0x5a45d2
movapd xmm3, xmm0
movapd xmm4, xmm1
jmp 0x5a45da
movapd xmm3, xmm1
movapd xmm4, xmm0
movsd xmm0, qword [ebp - 0x18]
movsd xmm1, qword [ebp]
comisd xmm1, xmm0
jbe 0x5a45f0
movapd xmm2, xmm0
jmp 0x5a45f8
movapd xmm2, xmm1
movapd xmm1, xmm0
movsd xmm0, qword [esi + 8]
movapd xmm7, xmm0
addsd xmm7, xmm6
movsd xmm6, qword [esp + 0x94]
comisd xmm6, xmm7
ja 0x5a46f9
movapd xmm6, xmm0
addsd xmm6, xmm4
movsd xmm4, qword [esp + 0x9c]
comisd xmm4, xmm6
ja 0x5a46f9
movapd xmm4, xmm0
addsd xmm4, xmm1
movsd xmm1, qword [esp + 0xa4]
comisd xmm1, xmm4
ja 0x5a46f9
subsd xmm5, xmm0
comisd xmm5, xmmword [esp + 0x7c]
ja 0x5a46f9
subsd xmm3, xmm0
comisd xmm3, xmmword [esp + 0x84]
ja 0x5a46f9
subsd xmm2, xmm0
comisd xmm2, xmmword [esp + 0x8c]
ja 0x5a46f9
push ecx
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [edx - 0x10]
push eax
lea eax, [edx - 0x28]
push eax
lea ecx, [esp + 0xc0]
push ecx
mov ecx, esi
call fcn.005a3ea0
mov edx, dword [esp + 0x54]
test al, al
je 0x5a46f9
mov eax, dword [esi + 0x40]
shl eax, 4
add eax, dword [esi + 0x3c]
cvtsi2sd xmm0, edi
addsd xmm0, qword [esp + 0xac]
mulsd xmm0, qword [esp + 0xc4]
addsd xmm0, qword [esp + 0x64]
movsd qword [eax], xmm0
cvtsi2sd xmm0, ebx
addsd xmm0, qword [esp + 0x74]
mulsd xmm0, qword [esp + 0xcc]
addsd xmm0, qword [esp + 0x6c]
movsd qword [eax + 8], xmm0
mov eax, dword [esi + 0x40]
cmp eax, 0x31
jge 0x5a46f9
inc eax
mov dword [esi + 0x40], eax
inc ebx
add ebp, 0x18
cmp ebx, dword [esp + 0x58]
jl 0x5a4590
mov ebp, dword [esp + 0x48]
inc edi
add edx, 0x18
lea eax, [ebp - 1]
cmp edi, eax
mov dword [esp + 0x54], edx
jl 0x5a44de
mov edx, dword [esp + 0x60]
cmp dword [esi + 0x40], edx
jne 0x5a48b1
movsd xmm0, qword [0x5ff710]
xor eax, eax
cmp ebp, eax
movsd qword [esp + 0xac], xmm0
mov dword [esp + 0x54], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x58], eax
jle 0x5a483a
mov ebx, dword [esp + 0x50]
xor ebp, ebp
cmp dword [esp + 0x4c], ebp
jle 0x5a4824
mov edi, dword [esp + 0x5c]
add edi, 0x10
lea esp, [esp]
movsd xmm0, qword [ebx]
subsd xmm0, qword [edi - 0x10]
movsd qword [esp + 0xd4], xmm0
movsd xmm0, qword [ebx + 8]
subsd xmm0, qword [edi - 8]
movsd qword [esp + 0xdc], xmm0
movsd xmm0, qword [ebx + 0x10]
subsd xmm0, qword [edi]
lea ecx, [esp + 0xd4]
movsd qword [esp + 0xe4], xmm0
call fcn.004a88b0
fld qword [esp + 0xac]
fcompi st(1)
fstp st(0)
jbe 0x5a4816
movsd xmm0, qword [ebx]
subsd xmm0, qword [edi - 0x10]
movsd qword [esp + 0xec], xmm0
movsd xmm0, qword [ebx + 8]
subsd xmm0, qword [edi - 8]
movsd qword [esp + 0xf4], xmm0
movsd xmm0, qword [ebx + 0x10]
subsd xmm0, qword [edi]
lea ecx, [esp + 0xec]
movsd qword [esp + 0xfc], xmm0
call fcn.004a88b0
fstp qword [esp + 0xac]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], eax
mov dword [esp + 0x74], ebp
inc ebp
add edi, 0x18
cmp ebp, dword [esp + 0x4c]
jl 0x5a4770
mov eax, dword [esp + 0x58]
inc eax
add ebx, 0x18
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x58], eax
jl 0x5a4756
mov eax, dword [esi + 0x40]
cvtsi2sd xmm0, dword [esp + 0x54]
mulsd xmm0, qword [esp + 0xc4]
addsd xmm0, qword [esp + 0x64]
shl eax, 4
add eax, dword [esi + 0x3c]
sub esp, 0x10
movsd qword [eax], xmm0
cvtsi2sd xmm0, dword [esp + 0x84]
mulsd xmm0, qword [esp + 0xdc]
addsd xmm0, qword [esp + 0x7c]
movsd qword [eax + 8], xmm0
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov ecx, eax
shl ecx, 4
movq xmm0, qword [ecx + edx]
add ecx, edx
mov edx, esp
movq qword [edx], xmm0
movq xmm0, qword [ecx + 8]
push ecx
mov ecx, dword [esi + 0x38]
lea eax, [eax + eax*2]
movq qword [edx + 8], xmm0
lea edx, [ecx + eax*8]
push edx
push esi
mov ecx, esi
call fcn.00570980
mov eax, dword [esp + 0x50]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov ecx, dword [esp + 0x60]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov edx, dword [esp + 0x68]
xor eax, eax
add esp, 8
cmp dword [esi + 0x40], edx
setg al
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret