Function at 0x1400148d8
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x1400ade58]
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.140014c00
mov dword [r15], eax
mov edx, r14d
mov rcx, r12
call fcn.140013dcc
mov rsi, rax
mov edx, dword [r15]
cmp dword [rax + rbx*4 + 0xc], edx
je 0x140014adb
mov dword [rax + rbx*4 + 0xc], edx
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
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 0x1400149b9
mov rcx, qword [rsp + 0xb8]
mov r9d, eax
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
lea edx, [rdi + 0x6e]
call fcn.140010968
mov esi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140014a65
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x140014a65
mov edx, r14d
lea rcx, [rsp + 0x58]
call fcn.140016e94
cmp qword [rax + 0x18], 8
jb 0x1400149d0
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
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140014a19
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
call fcn.140007d20
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], di
test esi, esi
je 0x140014a8c
mov rcx, qword [rsp + 0xb8]
mov r9d, esi
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x6f
call fcn.140010968
mov esi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140014a65
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
test esi, esi
jns 0x140014aa3
mov rcx, qword [rsp + 0xb8]
mov r9d, esi
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x15f
call fcn.140005c34
mov eax, esi
jmp 0x140014bb6
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140014aa3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
cmp ebx, 3
jne 0x140014add
xor edx, edx
mov rcx, r12
call fcn.14001532c
mov esi, eax
test eax, eax
jns 0x140014add
mov rcx, qword [rsp + 0xb8]
mov r9d, eax
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x163
call fcn.140005c34
mov eax, esi
jmp 0x140014bb6
xor edi, edi
cmp dword [r15], edi
jl 0x140014bd5
cmp dword [r15], 1
jle 0x140014bae
cmp dword [r15], 2
je 0x140014b58
cmp dword [r15], 3
jne 0x140014bd5
test ebx, ebx
je 0x140014b2b
jle 0x140014b22
cmp ebx, 2
jle 0x140014b19
cmp ebx, 3
jne 0x140014b22
lea rbx, str.backgroundSpatialPerception
jmp 0x140014b32
lea rbx, str.spatialPerception
jmp 0x140014b32
lea rbx, str.Unknown
jmp 0x140014b32
lea rbx, str.perceptionSystem
call fcn.14000fbcc
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140014bae
cmp dword [rcx], edi
jbe 0x140014bae
call fcn.14000fbcc
mov r9d, r14d
mov r8, rbx
xor edx, edx
call fcn.140016898
jmp 0x140014bae
test ebx, ebx
je 0x140014b83
jle 0x140014b7a
cmp ebx, 2
jle 0x140014b71
cmp ebx, 3
jne 0x140014b7a
lea rbx, str.backgroundSpatialPerception
jmp 0x140014b8a
lea rbx, str.spatialPerception
jmp 0x140014b8a
lea rbx, str.Unknown
jmp 0x140014b8a
lea rbx, str.perceptionSystem
call fcn.14000fbcc
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140014bae
cmp dword [rcx], edi
jbe 0x140014bae
call fcn.14000fbcc
mov r9d, r14d
mov r8, rbx
xor edx, edx
call fcn.1400167dc
xor eax, eax
jmp 0x140014bb6
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007c650
add rsp, 0x88
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rsp + 0xb8]
lea r9, str.Unexpected_access_state_
lea r8, str.analoginput_spectrumcomponentscapabilityhandler.cpp
mov edx, 0x178
call fcn.140016c80
int3