Function at 0x140015600
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.1400158d8
mov dword [r15], eax
mov edx, r14d
mov rcx, r12
call fcn.140014b0c
mov rsi, rax
mov edx, dword [r15]
cmp dword [rax + rbx*4 + 0xc], edx
je 0x1400157b4
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 0x1400156df
mov r9d, eax
mov edx, 0x6e
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov rcx, qword [rsp + 0xa8]
call fcn.14001191c
mov esi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140015755
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140015755
mov edx, r14d
lea rcx, [rsp + 0x58]
call fcn.140017bf0
cmp qword [rax + 0x18], 8
jb 0x1400156f6
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.140006ca4
test esi, esi
je 0x14001573d
mov r9d, esi
mov edx, 0x6f
jmp 0x1400156ad
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140015753
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 0x14001577c
mov rcx, qword [rsp + 0xa8]
mov r9d, esi
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x15f
call fcn.140005d80
mov eax, esi
jmp 0x140015890
cmp ebx, 3
jne 0x1400157b4
xor edx, edx
mov rcx, r12
call fcn.140015eac
mov esi, eax
test eax, eax
jns 0x1400157b4
mov rcx, qword [rsp + 0xa8]
mov r9d, eax
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x163
call fcn.140005d80
mov eax, esi
jmp 0x140015890
cmp dword [r15], 0
jl 0x1400158ae
cmp dword [r15], 1
jle 0x140015888
cmp dword [r15], 2
je 0x140015831
cmp dword [r15], 3
jne 0x1400158ae
test ebx, ebx
je 0x140015803
jle 0x1400157fa
cmp ebx, 2
jle 0x1400157f1
cmp ebx, 3
jne 0x1400157fa
lea rbx, str.backgroundSpatialPerception
jmp 0x14001580a
lea rbx, str.spatialPerception
jmp 0x14001580a
lea rbx, str.Unknown
jmp 0x14001580a
lea rbx, str.perceptionSystem
call fcn.140010b8c
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140015888
cmp dword [rcx], 0
jbe 0x140015888
call fcn.140010b8c
mov r9d, r14d
mov r8, rbx
xor edx, edx
call fcn.1400177dc
jmp 0x140015888
test ebx, ebx
je 0x14001585c
jle 0x140015853
cmp ebx, 2
jle 0x14001584a
cmp ebx, 3
jne 0x140015853
lea rbx, str.backgroundSpatialPerception
jmp 0x140015863
lea rbx, str.spatialPerception
jmp 0x140015863
lea rbx, str.Unknown
jmp 0x140015863
lea rbx, str.perceptionSystem
call fcn.140010b8c
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140015888
cmp dword [rcx], 0
jbe 0x140015888
call fcn.140010b8c
mov r9d, r14d
mov r8, rbx
xor edx, edx
call fcn.140017734
xor eax, eax
jmp 0x140015890
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140098550
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.140017b74
int3