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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x415cb2
add esp, 0xffffff80
movzx eax, byte [0x8ac794]
test al, al
jne 0x415c9d
mov eax, dword [0x8c0ce8]
mov ecx, dword [0x8c2290]
sub eax, ecx
mov ecx, dword [0x8c0cec]
mov edx, dword [0x8c2294]
mov dword [esp], eax
sbb ecx, edx
mov dword [esp + 4], ecx
call fcn.0044b1e0
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x78], xmm0
mov eax, dword [0x8c2294]
mov ecx, dword [0x8c2290]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0044b1e0
movsd xmm0, qword [esp + 0x78]
divsd xmm0, qword [esp + 8]
xorps xmm1, xmm1
ucomisd xmm1, xmm0
jbe 0x41584c
xorps xmm0, xmm0
movsd qword [esp + 0x48], xmm0
mov eax, dword [0x8c2284]
mov ecx, dword [0x8c2280]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0044b1e0
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x78], xmm0
mov eax, dword [0x8c2294]
mov ecx, dword [0x8c2290]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0044b1e0
movsd xmm0, qword [esp + 0x78]
divsd xmm0, qword [esp + 8]
movsd qword [esp + 0x78], xmm0
call fcn.00451720
mov eax, dword [esp]
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 0x30]
sub eax, edx
mov edx, dword [esp + 4]
mov ebx, dword [ecx + 0x34]
sbb edx, ebx
test edx, edx
setg bl
xchg ebp, ebx
sete bl
xchg ebp, ebx
test eax, eax
xchg esi, ebx
seta bl
xchg esi, ebx
and ebp, esi
or ebx, ebp
test bl, bl
jne 0x415c23
movsd xmm0, qword [0x6ff1d0]
movsd xmm1, qword [esp + 0x78]
movsd xmm2, qword [0x6ff1f8]
subsd xmm1, xmm2
movsd qword [esp + 0x50], xmm1
movsd xmm3, qword [0x8c2270]
movsd xmm4, qword [esp + 0x48]
subsd xmm4, xmm3
movsd qword [esp + 0x78], xmm4
movsd xmm6, qword [0x6ff1d8]
movsd xmm7, xmm0
divsd xmm0, xmm6
subsd xmm1, xmm3
movsd qword [esp + 0x70], xmm1
mulsd xmm1, xmm0
subsd xmm4, xmm1
movsd xmm1, qword [0x6ff1e0]
mulsd xmm1, xmm4
addsd xmm1, xmm3
mov eax, dword [0x8bef54]
test eax, eax
jg 0x41595f
movsd qword [esp + 0x88], xmm1
sub esp, 0xffffff80
ret
movsd qword [esp + 0x68], xmm3
movsd qword [esp + 0x60], xmm7
movsd qword [esp + 0x58], xmm0
movsd qword [esp + 0x40], xmm1
mov eax, dword [0x8c2294]
mov dword [esp + 0x24], eax
mov ecx, dword [0x8c2290]
mov dword [esp + 0x20], ecx
mov edx, dword [0x8c227c]
mov dword [esp + 0x3c], edx
mov ebx, dword [0x8c2278]
mov dword [esp + 0x38], ebx
mov ebp, dword [0x8c2284]
mov dword [esp + 0x34], ebp
mov esi, dword [0x8c2280]
mov dword [esp + 0x30], esi
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0044b1e0
movsd xmm0, qword [0x6ff1f8]
movsd xmm1, qword [esp + 0x48]
addsd xmm0, xmm1
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.0044b050
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x84]
mov ebx, dword [edx + 4]
mov dword [esp + 0x1c], ebx
mov edx, dword [edx]
mov dword [esp + 0x18], edx
call fcn.0042b960
lea eax, [0x6a3f83]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.0042c200
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.0042bf10
lea eax, [0x6a0c06]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.0042c200
movsd xmm0, qword [esp + 0x68]
movsd qword [esp], xmm0
call fcn.0042bc20
lea eax, [0x6a0bde]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.0042c200
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.0042bf10
lea eax, [0x6a0bfc]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.0042c200
movsd xmm0, qword [esp + 0x50]
movsd qword [esp], xmm0
call fcn.0042bc20
lea eax, [0x6a0be3]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.0042c200
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.0042bf10
lea eax, [0x6a0c01]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.0042c200
movsd xmm0, qword [esp + 0x48]
movsd qword [esp], xmm0
call fcn.0042bc20
lea eax, [0x6a0be8]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.0042c200
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.0042c040
lea eax, [0x6a0c24]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.0042c200
movsd xmm0, qword [esp + 0x60]
movsd qword [esp], xmm0
call fcn.0042bc20
lea eax, [0x6a0c29]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.0042c200
movsd xmm0, qword [0x6ff1d8]
movsd qword [esp], xmm0
call fcn.0042bc20
lea eax, [0x6a0bf2]
mov dword [esp], eax
mov dword [esp + 4], 5
call fcn.0042c200
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
call fcn.0042c040
lea eax, [0x6a146b]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.0042c200
movsd xmm0, qword [esp + 0x78]
movsd qword [esp], xmm0
call fcn.0042bc20
lea eax, [0x6a1c17]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.0042c200
movsd xmm0, qword [esp + 0x70]
movsd qword [esp], xmm0
call fcn.0042bc20
lea eax, [0x6a18da]
mov dword [esp], eax
mov dword [esp + 4], 9
call fcn.0042c200
movsd xmm0, qword [esp + 0x58]
movsd qword [esp], xmm0
call fcn.0042bc20
call fcn.0042bb80
call fcn.0042b9d0
movsd xmm1, qword [esp + 0x40]
jmp 0x415952
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0044b0f0
mov eax, dword [0x8bec10]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov ebx, eax
mul ecx
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x70], xmm0
mov dword [esp], eax
mov eax, ecx
sar ecx, 0x1f
imul ecx, ebx
mov ebx, dword [esp + 0x14]
imul ebx, eax
lea eax, [edx + ebx]
add eax, ecx
mov dword [esp + 4], eax
call fcn.0044b0f0
movsd xmm0, qword [esp + 0x70]
divsd xmm0, qword [esp + 8]
movsd xmm1, qword [0x6ff1d0]
addsd xmm0, xmm1
mov ecx, dword [esp + 0x84]
jmp 0x4158e6
movsd xmm0, qword [0x8c2270]
movsd qword [esp + 0x88], xmm0
sub esp, 0xffffff80
ret
call fcn.0044efb0
jmp fcn.004157c0