Function at 0x1400d7cf0
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 [0x1401127c8]
movss xmm12, dword [0x1401126e0]
xorps xmm14, xmm14
movss xmm15, dword [0x1401127c4]
lea rcx, [rbp + 0x10]
call fcn.140011640
mov rax, qword [rbp + 0x10]
cmp rax, r13
je 0x1400d7dbb
setl cl
test cl, cl
je 0x1400d7dbb
add rax, 0xf4240
mov qword [rsp + 0x40], rax
jmp 0x1400d7dc0
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x40]
call fcn.140018df0
mov rax, qword [0x140132b48]
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 [0x140132b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp qword [rsp + 0x40], 0
je 0x1400d7d95
mov rax, qword [0x140132b48]
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 [0x140132b50]
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 [0x140132b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [rsp + 0x40], 0
je 0x1400d7d95
call fcn.1400f4f50
test rax, rax
je 0x1400d7d95
call fcn.1400f5830
test eax, eax
jle 0x1400d7d95
call fcn.1400f5830
cmp eax, 0x64
jg 0x1400d7d95
cmp byte [r14], 0
je 0x1400d7d95
mov ebx, dword [0x140132b40]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x1400d7d95
lea rdx, [rbp - 0x78]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400d7d95
cmp dword [rbp - 0x78], ebx
jne 0x1400d7d95
movaps xmm11, xmm13
mov edi, 1
nop dword [rax]
mov edx, edi
call fcn.1400ed750
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 [0x140132b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [rsp + 0x40], 0
jle 0x1400d8428
mov edx, edi
call fcn.1400ed750
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 [0x140132b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp dword [rsp + 0x40], 0x64
jg 0x1400d8428
mov edx, edi
call fcn.1400ed750
mov rbx, rax
call fcn.1400f4f50
cmp rbx, rax
je 0x1400d8428
mov edx, edi
call fcn.1400ed880
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 [0x140132b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, dword [rsp + 0x40]
call fcn.1400f57a0
cmp ebx, eax
je 0x1400d8428
mov rax, qword [0x140132b48]
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 [0x140132b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r9d, 6
mov r8d, edi
lea rdx, [rbp + 0x20]
call fcn.1400ed9a0
mov edx, edi
call fcn.1400ed750
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 [0x140132b50]
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 [0x140132b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movss xmm10, dword [rbp - 0x18]
cvtps2pd xmm10, xmm10
lea rdx, [rbp + 0x30]
call fcn.1400f5980
movss xmm9, dword [rax + 8]
cvtps2pd xmm9, xmm9
mov edx, edi
call fcn.1400ed750
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 [0x140132b50]
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 [0x140132b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movss xmm8, dword [rbp - 0xc]
cvtps2pd xmm8, xmm8
mov edx, edi
call fcn.1400ed750
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 [0x140132b50]
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 [0x140132b50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movss xmm7, dword [rbp]
cvtps2pd xmm7, xmm7
lea rdx, [rbp + 0x40]
call fcn.1400f5980
movss xmm6, dword [rax + 4]
cvtps2pd xmm6, xmm6
lea rdx, [rbp + 0x50]
call fcn.1400f5980
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 0x1400d8428
cvtpd2ps xmm11, xmm1
inc edi
cmp edi, 0x40
jle 0x1400d7f70
movd xmm1, dword [r14 + 4]
cvtdq2ps xmm1, xmm1
comiss xmm11, xmm1
ja 0x1400d7d95
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 [0x1401126dc]
movss dword [rbp - 0x44], xmm11
comiss xmm11, dword [0x1401127a8]
lea rcx, [rbp - 0x48]
lea rax, [rbp - 0x44]
cmovae rcx, rax
comiss xmm11, dword [0x1401127bc]
lea rax, [rbp - 0x40]
cmovbe rax, rcx
cvttss2si eax, dword [rax]
movsxd rbx, eax
lea rcx, [rbp + 0x18]
call fcn.140011640
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x40], rax
test rbx, rbx
je 0x1400d8517
mov rcx, rbx
shr rcx, 0x3f
xor cl, 1
je 0x1400d8517
imul r8, rbx, 0xf4240
imul rcx, rbx, 0xf4240
mov rdx, r12
sub rdx, rcx
cmp rax, rdx
je 0x1400d8512
setl cl
test cl, cl
je 0x1400d8512
lea rcx, [r8 + rax]
mov qword [rsp + 0x40], rcx
jmp 0x1400d8517
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x40]
call fcn.140018df0
mov ecx, 8
call fcn.1400c888c
lea rcx, [0x1400d85c0]
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, [0x140094300]
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 0x1400d85a0
cmp dword [rbp - 0x28], 0
je 0x1400d8594
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 0x1400d8594
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
jmp 0x1400d7d95
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