Function at 0x140014eb0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400ce2e8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r15, r9
movsxd rbx, r8d
mov r14d, edx
mov r12, rcx
mov r8d, ebx
call fcn.140015188
mov dword [r15], eax
mov edx, r14d
mov rcx, r12
call fcn.1400143bc
mov rsi, rax
mov edx, dword [r15]
cmp dword [rax + rbx*4 + 0xc], edx
je 0x140015064
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 0x140014f8f
mov r9d, eax
mov edx, 0x6e
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov rcx, qword [rsp + 0xa8]
call fcn.1400111cc
mov esi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140015005
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140015005
mov edx, r14d
lea rcx, [rsp + 0x58]
call fcn.1400174a0
cmp qword [rax + 0x18], 8
jb 0x140014fa6
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.140006c64
test esi, esi
je 0x140014fed
mov r9d, esi
mov edx, 0x6f
jmp 0x140014f5d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140015003
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor esi, esi
test esi, esi
jns 0x14001502c
mov rcx, qword [rsp + 0xa8]
mov r9d, esi
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x15f
call fcn.140005d60
mov eax, esi
jmp 0x140015140
cmp ebx, 3
jne 0x140015064
xor edx, edx
mov rcx, r12
call fcn.14001575c
mov esi, eax
test eax, eax
jns 0x140015064
mov rcx, qword [rsp + 0xa8]
mov r9d, eax
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x163
call fcn.140005d60
mov eax, esi
jmp 0x140015140
cmp dword [r15], 0
jl 0x14001515e
cmp dword [r15], 1
jle 0x140015138
cmp dword [r15], 2
je 0x1400150e1
cmp dword [r15], 3
jne 0x14001515e
test ebx, ebx
je 0x1400150b3
jle 0x1400150aa
cmp ebx, 2
jle 0x1400150a1
cmp ebx, 3
jne 0x1400150aa
lea rbx, str.backgroundSpatialPerception
jmp 0x1400150ba
lea rbx, str.spatialPerception
jmp 0x1400150ba
lea rbx, str.Unknown
jmp 0x1400150ba
lea rbx, str.perceptionSystem
call fcn.14001043c
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140015138
cmp dword [rcx], 0
jbe 0x140015138
call fcn.14001043c
mov r9d, r14d
mov r8, rbx
xor edx, edx
call fcn.14001708c
jmp 0x140015138
test ebx, ebx
je 0x14001510c
jle 0x140015103
cmp ebx, 2
jle 0x1400150fa
cmp ebx, 3
jne 0x140015103
lea rbx, str.backgroundSpatialPerception
jmp 0x140015113
lea rbx, str.spatialPerception
jmp 0x140015113
lea rbx, str.Unknown
jmp 0x140015113
lea rbx, str.perceptionSystem
call fcn.14001043c
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140015138
cmp dword [rcx], 0
jbe 0x140015138
call fcn.14001043c
mov r9d, r14d
mov r8, rbx
xor edx, edx
call fcn.140016fe4
xor eax, eax
jmp 0x140015140
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140097e50
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.140017424
int3