Function at 0x140014fc0
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.140015298
mov dword [r15], eax
mov edx, r14d
mov rcx, r12
call fcn.1400144cc
mov rsi, rax
mov edx, dword [r15]
cmp dword [rax + rbx*4 + 0xc], edx
je 0x140015174
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 0x14001509f
mov r9d, eax
mov edx, 0x6e
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov rcx, qword [rsp + 0xa8]
call fcn.1400112dc
mov esi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140015115
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140015115
mov edx, r14d
lea rcx, [rsp + 0x58]
call fcn.1400175b0
cmp qword [rax + 0x18], 8
jb 0x1400150b6
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.140006c74
test esi, esi
je 0x1400150fd
mov r9d, esi
mov edx, 0x6f
jmp 0x14001506d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140015113
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 0x14001513c
mov rcx, qword [rsp + 0xa8]
mov r9d, esi
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x15f
call fcn.140005d70
mov eax, esi
jmp 0x140015250
cmp ebx, 3
jne 0x140015174
xor edx, edx
mov rcx, r12
call fcn.14001586c
mov esi, eax
test eax, eax
jns 0x140015174
mov rcx, qword [rsp + 0xa8]
mov r9d, eax
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x163
call fcn.140005d70
mov eax, esi
jmp 0x140015250
cmp dword [r15], 0
jl 0x14001526e
cmp dword [r15], 1
jle 0x140015248
cmp dword [r15], 2
je 0x1400151f1
cmp dword [r15], 3
jne 0x14001526e
test ebx, ebx
je 0x1400151c3
jle 0x1400151ba
cmp ebx, 2
jle 0x1400151b1
cmp ebx, 3
jne 0x1400151ba
lea rbx, str.backgroundSpatialPerception
jmp 0x1400151ca
lea rbx, str.spatialPerception
jmp 0x1400151ca
lea rbx, str.Unknown
jmp 0x1400151ca
lea rbx, str.perceptionSystem
call fcn.14001054c
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140015248
cmp dword [rcx], 0
jbe 0x140015248
call fcn.14001054c
mov r9d, r14d
mov r8, rbx
xor edx, edx
call fcn.14001719c
jmp 0x140015248
test ebx, ebx
je 0x14001521c
jle 0x140015213
cmp ebx, 2
jle 0x14001520a
cmp ebx, 3
jne 0x140015213
lea rbx, str.backgroundSpatialPerception
jmp 0x140015223
lea rbx, str.spatialPerception
jmp 0x140015223
lea rbx, str.Unknown
jmp 0x140015223
lea rbx, str.perceptionSystem
call fcn.14001054c
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140015248
cmp dword [rcx], 0
jbe 0x140015248
call fcn.14001054c
mov r9d, r14d
mov r8, rbx
xor edx, edx
call fcn.1400170f4
xor eax, eax
jmp 0x140015250
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140097f60
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.140017534
int3