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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x38]
cmp eax, dword [ecx + 8]
jbe 0x416798
sub esp, 0xb8
mov eax, dword [esp + 0xbc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov ecx, dword [0xa96c80]
add ecx, 0x100000
mov edx, dword [0xa96c84]
adc edx, 0
mov ebx, dword [0xa956ec]
cmp ebx, edx
xchg ebp, ebx
sete bl
xchg ebp, ebx
cmp dword [0xa956e8], ecx
xchg esi, ebx
setb bl
xchg esi, ebx
cmp ebx, edx
setb bl
and ebp, esi
or ebx, ebp
test bl, bl
je 0x416434
mov dword [0xa956e8], ecx
mov dword [0xa956ec], edx
mov eax, dword [0xa932f0]
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x832cc0]
mulsd xmm0, xmm1
movsd qword [esp + 0x10], xmm0
movsd xmm1, qword [0x832d48]
addsd xmm1, xmm0
movsd qword [esp], xmm1
call fcn.004567b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xbc]
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00456850
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x10]
divsd xmm0, xmm1
movsd xmm2, qword [0x832e40]
subsd xmm0, xmm2
movsd xmm2, qword [0x833330]
ucomisd xmm2, xmm0
ja 0x416707
movsd xmm2, qword [0x832ce8]
ucomisd xmm0, xmm2
ja 0x416707
xorps xmm0, xmm0
mov eax, dword [esp + 0xbc]
movsd qword [eax + 0x50], xmm0
mov ecx, dword [0xa936dc]
test ecx, ecx
jle 0x4164f4
mov ecx, dword [0xa932f0]
mov dword [eax + 0x38], ecx
sar ecx, 0x1f
mov dword [eax + 0x3c], ecx
movsd qword [eax + 0x50], xmm0
mov ecx, dword [0xa7ca90]
mov edx, dword [0xa7ca94]
xor ebx, ebx
jmp 0x416530
mov ebp, dword [ecx + ebx*4]
mov dword [ebp + 0xb60], 0
mov dword [ebp + 0xb64], 0
mov dword [ebp + 0xb68], 0
mov dword [ebp + 0xb6c], 0
inc ebx
cmp edx, ebx
jg 0x416504
mov dword [esp], eax
call fcn.004167b0
mov eax, dword [0xa936d4]
test eax, eax
jg 0x41654d
add esp, 0xb8
ret
lea edi, [esp + 0x48]
xor eax, eax
call fcn.0045ff74
lea ecx, [0x7739a0]
mov dword [esp + 0x48], ecx
lea edx, [0x8348b8]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0xbc]
movsd xmm0, qword [edx + 0x40]
movsd qword [esp + 0x40], xmm0
lea ebx, [0x7721a0]
mov dword [esp + 0x50], ebx
lea ebp, [esp + 0x40]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ecx
lea ebp, [0x8348c0]
mov dword [esp + 0x5c], ebp
mov ebp, dword [0xa96c8c]
mov esi, dword [0xa96c88]
mov eax, ebp
shl ebp, 0xc
shr esi, 0x14
or ebp, esi
mov dword [esp + 0x38], ebp
shr eax, 0x14
mov dword [esp + 0x3c], eax
lea ebp, [0x773b60]
mov dword [esp + 0x60], ebp
lea esi, [esp + 0x38]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], ecx
lea esi, [0x8348c8]
mov dword [esp + 0x6c], esi
mov esi, dword [0xa7d884]
mov ebx, dword [0xa7d880]
mov eax, esi
shl esi, 0xc
shr ebx, 0x14
or esi, ebx
mov dword [esp + 0x30], esi
shr eax, 0x14
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], ebp
lea ebx, [esp + 0x30]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ecx
lea ebx, [0x8348d0]
mov dword [esp + 0x7c], ebx
mov ebx, dword [0xa956ec]
mov esi, dword [0xa956e8]
mov eax, ebx
shl ebx, 0xc
shr esi, 0x14
or ebx, esi
mov dword [esp + 0x28], ebx
shr eax, 0x14
mov dword [esp + 0x2c], eax
mov dword [esp + 0x80], ebp
lea ebx, [esp + 0x28]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ecx
lea ebx, [0x8348d8]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ecx
lea ebx, [0x8348e0]
mov dword [esp + 0x94], ebx
mov ebx, dword [edx + 0x38]
mov ebp, dword [edx + 0x3c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
lea ebx, [0x773060]
mov dword [esp + 0x98], ebx
lea ebx, [esp + 0x20]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ecx
lea ebx, [0x8348e8]
mov dword [esp + 0xa4], ebx
movsd xmm0, qword [edx + 0x50]
movsd qword [esp + 0x18], xmm0
lea edx, [0x7721a0]
mov dword [esp + 0xa8], edx
lea edx, [esp + 0x18]
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], ecx
lea ecx, [0x8348f0]
mov dword [esp + 0xb4], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
mov dword [esp + 4], 0xe
mov dword [esp + 8], 0xe
call fcn.00408350
jmp 0x416546
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00456850
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x10]
ucomisd xmm0, xmm1
jbe 0x41678f
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 0x38]
add ecx, 0xffffffff
mov edx, dword [eax + 0x3c]
mov dword [eax + 0x38], ecx
adc edx, 0xffffffff
mov dword [eax + 0x3c], edx
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00456850
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x10]
subsd xmm1, xmm0
mov eax, dword [0xa932f0]
cvtsi2sd xmm0, eax
divsd xmm1, xmm0
mov eax, dword [esp + 0xbc]
movsd qword [eax + 0x50], xmm1
xorps xmm0, xmm0
jmp 0x4164d6
mov eax, dword [esp + 0xbc]
jmp 0x41674b
call fcn.0045e790
jmp fcn.00416370