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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x3c]
cmp eax, dword [ecx + 8]
jbe 0x415e67
sub esp, 0xbc
mov ebx, dword [esp + 0xc0]
movsd xmm0, qword [ebx + 0x60]
movsd qword [esp + 0x1c], xmm0
cvtsi2sd xmm0, dword [0x6d9ce4]
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [esp + 0x7c]
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [esp + 0x7c]
divsd xmm0, qword [0x6199c8]
movsd qword [esp + 0x34], xmm0
mov eax, dword [0x6dd4d4]
mov dword [esp + 0x74], eax
mov eax, dword [0x6dd4d8]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x70], eax
cmp dword [esp + 0x70], 0
jl 0x415e39
fild qword [esp + 0x6c]
fstp qword [esp + 0x7c]
movsd xmm0, qword [esp + 0x7c]
movsd qword [esp + 0x7c], xmm0
mov eax, dword [0x6dd4e4]
mov dword [esp + 0x74], eax
mov eax, dword [0x6dd4e8]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x60], eax
cmp dword [esp + 0x60], 0
jl 0x415e0b
fild qword [esp + 0x5c]
fstp qword [esp + 0x64]
movsd xmm0, qword [esp + 0x64]
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
movsd xmm1, qword [esp + 0x7c]
divsd xmm1, xmm0
movsd qword [esp + 0x7c], xmm1
movsd xmm0, qword [esp + 0x7c]
subsd xmm0, qword [0x6199a8]
movsd qword [esp + 0x8c], xmm0
call fcn.00427e80
movsd xmm6, qword [esp + 0x1c]
movsd xmm5, qword [esp + 0x8c]
movsd xmm4, qword [esp + 0x34]
mov edi, dword [esp + 0xc0]
mov eax, dword [esp]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x88], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x58], eax
mov ebp, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
sub ebp, dword [esp + 0x54]
sbb edx, dword [esp + 0x58]
mov ecx, edx
movsd xmm3, qword [0x619990]
cmp edx, 0
jl 0x4158f4
jg 0x41584b
cmp ebp, 0
jbe 0x4158f4
movsd qword [esp + 0x7c], xmm3
mov eax, dword [edi + 0x10]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x58], eax
fild qword [esp + 0x54]
fstp qword [esp + 0x64]
movsd xmm0, qword [esp + 0x64]
movsd qword [esp + 0x64], xmm0
mov eax, dword [0x6d9cf4]
cdq
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], edx
mov eax, dword [esp + 0x84]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x48], eax
mov eax, ebp
mov edx, ecx
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov ebp, ecx
or ebp, ebx
jne 0x415df6
mul esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
fild qword [esp + 0x44]
fstp qword [esp + 0x4c]
movsd xmm0, qword [esp + 0x4c]
movsd qword [esp + 0x4c], xmm0
movsd xmm0, qword [esp + 0x4c]
movsd xmm1, qword [esp + 0x64]
divsd xmm1, xmm0
movsd qword [esp + 0x64], xmm1
movsd xmm3, qword [esp + 0x64]
addsd xmm3, qword [esp + 0x7c]
movsd qword [esp + 0x7c], xmm3
movsd xmm1, qword [esp + 0x7c]
divsd xmm1, qword [0x619990]
movsd qword [esp + 0x7c], xmm1
movsd xmm1, qword [edi + 0x60]
movapd xmm2, xmm5
subsd xmm2, xmm1
movsd qword [esp + 0x64], xmm2
movsd xmm1, qword [esp + 0x64]
movsd xmm0, qword [esp + 0x7c]
mulsd xmm0, xmm1
movsd xmm1, qword [edi + 0x60]
movapd xmm2, xmm4
subsd xmm2, xmm1
movapd xmm1, xmm2
subsd xmm1, xmm0
movsd xmm0, qword [edi + 0x60]
movsd qword [esp + 0x7c], xmm0
movsd qword [esp + 0x64], xmm1
movsd xmm0, qword [esp + 0x64]
mulsd xmm0, qword [0x619998]
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
addsd xmm0, qword [esp + 0x7c]
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
movsd qword [edi + 0x60], xmm0
movsd xmm0, qword [edi + 0x60]
movsd qword [esp + 0x7c], xmm0
xorps xmm0, xmm0
movsd xmm1, qword [esp + 0x7c]
ucomisd xmm0, xmm1
ja 0x415ddd
movsd xmm0, qword [edi + 0x60]
movsd qword [esp + 0x7c], xmm0
movsd qword [esp + 0x64], xmm4
movsd xmm0, qword [esp + 0x64]
mulsd xmm0, qword [0x6199a0]
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
movsd xmm1, qword [esp + 0x7c]
ucomisd xmm1, xmm0
ja 0x415db3
mov ebx, dword [0x6d9f50]
cmp ebx, 0
jle 0x415d7e
mov edx, dword [0x6dd4e4]
mov ecx, dword [0x6dd4e8]
mov eax, dword [0x6dbf68]
mov dword [esp + 0xb4], eax
mov eax, dword [0x6dbf6c]
mov dword [esp + 0xb8], eax
mov eax, dword [0x6dd4d4]
mov dword [esp + 0xac], eax
mov eax, dword [0x6dd4d8]
mov dword [esp + 0xb0], eax
movapd xmm1, xmm4
mov dword [esp + 0x9c], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x78], ecx
cmp dword [esp + 0x78], 0
jl 0x415d85
fild qword [esp + 0x74]
fstp qword [esp + 0x7c]
movsd xmm0, qword [esp + 0x7c]
movsd qword [esp + 0x7c], xmm0
movsd qword [esp + 0x24], xmm1
movsd qword [esp + 0x64], xmm1
movsd xmm0, qword [esp + 0x64]
addsd xmm0, qword [0x6199a8]
movsd qword [esp + 0x64], xmm0
movsd xmm0, qword [esp + 0x64]
movsd xmm1, qword [esp + 0x7c]
mulsd xmm1, xmm0
movsd qword [esp + 0x7c], xmm1
movsd xmm0, qword [esp + 0x7c]
movsd qword [esp + 0x7c], xmm0
fld qword [esp + 0x7c]
fnstcw word [esp + 0xa]
mov word [esp + 8], 0xf7f
fldcw word [esp + 8]
fistp qword [esp + 0x84]
fldcw word [esp + 0xa]
mov eax, dword [esp + 0x84]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0xa8], eax
movsd xmm2, qword [0x619990]
mov eax, dword [edi]
mov dword [esp + 0x94], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x98], eax
movsd qword [esp + 0x4c], xmm4
movsd xmm0, qword [esp + 0x4c]
subsd xmm0, xmm6
movsd qword [esp + 0x4c], xmm0
movsd qword [esp + 0x2c], xmm5
movsd qword [esp + 0x64], xmm5
movsd xmm0, qword [esp + 0x64]
subsd xmm0, xmm6
movsd qword [esp + 0x64], xmm0
movsd qword [esp + 0x14], xmm3
movapd xmm0, xmm3
divsd xmm0, xmm2
movsd qword [esp + 0xc], xmm2
movsd qword [esp + 0x3c], xmm0
call fcn.0042ac40
mov ebx, 0x5f8b63
mov dword [esp], ebx
mov dword [esp + 4], 0x10
call fcn.0042b650
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 4], eax
call fcn.0042b2c0
mov ebx, 0x5f5d63
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.0042b650
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp], xmm0
call fcn.0042af40
mov ebx, 0x5f5d36
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.0042b650
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 4], eax
call fcn.0042b2c0
mov ebx, 0x5f5d59
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.0042b650
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp], xmm0
call fcn.0042af40
mov ebx, 0x5f5d3b
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.0042b650
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 4], eax
call fcn.0042b2c0
mov ebx, 0x5f5d5e
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.0042b650
movsd xmm0, qword [esp + 0x24]
movsd qword [esp], xmm0
call fcn.0042af40
mov ebx, 0x5f5d40
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.0042b650
mov eax, dword [esp + 0xa4]
mov dword [esp], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], eax
call fcn.0042b460
mov ebx, 0x5f5d81
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.0042b650
movsd xmm0, qword [esp + 0x14]
movsd qword [esp], xmm0
call fcn.0042af40
mov ebx, 0x5f5d86
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.0042b650
movsd xmm0, qword [esp + 0xc]
movsd qword [esp], xmm0
call fcn.0042af40
mov ebx, 0x5f5d4a
mov dword [esp], ebx
mov dword [esp + 4], 5
call fcn.0042b650
mov eax, dword [esp + 0x94]
mov dword [esp], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 4], eax
call fcn.0042b460
mov ebx, 0x5f6545
mov dword [esp], ebx
mov dword [esp + 4], 8
call fcn.0042b650
movsd xmm0, qword [esp + 0x4c]
movsd qword [esp], xmm0
call fcn.0042af40
mov ebx, 0x5f6cc6
mov dword [esp], ebx
mov dword [esp + 4], 0xa
call fcn.0042b650
movsd xmm0, qword [esp + 0x64]
movsd qword [esp], xmm0
call fcn.0042af40
mov ebx, 0x5f699b
mov dword [esp], ebx
mov dword [esp + 4], 9
call fcn.0042b650
movsd xmm0, qword [esp + 0x3c]
movsd qword [esp], xmm0
call fcn.0042af40
mov ebx, 0x5f57a6
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.0042b650
call fcn.0042acc0
add esp, 0xbc
ret
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
shrd eax, edx, 1
xor ecx, ecx
setae cl
or eax, ecx
shr edx, 1
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], eax
fild qword [esp + 0x74]
fld st(0)
faddp st(1)
fstp qword [esp + 0x7c]
jmp 0x415a5d
movsd qword [esp + 0x7c], xmm4
movsd xmm0, qword [esp + 0x7c]
mulsd xmm0, qword [0x6199a0]
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [esp + 0x7c]
movsd qword [edi + 0x60], xmm0
jmp 0x4159e1
xorps xmm0, xmm0
movsd qword [esp + 0x7c], xmm0
movsd xmm0, qword [esp + 0x7c]
movsd qword [edi + 0x60], xmm0
jmp 0x4159e1
imul edx, esi
mov ebp, eax
imul ebp, ebx
add ebp, edx
mov edx, esi
mul edx
add edx, ebp
jmp 0x4158b6
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
shrd eax, edx, 1
xor ecx, ecx
setae cl
or eax, ecx
shr edx, 1
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], eax
fild qword [esp + 0x5c]
fld st(0)
faddp st(1)
fstp qword [esp + 0x64]
jmp 0x41579a
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
shrd eax, edx, 1
xor ecx, ecx
setae cl
or eax, ecx
shr edx, 1
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], eax
fild qword [esp + 0x6c]
fld st(0)
faddp st(1)
fstp qword [esp + 0x7c]
jmp 0x415757
call fcn.00450ed0
jmp fcn.004156c0