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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x1015a380]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push 0x10218f28
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x100979b9
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
cmp dword [0x10218f54], 0x7fffffff
jne 0x100979d7
push 6
mov dword [0x10218f54], 0x7ffffffe
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
test byte [0x10213eec], 2
jne 0x10097a7d
cmp byte [esi + 0x70], bl
je 0x10097a5d
lea eax, [esp + 0x24]
mov dword [esi + 0x74], ebx
push eax
mov ecx, 0x10201288
mov dword [esi + 0x78], ebx
call fcn.1004e1e0
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 0x10097a11
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x7c]
call fcn.10046150
mov ecx, dword [esp + 0x38]
cmp ecx, 0xf
jbe 0x10097a5a
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10097a50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10097eb7
push ecx
push edx
call fcn.100d7f1a
add esp, 8
mov byte [esi + 0x70], bl
push 0x10218f28
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.100d7b08
mov esp, ebp
pop ebp
ret
mov edi, dword [0x10216c14]
mov eax, dword [edi + 0x4c]
cmp eax, dword [edi + 0x50]
jne 0x10097ac4
cmp byte [esi + 0x70], bl
je 0x10097a5d
lea eax, [esp + 0x24]
mov dword [esi + 0x74], ebx
push eax
mov ecx, 0x10201288
mov dword [esi + 0x78], ebx
call fcn.1004e1e0
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 0x10097ab8
jmp 0x10097a18
cmp byte [esi + 0x70], bl
je 0x10097b43
lea eax, [esp + 0x24]
mov dword [esi + 0x74], ebx
push eax
mov ecx, 0x10201288
mov dword [esi + 0x78], ebx
call fcn.1004e1e0
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 0x10097af5
sub ecx, dword [esp + 0x14]
push ecx
push edx
lea ecx, [esi + 0x7c]
call fcn.10046150
mov ecx, dword [esp + 0x38]
cmp ecx, 0xf
jbe 0x10097b40
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10097b36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10097eb7
push ecx
push edx
call fcn.100d7f1a
add esp, 8
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 0x10097a5d
nop dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10097e9f
mov eax, dword [0x1020f4b0]
mov ecx, dword fs:[0x2c]
mov edi, dword [ecx + eax*4]
mov eax, dword [0x10217394]
cmp eax, dword [edi + 4]
jle 0x10097bbb
push 0x10217394
call fcn.100d7b67
add esp, 4
cmp dword [0x10217394], 0xffffffff
jne 0x10097bb7
mov eax, dword [0x102170b8]
push 0x10217394
mov dword [0x10217390], eax
call fcn.100d7b16
add esp, 4
mov edx, dword [esp + 0x20]
mov eax, dword [0x10217390]
xorps xmm1, xmm1
mov ecx, dword [esp + 0x1c]
movss xmm0, dword [eax + ecx]
mov eax, dword [0x1020f4ec]
subss xmm0, dword [eax + 0x10]
comiss xmm1, xmm0
movss dword [esp + 0x18], xmm0
jae 0x10097e9f
mov eax, dword [0x10217138]
cmp eax, dword [edi + 4]
jle 0x10097c1f
push 0x10217138
call fcn.100d7b67
add esp, 4
cmp dword [0x10217138], 0xffffffff
jne 0x10097c1f
mov eax, dword [0x10216fd0]
push 0x10217138
mov dword [0x10217124], eax
call fcn.100d7b16
add esp, 4
mov eax, dword [0x10216f24]
mov edx, dword [0x10217124]
mov dword [esp + 0x10], edx
cmp eax, dword [edi + 4]
jle 0x10097c67
push 0x10216f24
call fcn.100d7b67
add esp, 4
cmp dword [0x10216f24], 0xffffffff
jne 0x10097c63
mov eax, dword [0x10216f1c]
push 0x10216f24
mov dword [0x10216f20], eax
call fcn.100d7b16
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x10216f20]
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 [0x1020dbac]
subss xmm2, dword [0x1020dba8]
subss xmm1, dword [0x1020dbb0]
mulss xmm0, xmm0
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm0, xmm2
addss xmm0, xmm1
mulss xmm0, dword [0x10155ebc]
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 [0x10155e40]
mov dword [esi + 0x74], eax
mov eax, dword [0x1020dcf4]
mov dword [esp + 0x18], eax
mov eax, dword [0x1021737c]
movss dword [esp + 0x10], xmm3
cmp eax, dword [edi + 4]
jle 0x10097d2e
push 0x1021737c
call fcn.100d7b67
add esp, 4
cmp dword [0x1021737c], 0xffffffff
jne 0x10097d28
mov eax, dword [0x102170d0]
push 0x1021737c
mov dword [0x10217384], eax
call fcn.100d7b16
add esp, 4
movss xmm3, dword [esp + 0x10]
mov eax, dword [0x10217384]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + eax]
test eax, eax
jle 0x10097d72
movaps xmm1, xmm3
movd xmm2, eax
mulss xmm1, dword [0x10155b64]
movaps xmm0, xmm3
cvtdq2ps xmm2, xmm2
subss xmm0, xmm1
mulss xmm0, dword [0x10155b64]
comiss xmm0, xmm2
jbe 0x10097d6f
addss xmm2, xmm2
movaps xmm1, xmm3
subss xmm1, xmm2
movaps xmm3, xmm1
cvttss2si eax, xmm3
mov dword [esi + 0x78], eax
mov eax, dword [0x10217380]
cmp eax, dword [edi + 4]
jle 0x10097db3
push 0x10217380
call fcn.100d7b67
add esp, 4
cmp dword [0x10217380], 0xffffffff
jne 0x10097db3
mov eax, dword [0x10217030]
push 0x10217380
mov dword [0x10217398], eax
call fcn.100d7b16
add esp, 4
mov eax, dword [0x10217398]
mov ecx, dword [esp + 0x1c]
cmp dword [eax + ecx], 0
jne 0x10097de4
lea eax, [esp + 0x3c]
mov ecx, 0x10208bd8
push eax
or ebx, 1
call fcn.1004e1e0
cmp dword [esp + 0x50], 0xf
lea edx, [esp + 0x3c]
cmova edx, dword [esp + 0x3c]
jmp 0x10097e04
lea eax, [esp + 0x24]
mov ecx, 0x10208c90
push eax
or ebx, 2
call fcn.1004e1e0
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 0x10097e10
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x7c]
call fcn.10046150
test bl, 2
je 0x10097e5d
mov ecx, dword [esp + 0x38]
and ebx, 0xfffffffd
cmp ecx, 0xf
jbe 0x10097e5d
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10097e53
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10097eb7
push ecx
push edx
call fcn.100d7f1a
add esp, 8
test bl, 1
je 0x10097e97
mov ecx, dword [esp + 0x50]
and ebx, 0xfffffffe
cmp ecx, 0xf
jbe 0x10097e97
mov edx, dword [esp + 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10097e8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10097eb7
push ecx
push edx
call fcn.100d7f1a
add esp, 8
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 0x10097b60
jmp 0x10097a5d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3