Function at 0x1402cc8a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor esi, esi
lea rcx, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x50], rsi
mov edi, esi
call fcn.14006e14c
lea rax, [rsp + 0x50]
mov r12, 0xffffffff80000002
mov rcx, r12
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSetupOOBE
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1402ccae0
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.InstallType
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x58], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1402ccae0
cmp dword [rsp + 0x30], 4
jne 0x1402ccae0
cmp dword [rsp + 0x34], 0x10
jne 0x1402ccae0
xor edx, edx
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x48]
call fcn.14006e14c
lea rax, [rsp + 0x48]
xor r8d, r8d
lea r9d, [rsi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftProvisioningPersistentStateCleanPCCSP
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1402ccaca
mov ebx, 0x208
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rdx, str.ProvisioningPackageID
lea rax, [rsp + 0x70]
mov dword [rsp + 0x5c], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1402ccaca
lea edi, [rsi + 1]
mov qword [rsp + 0x40], rsi
call fcn.1402cd11c
test al, al
lea rdx, str.SOFTWAREMicrosoftProvisioningOOBEPackage
lea rbx, str.OSDataSOFTWAREMicrosoftProvisioningOOBEPackage
cmove rbx, rdx
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.14006e14c
lea rax, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1402ccab4
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x64], esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AfterCleanPCProvisioningStatusCompleted
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x60], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1402ccab4
cmp dword [rsp + 0x38], edi
cmove edi, esi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1402ccaca
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1402ccae0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1402ccaf6
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400a15a0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret