Function at 0x14006db34
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rcx, qword [rbp + 0x260]
xor r13d, r13d
mov r15d, r13d
mov rax, r8
mov dword [rsp + 0x60], r15d
mov r12d, r13d
mov dword [rbp - 0x68], r9d
mov edi, r13d
mov qword [rbp - 0x40], rax
mov esi, r13d
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x50], rcx
mov dword [rsp + 0x68], r13d
mov dword [rsp + 0x64], r13d
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x60], r13
mov qword [rsp + 0x78], r13
mov word [rbp - 0x30], r13w
test rdx, rdx
je 0x1401831a5
test rax, rax
je 0x1401831a5
mov dword [rdx], r13d
mov qword [r8], r13
call fcn.14006df98
mov rcx, rax
lea r8, [rbp - 0x60]
call fcn.14006cec4
mov r14d, eax
cmp eax, 0x80070002
je 0x14006df8c
test eax, eax
js 0x14006df3c
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14006e14c
mov rdi, qword [rbp - 0x80]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x58], r13
xor r9d, r9d
mov qword [rsp + 0x50], r13
xor r8d, r8d
mov qword [rsp + 0x48], r13
xor edx, edx
mov qword [rsp + 0x40], r13
mov rcx, rdi
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jne 0x140182fde
mov eax, dword [rsp + 0x68]
mov ecx, 0xffffffff
shl rax, 3
cmp rax, rcx
ja 0x14018319a
mov ecx, eax
mov ebx, eax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x140182ff4
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [rsp + 0x64]
mov edx, 0xffffffff
lea ecx, [rax + 1]
cmp ecx, eax
jb 0x140182fff
mov r14d, r13d
mov dword [rsp + 0x64], ecx
test r14d, r14d
js 0x140183142
mov eax, ecx
add rax, rax
cmp rax, rdx
ja 0x140183192
mov ecx, eax
mov r14d, r13d
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rbp - 0x78], rax
mov rbx, rax
test rax, rax
je 0x14018300c
mov ecx, r13d
mov dword [rsp + 0x74], ecx
cmp dword [rsp + 0x68], r13d
jbe 0x14006df0c
mov r13d, 0x80070000
xor r9d, r9d
mov eax, dword [rsp + 0x64]
mov edx, ecx
mov qword [rsp + 0x38], r9
mov r8, rbx
mov qword [rsp + 0x30], r9
mov rcx, rdi
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
mov word [rbx], r9w
lea r9, [rbp - 0x70]
mov dword [rbp - 0x70], eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jne 0x140183136
call fcn.14006df98
mov r9, rax
mov qword [rsp + 0x20], rbx
lea r8, [0x14030e4a0]
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.14002d868
mov r14d, eax
test eax, eax
js 0x14018313f
lea rax, [rsp + 0x78]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor r9d, r9d
mov r14d, eax
test eax, eax
jg 0x140183017
test r14d, r14d
js 0x14006deec
mov rcx, qword [rsp + 0x78]
mov r15, rcx
test rsi, rsi
je 0x14006ddf3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x78]
xor r9d, r9d
mov ebx, 4
mov dword [rsp + 0x6c], r9d
lea rax, [rbp - 0x6c]
mov dword [rbp - 0x6c], ebx
mov qword [rsp + 0x30], rax
lea r8, str.EnrollmentState
lea rax, [rsp + 0x6c]
mov rsi, r15
mov qword [rsp + 0x28], rax
lea r15d, [rbx + 0x14]
mov qword [rsp + 0x20], r9
xor edx, edx
mov r9d, r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
xor r9d, r9d
test eax, eax
jne 0x14006df05
mov rcx, qword [rsp + 0x78]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea r8, str.EnrollmentType
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], r9
mov r9d, r15d
mov dword [rbp - 0x80], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x50]
xor r9d, r9d
mov ebx, r9d
mov qword [rbp - 0x58], rbx
test rdx, rdx
jne 0x140183023
mov ecx, dword [rsp + 0x6c]
mov r15b, r9b
cmp ecx, 0x3f
je 0x14006dede
cmp ecx, dword [rbp + 0x250]
je 0x14006decc
mov eax, dword [rsp + 0x70]
mov r8, qword [rbp + 0x258]
bt r8, rax
setb al
cmp ecx, dword [rbp - 0x68]
movzx r15d, al
mov eax, 1
cmove r15d, eax
test rdx, rdx
jne 0x14018305a
test r15b, r15b
jne 0x1401830b0
mov r15d, dword [rsp + 0x60]
test rbx, rbx
jne 0x1401830de
mov ecx, dword [rsp + 0x74]
inc ecx
mov dword [rsp + 0x74], ecx
cmp ecx, dword [rsp + 0x68]
jae 0x14006df0c
mov rbx, qword [rbp - 0x78]
jmp 0x14006dd03
mov r15d, dword [rsp + 0x60]
jmp 0x14006deec
mov rax, qword [rbp - 0x48]
mov dword [rax], r15d
mov rax, qword [rbp - 0x40]
mov qword [rax], r12
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x14006df32
mov rcx, rax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
test rsi, rsi
jne 0x14006df6a
test rdi, rdi
jne 0x14006df7b
mov eax, r14d
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400a15a0
mov rbx, qword [rsp + 0x330]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14006df37
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14006df3c
mov r14d, r13d
jmp 0x14006df3c
jle 0x14006df37
movzx r14d, ax
or r14d, 0x80070000
jmp 0x14006df37
mov r14d, 0x8007000e
jmp 0x14006df37
mov r14d, 0x80070216
mov ecx, edx
jmp 0x14006dcac
mov r14d, 0x8007000e
jmp 0x140183142
movzx r14d, ax
or r14d, r13d
jmp 0x14006ddaa
cmp dword [rbp + 0x268], r9d
lea rax, str.AADOpaqueID
mov rcx, qword [rsp + 0x78]
lea rdx, str.PartnerOpaqueID
cmove rdx, rax
lea r8, [rbp - 0x58]
call fcn.14024dff8
mov rdx, qword [rbp - 0x50]
xor r9d, r9d
mov rbx, qword [rbp - 0x58]
jmp 0x14006de96
test rbx, rbx
je 0x14006ded5
cmp dword [rbp + 0x270], r9d
jne 0x1401830a0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
jmp 0x14018308c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
nop dword [rax + rax]
xor r9d, r9d
test eax, eax
jne 0x14006ded5
lea r15d, [r9 + 1]
jmp 0x14006ded5
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r9w
jne 0x1401830a4
jmp 0x14018307d
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov r15d, dword [rsp + 0x60]
xor r9d, r9d
mov qword [r12 + r15*8], rax
test rax, rax
je 0x140183106
inc r15d
mov dword [rsp + 0x60], r15d
jmp 0x14006dee3
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
xor r9d, r9d
jmp 0x14006deec
xor r13d, r13d
mov r14d, 0x8007000e
test rbx, rbx
je 0x140183142
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140183142
jle 0x14018313f
movzx r14d, r14w
or r14d, r13d
xor r13d, r13d
test r12, r12
je 0x14006df1a
test r15d, r15d
je 0x14018317d
mov rbx, r12
mov eax, 1
mov rcx, qword [rbx]
test rcx, rcx
je 0x140183174
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov eax, 1
mov qword [rbx], r13
add rbx, 8
sub r15, rax
jne 0x140183158
mov rcx, r12
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
nop
jmp 0x14006df1a
mov r14d, 0x80070216
jmp 0x140183142
mov r14d, 0x80070216
jmp 0x14006df37
mov r14d, 0x80070057
jmp 0x140183142