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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push edi
test esi, esi
je 0x10001af2
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10001af2
push edi
call fcn.100017b0
cmp dword [ebx + 8], edi
jl 0x10001af2
mov eax, dword [esi + 4]
lea edx, [ebp + 0x10]
movss xmm4, dword [0x1001976c]
push edx
push 0
movss xmm1, dword [eax]
mov eax, dword [ebp + 0x20]
mulss xmm1, dword [0x10019768]
push 4
movss dword [ebp - 8], xmm4
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10019810]
mov eax, dword [ebx + 0xc]
push eax
cvtpd2ps xmm0, xmm0
mov ecx, dword [eax]
divss xmm1, xmm0
movss xmm0, dword [0x10019764]
movss dword [ebp - 0xc], xmm1
movss dword [ebp - 4], xmm0
call dword [ecx + 0x28]
test eax, eax
js 0x10001aac
xor esi, esi
test edi, edi
jle 0x10001aa0
movss xmm6, dword [ebp - 0xc]
xor ebx, ebx
lea ebx, [ebx]
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
cmp al, 0xa
jne 0x10001925
movss xmm5, dword [ebp - 4]
movss xmm4, dword [0x1001976c]
subss xmm5, xmm6
movss dword [ebp - 4], xmm5
jmp 0x10001a8f
cmp al, 0x20
jl 0x10001a94
cmp al, 0x7f
jg 0x10001a94
movsx edx, al
mov eax, dword [ebp + 8]
movss xmm7, dword [ebp - 8]
movss xmm5, dword [ebp - 4]
movaps xmm1, xmm5
mov ecx, dword [eax + 4]
subss xmm1, xmm6
mov eax, dword [ebp + 0x1c]
movss xmm3, dword [ecx + edx*8 - 0xf4]
movss xmm2, dword [ecx + edx*8 - 0xf8]
movaps xmm4, xmm3
divss xmm2, dword [ecx + 4]
divss xmm3, dword [ecx + 4]
mulss xmm4, dword [0x10019768]
movd xmm0, eax
addss xmm3, xmm2
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x10019810]
mov eax, dword [ebp + 0x10]
movss dword [ebx + eax], xmm7
movss dword [ebx + eax + 4], xmm5
mov dword [ebx + eax + 8], 0x3f800000
mov eax, dword [ebp + 0x10]
cvtpd2ps xmm0, xmm0
mov dword [ebx + eax + 0x10], 0
movss dword [ebx + eax + 0xc], xmm2
mov eax, dword [ebp + 0x10]
divss xmm4, xmm0
mov dword [ebx + eax + 0x1c], 0x3f800000
movss dword [ebx + eax + 0x18], xmm5
addss xmm4, xmm7
movss dword [ebx + eax + 0x14], xmm4
mov eax, dword [ebp + 0x10]
movss dword [ebx + eax + 0x20], xmm3
mov dword [ebx + eax + 0x24], 0
mov eax, dword [ebp + 0x10]
movss dword [ebx + eax + 0x28], xmm7
movss dword [ebx + eax + 0x2c], xmm1
mov dword [ebx + eax + 0x30], 0x3f800000
mov eax, dword [ebp + 0x10]
movss dword [ebx + eax + 0x34], xmm2
mov dword [ebx + eax + 0x38], 0x3f800000
mov eax, dword [ebp + 0x10]
movss dword [ebx + eax + 0x3c], xmm4
movss dword [ebx + eax + 0x40], xmm5
mov dword [ebx + eax + 0x44], 0x3f800000
mov eax, dword [ebp + 0x10]
movss dword [ebx + eax + 0x48], xmm3
mov dword [ebx + eax + 0x4c], 0
mov eax, dword [ebp + 0x10]
movss dword [ebx + eax + 0x50], xmm4
movss dword [ebx + eax + 0x54], xmm1
mov dword [ebx + eax + 0x58], 0x3f800000
mov eax, dword [ebp + 0x10]
movss dword [ebx + eax + 0x5c], xmm3
mov dword [ebx + eax + 0x60], 0x3f800000
mov eax, dword [ebp + 0x10]
movss dword [ebx + eax + 0x64], xmm7
movss dword [ebx + eax + 0x68], xmm1
mov dword [ebx + eax + 0x6c], 0x3f800000
mov eax, dword [ebp + 0x10]
movss dword [ebx + eax + 0x70], xmm2
mov dword [ebx + eax + 0x74], 0x3f800000
add ebx, 0x78
movss dword [ebp - 8], xmm4
inc esi
cmp esi, edi
jl 0x10001900
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x78]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x14
push edx
lea edx, [ebx + 0xc]
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
push edx
push 1
push 0
push eax
call dword [ecx + 0x30]
mov eax, dword [ebx + 0x78]
push esi
push 1
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov ecx, dword [ebx + 0x78]
lea eax, [edi + edi*2]
push 0
add eax, eax
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x24]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24