Function at 0x140014dd8
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400b0e58]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r14, r9
movsxd rbx, r8d
mov r15d, edx
mov r12, rcx
mov r8d, ebx
call fcn.1400150a8
mov dword [r14], eax
mov edx, r15d
mov rcx, r12
call fcn.1400142c8
mov rsi, rax
mov edx, dword [r14]
cmp dword [rax + rbx*4 + 0xc], edx
je 0x140014f81
mov dword [rax + rbx*4 + 0xc], edx
and qword [rsp + 0x50], 0
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSpectrumCapabilities
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140014e87
mov r9d, eax
mov edx, 0x6e
jmp 0x140014ee0
mov edx, r15d
lea rcx, [rsp + 0x58]
call fcn.1400173b0
cmp qword [rax + 0x18], 8
jb 0x140014e9e
mov rax, qword [rax]
mov dword [rsp + 0x28], 0x1c
mov qword [rsp + 0x20], rsi
mov r9d, 3
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov esi, eax
lea rcx, [rsp + 0x58]
call fcn.14000720c
test esi, esi
je 0x140014f33
mov r9d, esi
mov edx, 0x6f
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov rcx, qword [rsp + 0xa8]
call fcn.140010e08
mov esi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140014f0c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test esi, esi
jns 0x140014f49
mov rcx, qword [rsp + 0xa8]
mov r9d, esi
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x15f
call fcn.140005fe4
mov eax, esi
jmp 0x140015061
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140014f49
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
cmp ebx, 3
jne 0x140014f81
xor edx, edx
mov rcx, r12
call fcn.1400157b8
mov esi, eax
test eax, eax
jns 0x140014f81
mov rcx, qword [rsp + 0xa8]
mov r9d, eax
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x163
call fcn.140005fe4
mov eax, esi
jmp 0x140015061
mov ecx, dword [r14]
test ecx, ecx
je 0x140015059
sub ecx, 1
je 0x140015059
sub ecx, 1
je 0x140014fff
cmp ecx, 1
jne 0x14001507f
test ebx, ebx
je 0x140014fd1
sub ebx, 1
je 0x140014fc8
sub ebx, 1
je 0x140014fc8
cmp ebx, 1
je 0x140014fbf
lea rbx, str.Unknown
jmp 0x140014fd8
lea rbx, str.backgroundSpatialPerception
jmp 0x140014fd8
lea rbx, str.spatialPerception
jmp 0x140014fd8
lea rbx, str.perceptionSystem
call fcn.1400100ec
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140015059
cmp dword [rcx], 0
jbe 0x140015059
call fcn.1400100ec
mov r9d, r15d
mov r8, rbx
xor edx, edx
call fcn.140016ddc
jmp 0x140015059
test ebx, ebx
je 0x14001502d
sub ebx, 1
je 0x140015024
sub ebx, 1
je 0x140015024
cmp ebx, 1
je 0x14001501b
lea rbx, str.Unknown
jmp 0x140015034
lea rbx, str.backgroundSpatialPerception
jmp 0x140015034
lea rbx, str.spatialPerception
jmp 0x140015034
lea rbx, str.perceptionSystem
call fcn.1400100ec
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140015059
cmp dword [rcx], 0
jbe 0x140015059
call fcn.1400100ec
mov r9d, r15d
mov r8, rbx
xor edx, edx
call fcn.140016d20
xor eax, eax
jmp 0x140015061
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007e5c0
add rsp, 0x80
pop r15
pop r14
pop r12
pop rsi
pop rbx
ret
mov rcx, qword [rsp + 0xa8]
lea r9, str.Unexpected_access_state_
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x178
call fcn.1400171a0
int3