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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1068]
mov eax, 0x1140
call fcn.140025f90
sub rsp, rax
mov rax, qword [0x1400a9008]
xor rax, rsp
mov qword [rbp + 0x1030], rax
xor r15d, r15d
mov r14, rcx
xor edx, edx
mov qword [rsp + 0x78], r15
lea rcx, [rbp - 0x7e]
mov word [rbp - 0x80], r15w
mov edi, r15d
lea r8d, [r15 + 0x4e]
call sub.msvcrt.dll_memset
mov ebx, 0x206
mov word [rbp - 0x30], r15w
mov r8d, ebx
lea rcx, [rbp - 0x2e]
xor edx, edx
call sub.msvcrt.dll_memset
xor edx, edx
mov word [rbp + 0x3f0], r15w
mov r8d, 0x616
lea rcx, [rbp + 0x3f2]
call sub.msvcrt.dll_memset
mov r8d, ebx
mov qword [rsp + 0x68], r15
xor edx, edx
mov dword [rsp + 0x64], r15d
lea rcx, [rbp + 0x1e2]
mov dword [rsp + 0x70], 2
mov word [rbp + 0x1e0], r15w
call sub.msvcrt.dll_memset
lea rcx, [rbp - 0x80]
mov esi, r15d
call fcn.14006f66c
test eax, eax
je 0x1400705ac
test r14, r14
je 0x1400702e9
mov r8, r14
lea rcx, [rbp + 0x3f0]
mov edx, 0x30c
call fcn.14000ff60
mov edi, eax
mov r12d, 0x80070000
test edi, edi
js 0x1400704bb
mov edx, 0x2c
lea rcx, [rbp + 0x3f0]
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x140070311
mov word [rax], r15w
mov r13d, 0x104
lea r8, str.PrintersDefaults
mov edx, r13d
lea rcx, [rbp - 0x30]
call fcn.14000ff60
lea rsi, str.Formatted_printer_name
mov edi, eax
test eax, eax
js 0x1400704bb
lea r8, [0x14009dd64]
mov edx, r13d
lea rcx, [rbp - 0x30]
call fcn.1400188b4
lea rsi, str.Append_slash
mov edi, eax
test eax, eax
js 0x1400704bb
lea r8, [rbp - 0x80]
mov edx, r13d
lea rcx, [rbp - 0x30]
call fcn.1400188b4
lea rsi, str.Append_network_ID
mov edi, eax
test eax, eax
js 0x1400704bb
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x30]
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r15d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jle 0x1400703c9
movzx edi, ax
or edi, r12d
lea rsi, str.Create_reg_key
test edi, edi
js 0x1400704bb
cmp dword [rsp + 0x70], 2
jne 0x140070454
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rbp + 0xa10]
mov dword [rsp + 0x60], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x64], 0x618
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140070454
lea rdx, [rbp + 0x3f0]
lea rcx, [rbp + 0xa10]
call sub.msvcrt.dll__wcsicmp
lea r8, [rbp + 0xa10]
mov rdx, r13
lea rcx, [rbp + 0x1e0]
mov ebx, eax
call fcn.14000ff60
lea rsi, str.Calculate_bUpdate
test ebx, ebx
je 0x1400704bb
lea r8, [rsp + 0x68]
mov edx, 0x618
lea rcx, [rbp + 0x3f0]
call fcn.140053e2c
lea rsi, str.Calculate_string_byte_length
mov edi, eax
test eax, eax
js 0x1400704bb
mov eax, dword [rsp + 0x68]
mov r9d, 1
mov rcx, qword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov dword [rsp + 0x64], eax
xor edx, edx
lea rax, [rbp + 0x3f0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jle 0x1400704b4
movzx edi, ax
or edi, r12d
lea rsi, str.Reg_set_value
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400704cb
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r9d, r15d
mov dword [rsp + 0x28], edi
test r14, r14
mov qword [rsp + 0x20], rsi
lea r8, [rbp - 0x80]
mov rdx, r14
setne r9b
lea rcx, [rbp + 0x1e0]
call fcn.14006f804
test edi, edi
js 0x1400705ac
lea rax, [rsp + 0x68]
mov qword [rsp + 0x68], r15
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], r15d
lea rdx, str.PrintersDefaults
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jle 0x140070536
movzx edi, ax
or edi, r12d
test edi, edi
js 0x14007059c
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r15
xor r9d, r9d
mov qword [rsp + 0x50], r15
xor r8d, r8d
mov qword [rsp + 0x48], r15
xor edx, edx
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
mov edi, eax
test eax, eax
jle 0x140070586
movzx edi, ax
or edi, r12d
test edi, edi
js 0x14007059c
mov r8d, dword [rsp + 0x60]
mov edx, 0x1069
xor ecx, ecx
call qword [sym.imp.ntdll.dll_WinSqmSetDWORD]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400705ac
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x1030]
xor rcx, rsp
call fcn.140024ca0
lea r11, [rsp + 0x1140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret