Function at 0x180005a5c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x180013070]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov eax, dword [0x18000e5c8]
lea r9, [rsp + 0x38]
movaps xmm0, xmmword [str.NetpCreatePartListFromRegistry:_Bad_provisioning_information:]
xor r15d, r15d
movaps xmm1, xmmword [0x18000e560]
mov rbx, rdx
mov dword [rbp + 0x18], eax
xor r8d, r8d
movzx eax, word [0x18000e5cc]
mov r14, rcx
mov word [rbp + 0x1c], ax
lea r13d, [r15 + 4]
movaps xmmword [rbp - 0x60], xmm0
lea rax, [rsp + 0x50]
movaps xmm0, xmmword [0x18000e570]
movaps xmmword [rbp - 0x50], xmm1
movaps xmm1, xmmword [0x18000e580]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
movaps xmmword [rbp - 0x40], xmm0
movaps xmm0, xmmword [0x18000e590]
movaps xmmword [rbp - 0x30], xmm1
movaps xmm1, xmmword [0x18000e5a0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
movaps xmmword [rbp - 0x20], xmm0
movaps xmm0, xmmword [0x18000e5b0]
movaps xmmword [rbp - 0x10], xmm1
movsd xmm1, qword [0x18000e5c0]
mov qword [rdx + 8], rdx
mov qword [rdx], rdx
lea rdx, str.NumParts
mov qword [rsp + 0x20], rax
movaps xmmword [rbp], xmm0
movsd qword [rbp + 0x10], xmm1
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], r13d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x180005f1b
cmp dword [rsp + 0x38], r13d
jne 0x180005f1b
mov ecx, dword [rsp + 0x6c]
lea eax, [rcx - 1]
cmp eax, 0x3e6
ja 0x180005f1b
lea esi, [r15 + 1]
cmp ecx, esi
jb 0x180005f3a
mov r9d, esi
mov dword [rsp + 0x30], 0xa96
lea r8, [0x18000dd54]
mov edx, 8
lea rcx, [rbp - 0x70]
call fcn.180003978
lea rax, [rsp + 0x40]
mov word [rbp - 0x6a], r15w
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x180005f02
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x34], r13d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Status
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x180005c43
cmp dword [rsp + 0x38], r13d
jne 0x180005e8a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov dword [rsp + 0x30], r15d
jmp 0x180005e74
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x34], r13d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Flags
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x180005ef2
cmp dword [rsp + 0x38], r13d
jne 0x180005ef2
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Data
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x180005ed1
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x34], 0x4a
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Type
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x180005ec8
cmp dword [rsp + 0x38], 1
jne 0x180005ec8
lea rdx, [rbp - 0x80]
mov word [rbp + 0x68], r15w
lea rcx, [rbp + 0x20]
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x180005eb7
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x80]
lea ecx, [rax + 3]
call fcn.180006e34
mov dword [rsp + 0x30], eax
test eax, eax
je 0x180005dd9
test byte [rsp + 0x68], 1
jne 0x180005eaa
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], r13d
lea rdx, str.Status
mov r9d, r13d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x180005dad
lea r9, [rbp - 0x70]
mov dword [rsp + 0x20], eax
lea r8, str.Status
lea rdx, [rbp - 0x60]
lea rcx, str._wsFailed_to_set__ws_value_for_non_essential__ws_part:_0x_x._n
call fcn.180008608
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x30], r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x180005e6f
lea rdx, [rsp + 0x48]
mov ecx, 0x38
call qword [sym.imp.netutils.dll_NetApiBufferAllocate]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x180005f3a
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x68]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x48]
mov byte [rax + 0x2c], r15b
mov rax, qword [rsp + 0x48]
or dword [rax + 0x30], 0xffffffff
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x48]
cmp qword [rcx], rdx
jne 0x180005fb5
mov qword [rax + 8], rcx
lea rdx, [rsp + 0x50]
mov qword [rax], rdx
mov qword [rcx], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r15
inc esi
mov qword [rsp + 0x40], r15
cmp esi, dword [rsp + 0x6c]
ja 0x180005f3a
jmp 0x180005b8d
lea r9, str.Status
lea rcx, str._ws_ws_keys__ws_value_is_invalid._n
lea rdx, [rbp - 0x60]
lea r8, [rbp - 0x70]
call fcn.180008608
jmp 0x180005f3a
lea r8, [rbp - 0x70]
lea rcx, str._ws_ws_part_is_essential__provider_not_found._n
jmp 0x180005f29
mov dword [rsp + 0x30], 0xa96
lea r9, str.Type
jmp 0x180005e91
lea r9, str.Type
jmp 0x180005ef9
lea r9, str.Data
mov dword [rsp + 0x20], eax
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x60]
lea rcx, str._wsFailed_to_open__ws_keys__ws_subkey:_0x_x._n
call fcn.180008608
jmp 0x180005f3a
lea r9, str.Flags
lea rcx, str._ws_ws_keys__ws_value_is_missing_or_invalid._n
jmp 0x180005e98
mov r9d, eax
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x60]
lea rcx, str._wsFailed_to_open__ws_key:_0x_x._n
call fcn.180008608
jmp 0x180005f3a
lea r8, str.NumParts
lea rcx, str._ws_ws_value_is_missing_or_invalid._n
lea rdx, [rbp - 0x60]
mov dword [rsp + 0x30], 0xa96
call fcn.180008608
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180005f50
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180005f66
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
cmp dword [rsp + 0x30], r15d
jne 0x180005fbc
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], rcx
jne 0x180005fb5
mov qword [rbx], rax
lea rcx, [rsp + 0x50]
mov qword [rbx + 8], rcx
lea rcx, [rsp + 0x50]
mov qword [rax + 8], rbx
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rbx
cmp qword [rbx + 8], rcx
jne 0x180005fb5
lea rcx, [rsp + 0x50]
cmp qword [rax], rcx
jne 0x180005fb5
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x180005fc1
mov ecx, 3
int 0x29
call fcn.180006000
mov edx, dword [rsp + 0x30]
lea rcx, str.NetpCreatePartListFromRegistry:_status:_0x_x._n
call fcn.180008608
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.180009470
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop rsi
pop rbp
ret