Function at 0x1009ec90
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, 0x101a157a
mov dword [esp + 0x18], ebx
call fcn.10137ff6
push 0x10199b68
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x1009ecd3
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
cmp dword [0x10199b94], 0x7fffffff
jne 0x1009ecf1
push 6
mov dword [0x10199b94], 0x7ffffffe
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
test byte [0x10194b2c], 2
jne 0x1009ed54
cmp byte [esi + 0x70], bl
je 0x1009f120
lea eax, [esp + 0x24]
mov dword [esi + 0x74], ebx
push eax
mov ecx, 0x10181fd0
mov dword [esi + 0x78], ebx
call fcn.10050700
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 0x1009ed30
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x7c]
call fcn.10047e80
lea ecx, [esp + 0x24]
call fcn.1001b4d0
mov byte [esi + 0x70], bl
jmp 0x1009f120
mov edi, dword [0x10197878]
mov eax, dword [edi + 0x4c]
cmp eax, dword [edi + 0x50]
jne 0x1009edb7
cmp byte [esi + 0x70], bl
je 0x1009f120
lea eax, [esp + 0x24]
mov dword [esi + 0x74], ebx
push eax
mov ecx, 0x10181fd0
mov dword [esi + 0x78], ebx
call fcn.10050700
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 0x1009ed93
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x7c]
call fcn.10047e80
lea ecx, [esp + 0x24]
call fcn.1001b4d0
mov byte [esi + 0x70], bl
jmp 0x1009f120
cmp byte [esi + 0x70], bl
je 0x1009ee09
lea eax, [esp + 0x24]
mov dword [esi + 0x74], ebx
push eax
mov ecx, 0x10181fd0
mov dword [esi + 0x78], ebx
call fcn.10050700
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 0x1009ede8
sub ecx, dword [esp + 0x14]
push ecx
push edx
lea ecx, [esi + 0x7c]
call fcn.10047e80
lea ecx, [esp + 0x24]
call fcn.1001b4d0
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 0x1009f120
nop
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1009f10d
mov eax, dword [0x1018ff40]
mov ecx, dword fs:[0x2c]
mov edi, dword [ecx + eax*4]
mov eax, dword [0x10197fd4]
cmp eax, dword [edi + 4]
jle 0x1009ee7b
push 0x10197fd4
call fcn.100dfc27
add esp, 4
cmp dword [0x10197fd4], 0xffffffff
jne 0x1009ee77
mov eax, dword [0x10197cf4]
push 0x10197fd4
mov dword [0x10197fd0], eax
call fcn.100dfbd6
add esp, 4
mov edx, dword [esp + 0x20]
mov eax, dword [0x10197fd0]
xorps xmm1, xmm1
mov ecx, dword [esp + 0x1c]
movss xmm0, dword [eax + ecx]
mov eax, dword [0x1018ff7c]
subss xmm0, dword [eax + 0x10]
comiss xmm1, xmm0
movss dword [esp + 0x18], xmm0
jae 0x1009f10d
mov eax, dword [0x10197d78]
cmp eax, dword [edi + 4]
jle 0x1009eedf
push 0x10197d78
call fcn.100dfc27
add esp, 4
cmp dword [0x10197d78], 0xffffffff
jne 0x1009eedf
mov eax, dword [0x10197c10]
push 0x10197d78
mov dword [0x10197d64], eax
call fcn.100dfbd6
add esp, 4
mov eax, dword [0x10197b64]
mov edx, dword [0x10197d64]
mov dword [esp + 0x10], edx
cmp eax, dword [edi + 4]
jle 0x1009ef27
push 0x10197b64
call fcn.100dfc27
add esp, 4
cmp dword [0x10197b64], 0xffffffff
jne 0x1009ef23
mov eax, dword [0x10197b5c]
push 0x10197b64
mov dword [0x10197b60], eax
call fcn.100dfbd6
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x10197b60]
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 [0x10199d2c]
subss xmm2, dword [0x10199d28]
subss xmm1, dword [0x10199d30]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
mulss xmm0, dword [0x1015c02c]
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 [0x1015bfb0]
mov dword [esi + 0x74], eax
mov eax, dword [0x10199e74]
mov dword [esp + 0x18], eax
mov eax, dword [0x10197fbc]
movss dword [esp + 0x10], xmm3
cmp eax, dword [edi + 4]
jle 0x1009efee
push 0x10197fbc
call fcn.100dfc27
add esp, 4
cmp dword [0x10197fbc], 0xffffffff
jne 0x1009efe8
mov eax, dword [0x10197d0c]
push 0x10197fbc
mov dword [0x10197fc4], eax
call fcn.100dfbd6
add esp, 4
movss xmm3, dword [esp + 0x10]
mov eax, dword [0x10197fc4]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + eax]
test eax, eax
jle 0x1009f032
movaps xmm1, xmm3
movd xmm2, eax
mulss xmm1, dword [0x1015bcc4]
movaps xmm0, xmm3
cvtdq2ps xmm2, xmm2
subss xmm0, xmm1
mulss xmm0, dword [0x1015bcc4]
comiss xmm0, xmm2
jbe 0x1009f02f
addss xmm2, xmm2
movaps xmm1, xmm3
subss xmm1, xmm2
movaps xmm3, xmm1
cvttss2si eax, xmm3
mov dword [esi + 0x78], eax
mov eax, dword [0x10197fc0]
cmp eax, dword [edi + 4]
jle 0x1009f073
push 0x10197fc0
call fcn.100dfc27
add esp, 4
cmp dword [0x10197fc0], 0xffffffff
jne 0x1009f073
mov eax, dword [0x10197c70]
push 0x10197fc0
mov dword [0x10197fd8], eax
call fcn.100dfbd6
add esp, 4
mov eax, dword [0x10197fd8]
mov ecx, dword [esp + 0x1c]
cmp dword [eax + ecx], 0
jne 0x1009f0a4
lea eax, [esp + 0x3c]
mov ecx, 0x101896d8
push eax
or ebx, 1
call fcn.10050700
cmp dword [esp + 0x50], 0xf
lea edx, [esp + 0x3c]
cmova edx, dword [esp + 0x3c]
jmp 0x1009f0c4
lea eax, [esp + 0x24]
mov ecx, 0x10189990
push eax
or ebx, 2
call fcn.10050700
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 0x1009f0d0
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x7c]
call fcn.10047e80
test bl, 2
je 0x1009f0f4
lea ecx, [esp + 0x24]
and ebx, 0xfffffffd
call fcn.1001b4d0
test bl, 1
je 0x1009f105
lea ecx, [esp + 0x3c]
and ebx, 0xfffffffe
call fcn.1001b4d0
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 0x1009ee20
push 0x10199b68
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.100dfbc8
mov esp, ebp
pop ebp
ret