Function at 0x14007dcc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0xfa0]
mov eax, 0x10a0
call fcn.140283930
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x10b8], rbx
mov qword [rsp + 0x10c0], rdi
mov rax, qword [0x1404680d8]
xor rax, rsp
mov qword [rbp + 0xf90], rax
mov rdi, rcx
cmp dword [rcx + 0xc], 6
jae 0x14007dd13
mov byte [rcx + 0x158], 0
jmp 0x14007dd50
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.BCD00000000
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007dd74
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rdi + 0x158], 0
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.140282c10
lea r11, [rsp + 0x10a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
cmp eax, 5
je 0x14007dd49
cmp eax, 0x20
je 0x14007dd49
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinPE
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007dd49
mov byte [rdi + 0x158], 1
mov dword [rsp + 0x38], 0x1000
mov dword [rsp + 0x68], 1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.InstRoot
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14007df03
mov eax, dword [rsp + 0x38]
shr rax, 1
xor ecx, ecx
mov word [rbp + rax*2 - 0x72], cx
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.14000d360
nop
lea rcx, [rsp + 0x70]
call fcn.14007f020
lea rcx, [rsp + 0x70]
cmp rcx, rax
je 0x14007de4e
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14007de40
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x70]
call fcn.14000d3a0
lea rcx, [rsp + 0x70]
call fcn.14007ece0
lea rcx, [rsp + 0x48]
call fcn.14000c320
nop
lea rdx, [rsp + 0x48]
call fcn.1400d0e40
lea rcx, [rsp + 0x48]
call fcn.14007ece0
lea rcx, [rsp + 0x48]
call fcn.14007f020
lea rcx, [rsp + 0x48]
cmp rcx, rax
je 0x14007dea6
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14007de98
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call fcn.14000d3a0
lea r9, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae r9, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
call fcn.140037ea0
test rax, rax
je 0x14007dee9
mov byte [rdi + 0x158], 0
lea rcx, [rsp + 0x48]
call fcn.14000c300
nop
lea rcx, [rsp + 0x70]
call fcn.14000c300
jmp 0x14007dd50
lea rcx, [rsp + 0x48]
call fcn.14000c320
nop
lea rdx, [rsp + 0x48]
call fcn.1400d0e40
lea rcx, [rsp + 0x48]
call fcn.14007ece0
lea rcx, [rsp + 0x48]
call fcn.14007f020
lea rcx, [rsp + 0x48]
cmp rcx, rax
je 0x14007df51
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14007df43
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call fcn.14000d3a0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], 2
lea r9, [0x1403c7080]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
call fcn.140037ea0
test rax, rax
je 0x14007df8b
mov byte [rdi + 0x158], 0
lea rcx, [rsp + 0x48]
call fcn.14000c300
jmp 0x14007dd50