Function at 0x14006e824
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 [0x140379a08]
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 0x1401761a3
test rax, rax
je 0x1401761a3
mov dword [rdx], r13d
mov qword [r8], r13
call fcn.14006ec88
mov rcx, rax
lea r8, [rbp - 0x60]
call fcn.14006dbb4
mov r14d, eax
cmp eax, 0x80070002
je 0x14006ec7c
test eax, eax
js 0x14006ec2c
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14006ee3c
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 0x140175fdc
mov eax, dword [rsp + 0x68]
mov ecx, 0xffffffff
shl rax, 3
cmp rax, rcx
ja 0x140176198
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 0x140175ff2
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 0x140175ffd
mov r14d, r13d
mov dword [rsp + 0x64], ecx
test r14d, r14d
js 0x140176140
mov eax, ecx
add rax, rax
cmp rax, rdx
ja 0x140176190
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 0x14017600a
mov ecx, r13d
mov dword [rsp + 0x74], ecx
cmp dword [rsp + 0x68], r13d
jbe 0x14006ebfc
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 0x140176134
call fcn.14006ec88
mov r9, rax
mov qword [rsp + 0x20], rbx
lea r8, [0x1403013e0]
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.14002e4b8
mov r14d, eax
test eax, eax
js 0x14017613d
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 0x140176015
test r14d, r14d
js 0x14006ebdc
mov rcx, qword [rsp + 0x78]
mov r15, rcx
test rsi, rsi
je 0x14006eae3
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 0x14006ebf5
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 0x140176021
mov ecx, dword [rsp + 0x6c]
mov r15b, r9b
cmp ecx, 0x3f
je 0x14006ebce
cmp ecx, dword [rbp + 0x250]
je 0x14006ebbc
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 0x140176058
test r15b, r15b
jne 0x1401760ae
mov r15d, dword [rsp + 0x60]
test rbx, rbx
jne 0x1401760dc
mov ecx, dword [rsp + 0x74]
inc ecx
mov dword [rsp + 0x74], ecx
cmp ecx, dword [rsp + 0x68]
jae 0x14006ebfc
mov rbx, qword [rbp - 0x78]
jmp 0x14006e9f3
mov r15d, dword [rsp + 0x60]
jmp 0x14006ebdc
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 0x14006ec22
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 0x14006ec5a
test rdi, rdi
jne 0x14006ec6b
mov eax, r14d
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400a2260
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 0x14006ec27
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14006ec2c
mov r14d, r13d
jmp 0x14006ec2c
jle 0x14006ec27
movzx r14d, ax
or r14d, 0x80070000
jmp 0x14006ec27
mov r14d, 0x8007000e
jmp 0x14006ec27
mov r14d, 0x80070216
mov ecx, edx
jmp 0x14006e99c
mov r14d, 0x8007000e
jmp 0x140176140
movzx r14d, ax
or r14d, r13d
jmp 0x14006ea9a
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.1402415d8
mov rdx, qword [rbp - 0x50]
xor r9d, r9d
mov rbx, qword [rbp - 0x58]
jmp 0x14006eb86
test rbx, rbx
je 0x14006ebc5
cmp dword [rbp + 0x270], r9d
jne 0x14017609e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
jmp 0x14017608a
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 0x14006ebc5
lea r15d, [r9 + 1]
jmp 0x14006ebc5
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r9w
jne 0x1401760a2
jmp 0x14017607b
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 0x140176104
inc r15d
mov dword [rsp + 0x60], r15d
jmp 0x14006ebd3
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 0x14006ebdc
xor r13d, r13d
mov r14d, 0x8007000e
test rbx, rbx
je 0x140176140
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 0x140176140
jle 0x14017613d
movzx r14d, r14w
or r14d, r13d
xor r13d, r13d
test r12, r12
je 0x14006ec0a
test r15d, r15d
je 0x14017617b
mov rbx, r12
mov eax, 1
mov rcx, qword [rbx]
test rcx, rcx
je 0x140176172
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 0x140176156
mov rcx, r12
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
nop
jmp 0x14006ec0a
mov r14d, 0x80070216
jmp 0x140176140
mov r14d, 0x80070216
jmp 0x14006ec27
mov r14d, 0x80070057
jmp 0x140176140