Function at 0x1400d7ca0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
movaps xmmword [rax - 0x98], xmm12
movaps xmmword [rax - 0xa8], xmm13
movaps xmmword [rax - 0xb8], xmm14
movaps xmmword [rax - 0xc8], xmm15
mov r14, rcx
xor r15d, r15d
mov esi, r15d
mov dword [rbp - 0x78], r15d
movabs r13, 0x7ffffffffff0bdbf
movabs r12, 0x7fffffffffffffff
movss xmm13, dword [0x140111788]
movss xmm12, dword [0x1401116a4]
xorps xmm14, xmm14
movss xmm15, dword [0x140111784]
lea rcx, [rbp + 0x10]
call fcn.140011600
mov rax, qword [rbp + 0x10]
cmp rax, r13
je 0x1400d7d6b
setl cl
test cl, cl
je 0x1400d7d6b
add rax, 0xf4240
mov qword [rsp + 0x40], rax
jmp 0x1400d7d70
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x40]
call fcn.140018db0
mov rax, qword [0x140130b48]
add rax, 0x19a41c8
mov qword [rsp + 0x40], r15
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 8
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rbp - 0x70]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp qword [rsp + 0x40], 0
je 0x1400d7d45
mov rax, qword [0x140130b48]
add rax, 0x19a41c8
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 8
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rsp + 0x60]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rax, qword [rsp + 0x50]
add rax, 0x7ec
mov dword [rsp + 0x40], r15d
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 4
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rbp - 0x70]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [rsp + 0x40], 0
je 0x1400d7d45
call fcn.1400f4aa0
test rax, rax
je 0x1400d7d45
call fcn.1400f5380
test eax, eax
jle 0x1400d7d45
call fcn.1400f5380
cmp eax, 0x64
jg 0x1400d7d45
cmp byte [r14], 0
je 0x1400d7d45
mov ebx, dword [0x140130b40]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x1400d7d45
lea rdx, [rbp - 0x78]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400d7d45
cmp dword [rbp - 0x78], ebx
jne 0x1400d7d45
movaps xmm11, xmm13
mov edi, 1
nop dword [rax]
mov edx, edi
call fcn.1400ed2a0
add rax, 0x324
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 4
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rsp + 0x60]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [rsp + 0x40], 0
jle 0x1400d83d8
mov edx, edi
call fcn.1400ed2a0
add rax, 0x324
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 4
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rsp + 0x60]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [rsp + 0x40], 0x64
jg 0x1400d83d8
mov edx, edi
call fcn.1400ed2a0
mov rbx, rax
call fcn.1400f4aa0
cmp rbx, rax
je 0x1400d83d8
mov edx, edi
call fcn.1400ed3d0
add rax, 0x3c3
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 4
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rsp + 0x60]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, dword [rsp + 0x40]
call fcn.1400f52f0
cmp ebx, eax
je 0x1400d83d8
mov rax, qword [0x140130b48]
add rax, 0x19b64f0
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp - 0x68], rax
lea rax, [rbp + 0x60]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0x40
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rbp - 0x70]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r9d, 6
mov r8d, edi
lea rdx, [rbp + 0x20]
call fcn.1400ed4f0
mov edx, edi
call fcn.1400ed2a0
add rax, 0x308
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 8
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rsp + 0x60]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rax, qword [rsp + 0x50]
add rax, 0xd0
xor ecx, ecx
mov qword [rbp - 0x20], rcx
mov dword [rbp - 0x18], ecx
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], select
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [rcx + 0x28]
lea r8, [rbp - 0x70]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movss xmm10, dword [rbp - 0x18]
cvtps2pd xmm10, xmm10
lea rdx, [rbp + 0x30]
call fcn.1400f54d0
movss xmm9, dword [rax + 8]
cvtps2pd xmm9, xmm9
mov edx, edi
call fcn.1400ed2a0
add rax, 0x308
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 8
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rsp + 0x60]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rax, qword [rsp + 0x50]
add rax, 0xd0
xor ecx, ecx
mov qword [rbp - 0x10], rcx
mov dword [rbp - 8], ecx
mov qword [rbp - 0x68], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], select
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [rcx + 0x28]
lea r8, [rbp - 0x70]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movss xmm8, dword [rbp - 0xc]
cvtps2pd xmm8, xmm8
mov edx, edi
call fcn.1400ed2a0
add rax, 0x308
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 8
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rsp + 0x60]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rax, qword [rsp + 0x50]
add rax, 0xd0
xor ecx, ecx
mov qword [rbp], rcx
mov dword [rbp + 8], ecx
mov qword [rbp - 0x68], rax
lea rax, [rbp]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], select
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x28
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [rcx + 0x28]
lea r8, [rbp - 0x70]
mov edx, 0x221a5c
mov rcx, qword [0x140130b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movss xmm7, dword [rbp]
cvtps2pd xmm7, xmm7
lea rdx, [rbp + 0x40]
call fcn.1400f54d0
movss xmm6, dword [rax + 4]
cvtps2pd xmm6, xmm6
lea rdx, [rbp + 0x50]
call fcn.1400f54d0
movss xmm0, dword [rax]
cvtps2pd xmm0, xmm0
subsd xmm7, xmm0
subsd xmm8, xmm6
subsd xmm10, xmm9
mulsd xmm7, xmm7
mulsd xmm8, xmm8
addsd xmm7, xmm8
mulsd xmm10, xmm10
addsd xmm7, xmm10
sqrtpd xmm1, xmm7
xorps xmm0, xmm0
cvtss2sd xmm0, xmm11
comisd xmm1, xmm0
jae 0x1400d83d8
cvtpd2ps xmm11, xmm1
inc edi
cmp edi, 0x40
jle 0x1400d7f20
movd xmm1, dword [r14 + 4]
cvtdq2ps xmm1, xmm1
comiss xmm11, xmm1
ja 0x1400d7d45
movaps xmm0, xmm11
divss xmm0, xmm1
movaps xmm1, xmm12
subss xmm1, xmm0
maxss xmm1, xmm14
minss xmm1, xmm12
mulss xmm1, xmm15
cvttss2si rax, xmm1
mov edx, eax
shl edx, 0x10
movzx eax, ax
or edx, eax
xor ecx, ecx
call qword [sym.imp.WINMM.dll_waveOutSetVolume]
mov dword [rbp - 0x40], 0x459c4000
mov dword [rbp - 0x48], 0x437a0000
mulss xmm11, dword [0x1401116a0]
movss dword [rbp - 0x44], xmm11
comiss xmm11, dword [0x140111768]
lea rcx, [rbp - 0x48]
lea rax, [rbp - 0x44]
cmovae rcx, rax
comiss xmm11, dword [0x14011177c]
lea rax, [rbp - 0x40]
cmovbe rax, rcx
cvttss2si eax, dword [rax]
movsxd rbx, eax
lea rcx, [rbp + 0x18]
call fcn.140011600
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x40], rax
test rbx, rbx
je 0x1400d84c7
mov rcx, rbx
shr rcx, 0x3f
xor cl, 1
je 0x1400d84c7
imul r8, rbx, 0xf4240
imul rcx, rbx, 0xf4240
mov rdx, r12
sub rdx, rcx
cmp rax, rdx
je 0x1400d84c2
setl cl
test cl, cl
je 0x1400d84c2
lea rcx, [r8 + rax]
mov qword [rsp + 0x40], rcx
jmp 0x1400d84c7
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x40]
call fcn.140018db0
mov ecx, 8
call fcn.1400c883c
lea rcx, [0x1400d8570]
mov qword [rax], rcx
mov qword [rsp + 0x50], rax
or esi, 1
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140094360]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400d8550
cmp dword [rbp - 0x28], 0
je 0x1400d8544
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400d8544
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
jmp 0x1400d7d45
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x28], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3