Function at 0x140028fdc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x50
xor esi, esi
lea rax, [rbp + 0x38]
mov r9d, 0x20019
mov qword [rbp + 0x40], rsi
xor r8d, r8d
mov qword [rbp + 0x38], rsi
lea rdx, str.SoftwareMicrosoftCommand_Processor
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea r14, [0x14017f6b8]
lea r12d, [rsi + 1]
test eax, eax
jne 0x1400290f0
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400290f0
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], esi
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400290e2
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x1400290e2
lea ecx, [rax + 2]
mov edx, r12d
call fcn.140113de8
mov rbx, rax
test rax, rax
je 0x1400290e2
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400290da
cmp word [rbx], si
je 0x1400290da
mov qword [rsp + 0x40], rsi
lea r9, [0x1401759f4]
mov qword [rsp + 0x38], rsi
lea rdx, str.__HKCU:
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rsi
mov r8, rbx
mov qword [rsp + 0x20], rsi
call fcn.140114824
mov rcx, rbx
call fcn.140113e18
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x38], rsi
call fcn.140116890
mov cl, al
lea rdx, str.SoftwareMicrosoftCommand_Processor
neg cl
mov dil, al
lea rax, [rbp + 0x38]
mov rcx, 0xffffffff80000002
sbb r9d, r9d
mov qword [rsp + 0x20], rax
and r9d, 0x200
xor r8d, r8d
or r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400291f3
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400291f3
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], esi
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400291e5
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x1400291e5
lea ecx, [rax + 2]
mov rdx, r12
call fcn.140113de8
mov rbx, rax
test rax, rax
je 0x1400291e5
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400291dd
cmp word [rbx], si
je 0x1400291dd
mov qword [rsp + 0x40], rsi
lea r9, [0x1401759f4]
mov qword [rsp + 0x38], rsi
lea rdx, str.__HKLM32:
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rsi
mov r8, rbx
mov qword [rsp + 0x20], rsi
call fcn.140114824
mov rcx, rbx
call fcn.140113e18
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x38], rsi
test dil, dil
je 0x1400292e4
lea rax, [rbp + 0x38]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftCommand_Processor
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400292e4
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400292e4
lea rax, [rbp + 0x30]
mov dword [rbp + 0x30], esi
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400292da
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x1400292da
lea ecx, [rax + 2]
mov rdx, r12
call fcn.140113de8
mov rbx, rax
test rax, rax
je 0x1400292da
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400292d2
cmp word [rbx], si
je 0x1400292d2
mov qword [rsp + 0x40], rsi
lea r9, [0x1401759f4]
mov qword [rsp + 0x38], rsi
lea rdx, str.__HKLM64:
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rsi
mov r8, rbx
mov qword [rsp + 0x20], rsi
call fcn.140114824
mov rcx, rbx
call fcn.140113e18
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp + 0x40]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret