Function at 0x140001358
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r15, rdx
mov rdi, rcx
mov qword [rbp - 0x70], rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
call fcn.140120d54
mov dword [rsp + 0x50], 1
call fcn.1401230bc
test al, al
je 0x140001658
mov qword [rsp + 0x68], r12
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001658
mov dword [rsp + 0x54], r12d
mov dword [rsp + 0x60], r12d
mov dword [rsp + 0x5c], r12d
mov ebx, 0x100
mov r8d, ebx
xor edx, edx
lea rcx, [rbp]
call fcn.14013b230
mov dword [rsp + 0x58], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [0x140167dc0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14d, eax
mov dword [rsp + 0x58], ebx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.ReleaseId
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea r8, [r15 + 0x14]
cmp word [r8], r12w
je 0x1400014bb
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea rdx, str.__SP:
lea rcx, [rbp - 0x58]
call fcn.140120be0
nop
lea ebx, [r12 + 3]
jmp 0x1400014c9
lea rcx, [rbp - 0x68]
call fcn.140120d54
mov ebx, 5
mov dword [rsp + 0x50], ebx
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140120b90
nop
test bl, 4
je 0x1400014f0
and ebx, 0xfffffffb
mov dword [rsp + 0x50], ebx
lea rcx, [rbp - 0x68]
call fcn.140120ddc
nop
test bl, 2
je 0x140001505
and ebx, 0xfffffffd
mov dword [rsp + 0x50], ebx
lea rcx, [rbp - 0x58]
call fcn.140120ddc
mov eax, dword [rsp + 0x54]
test r14d, r14d
jne 0x140001581
cmp dword [rsp + 0x60], 4
jne 0x140001581
test eax, eax
je 0x140001581
test esi, esi
jne 0x1400015ce
cmp dword [rsp + 0x5c], 1
jne 0x1400015ce
cmp word [rbp], r12w
je 0x1400015ce
lea rcx, [rbp - 0x80]
call fcn.140058574
mov rbx, rax
lea r8d, [r14 + 0xa]
lea rdx, [rbp - 0x40]
mov ecx, dword [rsp + 0x54]
call fcn.140001214
mov r9, rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
lea r8, str.__UBR:
jmp 0x140001620
test esi, esi
jne 0x1400015c2
cmp dword [rsp + 0x5c], 1
jne 0x1400015c2
cmp word [rbp], r12w
je 0x1400015c2
lea rcx, [rbp - 0x80]
call fcn.140058574
mov r8, rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
jmp 0x140001620
test r14d, r14d
jne 0x140001643
cmp dword [rsp + 0x60], 4
jne 0x140001643
test eax, eax
je 0x140001643
lea rcx, [rbp - 0x80]
call fcn.140058574
mov rbx, rax
mov r8d, 0xa
lea rdx, [rbp - 0x40]
mov ecx, dword [rsp + 0x54]
call fcn.140001214
mov r9, rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rbx
lea rax, [0x140167e00]
mov qword [rsp + 0x20], rax
lea r8, str.UBR_
lea rdx, [rbp]
lea rcx, [rsp + 0x70]
call fcn.140120be0
mov rdx, rax
mov rcx, rdi
call fcn.140120e10
lea rcx, [rsp + 0x70]
call fcn.140120ddc
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x80]
call fcn.140120ddc
mov rcx, rdi
call fcn.14012148c
test al, al
je 0x140001674
lea rdx, [r15 + 0x14]
or r8, 0xffffffffffffffff
mov rcx, rdi
call fcn.140121718
mov rax, rdi
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140139b10
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret