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

Disassembly:
sub esp, 0x80
movsd xmm2, qword [0x1059ba70]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x88]
xorps xmm1, xmm1
push ebp
push esi
xorps xmm3, xmm3
movsd qword [esp + 0x44], xmm1
mov ecx, dword [ebx]
movzx eax, byte [ebx + 0x6d660]
movsd qword [esp + 0x54], xmm0
movsd qword [esp + 0x4c], xmm3
mov dl, byte [ecx + 0xcb54]
mov byte [esp + 0xc], dl
mov edx, dword [ebx + 0x3ae08]
movsd qword [esp + 0x5c], xmm2
movsd qword [esp + 0x64], xmm0
movsd qword [esp + 0x6c], xmm0
movsd qword [esp + 0x74], xmm0
mov dword [esp + 0x20], edx
push edi
cmp eax, 0x60
jae 0x1009f059
lea eax, [eax + eax*4]
shl eax, 4
add eax, dword [ecx + 0x108ac]
mov dword [esp + 0x20], eax
cmp byte [eax], 0
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x2c], ecx
je 0x1009f059
movzx edi, byte [ebx + 0x3ac38]
mov esi, dword [esp + 0xa0]
mov eax, edi
imul eax, dword [esp + 0xa8]
mov cl, byte [esp + 0x10]
add eax, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 0x1060b410]
add eax, dword [esp + 0xa8]
imul eax, edi
add eax, 4
cdq
and edx, 7
lea ebp, [edx + eax]
mov eax, dword [ebx + 0x3ac30]
add eax, 7
sar ebp, 3
sar eax, 2
and eax, 0xfffffffe
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x38], eax
imul eax, edi
add eax, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x14], eax
movzx eax, byte [esi + 0x1060b428]
add eax, ecx
mov dword [esp + 0x3c], eax
cmp ecx, eax
jge 0x1009f059
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov eax, edx
cmp edx, ebp
jge 0x1009ee45
mov edx, dword [esp + 0x14]
nop word [eax + eax]
cmp ecx, dword [ebx + 0x3add4]
jge 0x1009ee33
cmp eax, dword [esp + 0x28]
jge 0x1009ee33
push dword [esp + 0x10]
push dword [esp + 0x30]
push eax
push ecx
call fcn.1015c150
imul ebp, eax, 0xc8
add esp, 0x10
add ebp, dword [esp + 0x30]
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov edi, dword [ebp + 0xc]
mov edx, edi
call fcn.10511ed0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
shld edx, ecx, 7
movsd qword [esp + 0x40], xmm0
shl ecx, 7
call fcn.10511ed0
movsd qword [esp + 0x80], xmm0
call fcn.10526310
mulsd xmm0, qword [esp + 0x40]
mov eax, dword [esp + 0x20]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
mov eax, dword [eax + 0x44]
addsd xmm0, qword [esp + 0x50]
cdq
push edx
push eax
movsd qword [esp + 0x58], xmm0
call fcn.10511b50
mov esi, dword [ebp + 0x4c]
mov ecx, eax
mov eax, dword [ebp + 0x48]
add ecx, 0x100
adc edx, 0
shld esi, eax, 7
shrd ecx, edx, 9
shl eax, 7
sar edx, 9
add ecx, eax
adc edx, esi
call fcn.10511ed0
movsd qword [esp + 0x88], xmm0
addsd xmm0, qword [esp + 0x80]
call fcn.10526310
mulsd xmm0, qword [esp + 0x40]
addsd xmm0, qword [esp + 0x50]
movsd qword [esp + 0x50], xmm0
movsd xmm0, qword [esp + 0x80]
mulsd xmm0, qword [0x1059ba80]
addsd xmm0, qword [esp + 0x88]
call fcn.10526310
mulsd xmm0, qword [esp + 0x40]
shld edi, ebx, 7
shl ebx, 7
mov edx, edi
addsd xmm0, qword [esp + 0x58]
mov ecx, ebx
movsd qword [esp + 0x58], xmm0
call fcn.10511ed0
addsd xmm0, qword [esp + 0x68]
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
shld edx, ecx, 7
shl ecx, 7
movsd qword [esp + 0x68], xmm0
call fcn.10511ed0
addsd xmm0, qword [esp + 0x70]
mov eax, dword [ebp + 0x90]
movsd xmm2, qword [esp + 0x60]
addsd xmm2, qword [esp + 0x40]
shl eax, 4
movsd qword [esp + 0x70], xmm0
movd xmm0, eax
mov eax, dword [esp + 0x18]
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x60], xmm2
addsd xmm0, qword [esp + 0x78]
movsd qword [esp + 0x78], xmm0
mov ecx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x18], eax
cmp eax, ebp
jl 0x1009eca0
mov edx, dword [esp + 0x1c]
add ecx, dword [esp + 0x38]
mov dword [esp + 0xa4], ecx
cmp ecx, dword [esp + 0x3c]
jl 0x1009ec88
movsd xmm3, qword [esp + 0x50]
xorps xmm0, xmm0
comisd xmm3, xmm0
jbe 0x1009f059
movsd xmm1, qword [esp + 0x48]
comisd xmm1, xmm0
jbe 0x1009f059
movsd xmm0, qword [ebx + 0x5c7a8]
movsd qword [esp + 0x88], xmm0
movaps xmm0, xmm1
subsd xmm0, xmm3
divsd xmm0, xmm2
call fcn.105202e0
movsd qword [esp + 0x80], xmm0
movsd xmm0, qword [esp + 0x48]
subsd xmm0, qword [esp + 0x58]
divsd xmm0, qword [esp + 0x60]
call fcn.105202e0
mov eax, dword [esp + 0x98]
sub esp, 8
mov edi, dword [esp + 0x2c]
movsd qword [eax + 0x31d8], xmm0
movsd xmm0, qword [esp + 0x90]
divsd xmm0, qword [esp + 0x88]
mov eax, dword [ebx + 0x3e7a8]
movsd qword [esp], xmm0
push edi
push dword [eax + 0x48]
call fcn.1007f020
mov ecx, eax
mov esi, 1
mov eax, dword [ebx + 0x3e678]
lea eax, [eax + eax*8]
lea edx, [eax - 1]
cmp ecx, edx
cmovl edx, ecx
sub esi, eax
mov eax, dword [ebx + 0x3ae08]
cmp edx, esi
mov ecx, 0xff
cmovg esi, edx
add eax, esi
cmp eax, ecx
cmovl ecx, eax
xor eax, eax
test ecx, ecx
cmovg eax, ecx
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x3e7a8]
push dword [eax + 0x48]
push 0
push edi
call fcn.100c66e0
movsx ebp, ax
mov eax, dword [ebx + 0x3e7a8]
mov dword [esp + 0x54], ebp
push dword [eax + 0x48]
push esi
push edi
call fcn.100c66e0
mov ebx, dword [esp + 0xc4]
add esp, 0x28
cwde
mov dword [esp + 0x3c], eax
test ebx, ebx
je 0x1009f04a
movd xmm0, eax
movd xmm1, ebp
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
movsd xmm1, qword [0x1059ba78]
call fcn.105205c0
mulsd xmm0, qword [esp + 0x68]
minsd xmm0, qword [esp + 0x70]
subsd xmm0, qword [esp + 0x68]
divsd xmm0, qword [esp + 0x80]
call fcn.10511dd0
movd xmm1, dword [esp + 0x3c]
mov ecx, eax
movd xmm0, dword [esp + 0x38]
mov esi, edx
cvtdq2pd xmm0, xmm0
mov ebp, dword [esp + 0x20]
mov edx, 0x400
mov dword [ebx], ecx
mov dword [ebx + 4], esi
mov eax, dword [ebp + 0x44]
cvtdq2pd xmm1, xmm1
imul edx
divsd xmm0, xmm1
mov edi, eax
mov ebx, edx
mov eax, dword [esp + 0x9c]
add edi, 0x100
adc ebx, 0
shrd edi, ebx, 9
mulsd xmm0, qword [esp + 0x78]
sar ebx, 9
add edi, ecx
mov dword [eax], edi
adc ebx, esi
mov dword [eax + 4], ebx
subsd xmm0, qword [esp + 0x78]
call fcn.10511dd0
mov esi, eax
mov ecx, edx
mov eax, dword [ebp + 0x44]
cdq
push edx
push eax
push ecx
push esi
call fcn.10511b50
mov ecx, dword [esp + 0x9c]
add eax, 0x100
adc edx, 0
shrd eax, edx, 9
sar edx, 9
add eax, edi
mov dword [ecx], eax
adc edx, ebx
mov dword [ecx + 4], edx
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret