Function at 0x1400a7040
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rbp + 7], rax
movaps xmm6, xmm2
mov rdi, rcx
cmp edx, 0xda
ja 0x1400a735c
je 0x1400a7292
mov eax, edx
sub eax, 2
je 0x1400a7235
sub eax, 0x90
je 0x1400a7170
cmp eax, 0x1e
jne 0x1400a7373
xor ebx, ebx
xor r8d, r8d
mov dl, 1
mov dword [rbp - 0x31], ebx
xor sil, sil
call fcn.1400a81e0
mov rcx, qword [rdi + 0x5a8]
lea rdx, [rbp - 0x31]
xor r8d, r8d
call fcn.140093870
test al, al
je 0x1400a715e
mov edx, dword [rbp - 0x31]
lea r8d, [rbx - 3]
mov rcx, qword [rdi + 0x5a8]
call fcn.140093d30
movzx esi, al
test al, al
je 0x1400a715e
mov rcx, qword [rdi + 0x5b8]
test rcx, rcx
je 0x1400a715e
xor r8d, r8d
lea rdx, [rbp - 0x31]
call fcn.140093870
test al, al
je 0x1400a715e
mov edx, dword [rbp - 0x31]
lea r8d, [rbx - 3]
mov rcx, qword [rdi + 0x5b8]
call fcn.140093d30
movzx esi, al
test al, al
je 0x1400a715e
mov rax, qword [rdi]
lea r8, [rbp - 0x11]
xorps xmm0, xmm0
mov edx, QISearch
mov rcx, rdi
movsd qword [rbp - 0x11], xmm0
mov rax, qword [rax + 0x20]
call qword [case.0x14004487d.0]
test al, al
je 0x1400a715e
movsd xmm0, qword [0x1403a9900]
ucomisd xmm0, qword [rbp - 0x11]
jp 0x1400a715e
jne 0x1400a715e
lea edx, [rbx + 2]
mov rcx, rdi
call fcn.1400a7d80
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1400a81e0
jmp 0x1400a7540
mov qword [rsp + 0x128], r15
xor ebx, ebx
movaps xmmword [rsp + 0xc0], xmm7
mov r14d, 0x40000
xorps xmm7, xmm7
ucomisd xmm7, xmm6
jp 0x1400a7196
mov r15d, r14d
je 0x1400a7199
mov r15d, ebx
movsd xmm0, qword [0x1403a98f0]
ucomisd xmm0, xmm6
jp 0x1400a71a9
je 0x1400a71ac
mov r14d, ebx
mov rcx, qword [rcx + 0x5b8]
mov esi, 0xffffffff
mov r9d, r15d
mov dword [rsp + 0x20], r14d
mov edx, esi
lea r8d, [rsi + 4]
call fcn.140094c90
mov rcx, qword [rdi + 0x5b8]
lea r8d, [rsi + 5]
mov r9d, r15d
mov dword [rsp + 0x20], r14d
mov edx, esi
movzx ebx, al
call fcn.140094c90
mov r15, qword [rsp + 0x128]
movzx esi, al
and sil, bl
ucomisd xmm7, xmm6
movaps xmm7, xmmword [rsp + 0xc0]
jp 0x1400a7223
jne 0x1400a7223
mov rax, qword [rdi]
mov edx, QISearch
movsd xmm2, qword [0x1403a9900]
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x14004487d.0]
mov edx, 2
mov rcx, rdi
call fcn.1400a7d80
jmp 0x1400a7540
mov edx, 2
call fcn.1400b2380
lea rcx, [rdi + 0x13ef20]
movzx esi, al
mov rdx, qword [rcx]
mov bl, 1
mov rax, qword [rdx + 0x18]
movabs rdx, 0x80000000000000
call qword [case.0x14004487d.0]
test al, al
je 0x1400a7279
movaps xmm2, xmm6
mov edx, 0x92
mov rcx, rdi
call fcn.1400b2380
movzx ebx, al
test sil, sil
je 0x1400a728a
test bl, bl
je 0x1400a728a
mov sil, 1
jmp 0x1400a7540
xor sil, sil
jmp 0x1400a7540
xor ebx, ebx
lea rdx, str.SOFTWAREWaves_AudioMaxxAudioSettings
mov eax, ebx
mov qword [rbp - 0x49], rbx
cvttsd2si r14d, xmm6
mov rcx, 0xffffffff80000002
mov esi, 0x80004005
cmp r14d, 0x1869f
sete al
xor r9d, r9d
mov dword [rbp - 0x29], eax
xor r8d, r8d
lea rax, [rbp - 9]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x1400a7328
lea rax, [rbp - 0x29]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.MaxxSensePower
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x49]
mov esi, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
sete sil
cmp r14d, 0x1869f
je 0x1400a7540
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call fcn.1400a8150
mov edx, r14d
mov rcx, rdi
movzx esi, al
call fcn.1400a7d80
jmp 0x1400a7540
mov eax, edx
sub eax, 0x13d
je 0x1400a749a
sub eax, 0x3b
je 0x1400a7399
cmp eax, 6
je 0x1400a737d
call fcn.1400b2380
jmp 0x1400a753d
mov edx, dword [rcx + 0x13ef74]
mov rcx, qword [rcx + 0x5b0]
cvttsd2si r8d, xmm6
call fcn.1400935c0
jmp 0x1400a753d
mov r8, qword [rcx + 0x600]
lea rdx, [rbp - 0x59]
xor ebx, ebx
mov dword [rbp - 0x59], 2
lea rcx, [rbp - 0x51]
mov qword [rbp - 0x51], rbx
cvttsd2si r14d, xmm6
call fcn.14007a8f0
mov rdx, qword [rbp - 0x51]
lea rax, [rbp - 5]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rbp - 0x41]
mov dword [rbp - 0x21], r14d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
mov qword [rbp - 0x41], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1400a7439
lea rax, [rbp - 0x21]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SpatialAudioLastSoundMode
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdx, qword [rbp - 0x51]
mov esi, 0xffffffff
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400a7460
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
cmp r14d, 0x1869f
mov rcx, rdi
sete bl
mov edx, ebx
call fcn.1400a7c60
movzx esi, al
cmp r14d, 0x1869f
je 0x1400a7540
mov r8d, 1
mov edx, r14d
mov rcx, rdi
call fcn.1400a8150
jmp 0x1400a753d
xorps xmm0, xmm0
xor ebx, ebx
ucomisd xmm6, xmm0
jp 0x1400a74a9
mov eax, ebx
je 0x1400a74ae
mov eax, 1
mov dword [rbp - 0x19], eax
lea rdx, str.SOFTWAREWaves_AudioMaxxAudioSettings
lea rax, [rbp - 1]
mov qword [rbp - 0x39], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rbp - 0x39]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1400a752c
lea rax, [rbp - 0x19]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.RemoveMyBackgroundNoise
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r8d, 0xfffffffd
movaps xmm1, xmm6
mov rcx, rdi
call fcn.1400bd340
movzx esi, al
movzx eax, sil
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140202880
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret