Function at 0x1000067d8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x30
mov rcx, qword [0x10001d1e0]
lea rbp, [0x10001d1e0]
cmp rcx, rbp
je 0x100006804
test byte [rcx + 0x1c], 2
je 0x100006804
cmp byte [rcx + 0x19], 5
jae 0x10000837d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x10001d210], rax
test rax, rax
je 0x100008398
test ebx, ebx
jne 0x1000083a5
mov r12d, 4
mov word [0x10001d194], r12w
call fcn.100006038
mov ebx, eax
test eax, eax
je 0x100006876
mov rcx, qword [0x10001d1e0]
cmp rcx, rbp
je 0x100006874
test byte [rcx + 0x1c], 2
je 0x100006874
cmp byte [rcx + 0x19], 3
jb 0x100006874
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x51]
lea r8, [0x100015650]
mov r9d, eax
call fcn.100001e70
xor ebx, ebx
and dword [rsp + 0x50], 0
lea rax, [rsp + 0x68]
lea rdx, str.SYSTEMSetup
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000068e4
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.SetupType
xor r8d, r8d
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov r8d, dword [rsp + 0x50]
mov dword [0x10001d1a8], r8d
cmp r8d, 1
je 0x1000083e6
cmp r8d, r12d
je 0x1000083e6
xor ecx, ecx
jmp 0x100006907
and qword [rsp + 0x50], 0
cmp dword [0x10001dbdc], 0
mov dword [0x10001d1ac], ecx
jne 0x100006962
lea rax, [rsp + 0x50]
lea rdx, str.SystemCurrentControlSetControlMiniNT
mov r9d, 0x2000000
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x1000083f0
mov r8d, dword [0x10001d1a8]
mov ecx, dword [0x10001d1ac]
mov dword [0x10001dbdc], 1
mov edx, dword [0x10001dbd8]
mov dword [0x10001d1b0], edx
mov r10, qword [0x10001d1e0]
cmp r10, rbp
je 0x1000069c3
test byte [r10 + 0x1c], 1
je 0x1000069c3
cmp byte [r10 + 0x19], r12b
jb 0x1000069c3
test edx, edx
lea r11, str.TRUE
lea r9, str.FALSE
mov rax, r9
mov edx, 0x56
cmovne rax, r11
test ecx, ecx
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
lea r8, [0x100015650]
cmovne r9, r11
call fcn.1000057c0
call fcn.1000069dc
mov eax, ebx
add rsp, 0x30
pop r12
pop rbp
pop rbx
ret
mov rcx, qword [rcx + 0x10]
lea r8, [0x100015650]
mov edx, 0x53
call fcn.10000121c
nop
jmp 0x100006804
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100006823
mov rcx, qword [0x10001d1e0]
cmp rcx, rbp
je 0x1000069c8
test byte [rcx + 0x1c], 2
je 0x1000069c8
cmp byte [rcx + 0x19], 1
jb 0x1000069c8
mov rcx, qword [rcx + 0x10]
lea r8, [0x100015650]
mov edx, 0x54
mov r9d, ebx
call fcn.100001e70
jmp 0x1000069c8
mov ecx, 1
jmp 0x100006907
mov rcx, qword [rsp + 0x50]
mov dword [0x10001dbd8], 1
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
nop
jmp 0x10000694b