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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x10160380]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, 0x101a157e
mov dword [esp + 0x18], ebx
call fcn.10138266
push 0x10199c54
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x1009f6e3
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
cmp dword [0x10199c80], 0x7fffffff
jne 0x1009f701
push 6
mov dword [0x10199c80], 0x7ffffffe
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
test byte [0x10194c1c], 2
jne 0x1009f764
cmp byte [esi + 0x70], bl
je 0x1009fb30
lea eax, [esp + 0x24]
mov dword [esi + 0x74], ebx
push eax
mov ecx, 0x10181fd0
mov dword [esi + 0x78], ebx
call fcn.100506a0
cmp dword [esp + 0x38], 0xf
lea edx, [esp + 0x24]
cmova edx, dword [esp + 0x24]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009f740
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x7c]
call fcn.10047e30
lea ecx, [esp + 0x24]
call fcn.1001b490
mov byte [esi + 0x70], bl
jmp 0x1009fb30
mov edi, dword [0x10197968]
mov eax, dword [edi + 0x4c]
cmp eax, dword [edi + 0x50]
jne 0x1009f7c7
cmp byte [esi + 0x70], bl
je 0x1009fb30
lea eax, [esp + 0x24]
mov dword [esi + 0x74], ebx
push eax
mov ecx, 0x10181fd0
mov dword [esi + 0x78], ebx
call fcn.100506a0
cmp dword [esp + 0x38], 0xf
lea edx, [esp + 0x24]
cmova edx, dword [esp + 0x24]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009f7a3
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x7c]
call fcn.10047e30
lea ecx, [esp + 0x24]
call fcn.1001b490
mov byte [esi + 0x70], bl
jmp 0x1009fb30
cmp byte [esi + 0x70], bl
je 0x1009f819
lea eax, [esp + 0x24]
mov dword [esi + 0x74], ebx
push eax
mov ecx, 0x10181fd0
mov dword [esi + 0x78], ebx
call fcn.100506a0
cmp dword [esp + 0x38], 0xf
lea edx, [esp + 0x24]
cmova edx, dword [esp + 0x24]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009f7f8
sub ecx, dword [esp + 0x14]
push ecx
push edx
lea ecx, [esi + 0x7c]
call fcn.10047e30
lea ecx, [esp + 0x24]
call fcn.1001b490
mov byte [esi + 0x70], bl
mov eax, dword [edi + 0x4c]
mov edx, dword [edi + 0x50]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
cmp eax, edx
je 0x1009fb30
nop
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1009fb1d
mov eax, dword [0x10190030]
mov ecx, dword fs:[0x2c]
mov edi, dword [ecx + eax*4]
mov eax, dword [0x101980c4]
cmp eax, dword [edi + 4]
jle 0x1009f88b
push 0x101980c4
call fcn.100dfe87
add esp, 4
cmp dword [0x101980c4], 0xffffffff
jne 0x1009f887
mov eax, dword [0x10197de4]
push 0x101980c4
mov dword [0x101980c0], eax
call fcn.100dfe36
add esp, 4
mov edx, dword [esp + 0x20]
mov eax, dword [0x101980c0]
xorps xmm1, xmm1
mov ecx, dword [esp + 0x1c]
movss xmm0, dword [eax + ecx]
mov eax, dword [0x1019006c]
subss xmm0, dword [eax + 0x10]
comiss xmm1, xmm0
movss dword [esp + 0x18], xmm0
jae 0x1009fb1d
mov eax, dword [0x10197e68]
cmp eax, dword [edi + 4]
jle 0x1009f8ef
push 0x10197e68
call fcn.100dfe87
add esp, 4
cmp dword [0x10197e68], 0xffffffff
jne 0x1009f8ef
mov eax, dword [0x10197d00]
push 0x10197e68
mov dword [0x10197e54], eax
call fcn.100dfe36
add esp, 4
mov eax, dword [0x10197c54]
mov edx, dword [0x10197e54]
mov dword [esp + 0x10], edx
cmp eax, dword [edi + 4]
jle 0x1009f937
push 0x10197c54
call fcn.100dfe87
add esp, 4
cmp dword [0x10197c54], 0xffffffff
jne 0x1009f933
mov eax, dword [0x10197c4c]
push 0x10197c54
mov dword [0x10197c50], eax
call fcn.100dfe36
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x10197c50]
movss xmm0, dword [edx + ecx + 4]
addss xmm0, dword [eax + ecx + 4]
movss xmm2, dword [eax + ecx]
addss xmm2, dword [edx + ecx]
movss xmm1, dword [edx + ecx + 8]
addss xmm1, dword [eax + ecx + 8]
subss xmm0, dword [0x10199e14]
subss xmm2, dword [0x10199e10]
subss xmm1, dword [0x10199e18]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
mulss xmm0, dword [0x1015c044]
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_expf
cvttss2si eax, dword [esp + 0x18]
movaps xmm3, xmm0
mulss xmm3, dword [0x1015bfc8]
mov dword [esi + 0x74], eax
mov eax, dword [0x10199f5c]
mov dword [esp + 0x18], eax
mov eax, dword [0x101980ac]
movss dword [esp + 0x10], xmm3
cmp eax, dword [edi + 4]
jle 0x1009f9fe
push 0x101980ac
call fcn.100dfe87
add esp, 4
cmp dword [0x101980ac], 0xffffffff
jne 0x1009f9f8
mov eax, dword [0x10197dfc]
push 0x101980ac
mov dword [0x101980b4], eax
call fcn.100dfe36
add esp, 4
movss xmm3, dword [esp + 0x10]
mov eax, dword [0x101980b4]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + eax]
test eax, eax
jle 0x1009fa42
movaps xmm1, xmm3
movd xmm2, eax
mulss xmm1, dword [0x1015bce4]
movaps xmm0, xmm3
cvtdq2ps xmm2, xmm2
subss xmm0, xmm1
mulss xmm0, dword [0x1015bce4]
comiss xmm0, xmm2
jbe 0x1009fa3f
addss xmm2, xmm2
movaps xmm1, xmm3
subss xmm1, xmm2
movaps xmm3, xmm1
cvttss2si eax, xmm3
mov dword [esi + 0x78], eax
mov eax, dword [0x101980b0]
cmp eax, dword [edi + 4]
jle 0x1009fa83
push 0x101980b0
call fcn.100dfe87
add esp, 4
cmp dword [0x101980b0], 0xffffffff
jne 0x1009fa83
mov eax, dword [0x10197d60]
push 0x101980b0
mov dword [0x101980c8], eax
call fcn.100dfe36
add esp, 4
mov eax, dword [0x101980c8]
mov ecx, dword [esp + 0x1c]
cmp dword [eax + ecx], 0
jne 0x1009fab4
lea eax, [esp + 0x3c]
mov ecx, 0x10189738
push eax
or ebx, 1
call fcn.100506a0
cmp dword [esp + 0x50], 0xf
lea edx, [esp + 0x3c]
cmova edx, dword [esp + 0x3c]
jmp 0x1009fad4
lea eax, [esp + 0x24]
mov ecx, 0x101899f0
push eax
or ebx, 2
call fcn.100506a0
cmp dword [esp + 0x38], 0xf
lea edx, [esp + 0x24]
cmova edx, dword [esp + 0x24]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009fae0
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x7c]
call fcn.10047e30
test bl, 2
je 0x1009fb04
lea ecx, [esp + 0x24]
and ebx, 0xfffffffd
call fcn.1001b490
test bl, 1
je 0x1009fb15
lea ecx, [esp + 0x3c]
and ebx, 0xfffffffe
call fcn.1001b490
mov edx, dword [esp + 0x20]
mov byte [esi + 0x70], 1
mov eax, dword [esp + 0x14]
add eax, 0xc
mov dword [esp + 0x14], eax
cmp eax, edx
jne 0x1009f830
push 0x10199c54
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov ecx, dword [esp + 0x58]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100dfe28
mov esp, ebp
pop ebp
ret