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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x10103040]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x80]
push ebx
push ebp
mov ebp, dword [esp + 0x90]
mov ebx, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x8c]
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x98]
mov ecx, 0x10175a17
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
call fcn.100b6430
xorps xmm0, xmm0
comiss xmm0, dword [esi + 0x100]
jae 0x100164fb
cmp dword [ebp], 0
jle 0x100164fb
mov eax, dword [ebx + 0x30]
mov ecx, dword [0x10104028]
and eax, 8
mov dword [esp + 0x1c], eax
movzx eax, word [ebx + 0x42]
and eax, 0x80
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
movsx eax, word [ebx + 0x40]
push eax
call edx
mov esi, eax
lea eax, [esp + 0x2c]
push 0x54
push 0
push eax
movzx edi, word [esi + 0x60]
call sub.VCRUNTIME140D.dll_memset
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.10007a10
push dword [esp + 0x14]
movq xmm0, qword [ebx + 0xc]
lea edx, [esp + 0x30]
mov eax, dword [ebx + 0x14]
sub esp, 0xc
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, ebx
call fcn.10015d70
add esp, 0x10
test al, al
jne 0x100162d9
mov ecx, dword [0x10103f00]
lea edx, [ebx + 0xc]
push 0
push 0x600400b
push edx
mov eax, dword [ecx]
call dword [eax]
test eax, 0x600400b
je 0x100164fb
mov ecx, dword [0x10104028]
movss xmm1, dword [esi + 0x58]
movss dword [esp + 0x10], xmm1
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
movsx eax, word [esp + 0x6c]
push eax
call edx
test eax, eax
je 0x100164fb
movss xmm0, dword [esp + 0x10]
movss xmm2, dword [0x100fab84]
movzx esi, word [eax + 0x60]
movss dword [esp + 0x14], xmm2
addss xmm0, dword [eax + 0x58]
mulss xmm0, dword [0x100fabb8]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [0x100fac84]
cmp edi, 0x59
je 0x100163ab
cmp edi, 0x47
je 0x100163ab
cmp dword [esp + 0x1c], 0
jne 0x1001639e
cmp dword [esp + 0x18], 0
jne 0x1001639e
cmp edi, 0x46
jne 0x100163ce
mov ecx, dword [ebx + 0x4c]
call fcn.10008440
test al, al
je 0x100163c6
movss xmm0, dword [esp + 0xa0]
xorps xmm2, xmm2
ucomiss xmm0, xmm2
lahf
test ah, 0x44
jp 0x100163c6
movss xmm1, dword [esp + 0xa4]
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x100164fb
movss xmm2, dword [0x100fab84]
movss xmm0, dword [0x100fac84]
movss dword [esp + 0x14], xmm2
jmp 0x100163d4
movss xmm2, dword [0x100fabf8]
movaps xmm1, xmm2
jmp 0x100163dc
movaps xmm1, xmm0
movss xmm0, dword [0x100fab64]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [0x100fac84]
jmp 0x100163d4
movss xmm0, dword [0x100fac84]
movss xmm1, dword [esp + 0x10]
movss xmm2, dword [0x100fabf8]
cmp di, si
jne 0x100163fd
cmp esi, 0x57
je 0x100163fa
cmp esi, 0x55
je 0x100163fa
cmp esi, 0x4c
jne 0x100163fd
movss xmm1, dword [0x100fac58]
jmp 0x100163fd
movaps xmm1, xmm0
divss xmm2, xmm1
sub esp, 8
movss dword [esp + 4], xmm2
mov dword [esp], 0
call dword [sym.imp.ucrtbased.dll_fmaxf]
movss xmm2, dword [esp + 0x40]
add esp, 8
movss xmm0, dword [esp + 0x3c]
subss xmm0, dword [ebx + 0x10]
subss xmm2, dword [ebx + 0xc]
movss xmm1, dword [esp + 0x40]
subss xmm1, dword [ebx + 0x14]
fstp dword [esp + 0x18]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
call fcn.1000edd0
mov ecx, dword [esp + 0x24]
xorps xmm5, xmm5
movss xmm4, dword [0x100fac84]
movaps xmm2, xmm0
mov eax, dword [esp + 0x20]
mulss xmm2, xmm2
divss xmm4, dword [ecx + 0x100]
movss xmm3, dword [eax]
mulss xmm4, dword [0x100fac10]
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0x14]
mulss xmm2, dword [esp + 0x18]
maxss xmm4, xmm5
mulss xmm2, dword [0x100fab60]
mulss xmm4, dword [esp + 0x18]
mulss xmm4, dword [0x100fac84]
addss xmm4, xmm0
addss xmm4, xmm2
maxss xmm4, xmm5
comiss xmm4, xmm3
ja 0x100164fb
movss xmm0, dword [0x100fabf8]
subss xmm3, xmm4
comiss xmm0, xmm3
movss dword [eax], xmm3
ja 0x100164fb
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x38]
push eax
call fcn.100076d0
dec dword [ebp]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.100b3fd0
add esp, 0x7c
ret
mov ecx, dword [esp + 0x88]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b3fd0
add esp, 0x7c
ret