Function at 0x1400d2400
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x3a8]
sub rsp, 0x490
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r12, rdx
xor r8d, r8d
lea rdx, str.CBaseOSSpec::SetNetworkPrinterToDefault
lea rcx, [rsp + 0x48]
call fcn.1400075a0
nop
mov r9, r12
lea r8, str.lpNetPrinter___s
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140007780
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140005900
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionDevices
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or edi, 0xffffffff
test eax, eax
jne 0x1400d25bf
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x3c], 0x410
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d25b4
lea r8, [0x1402fc904]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.14003ffa0
nop
lea r8, [rsp + 0x70]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14003ffa0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x30]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400d2575
cmp dword [rbx + 0x10], 0
jl 0x1400d2566
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400d2566
call fcn.140006190
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400d255b
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x30], rax
jmp 0x1400d2575
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.140005d50
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400d2595
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400d25b4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, qword [rsp + 0x30]
lea r8, str._t_t_tDefault_Value___s
mov edx, 7
lea rcx, [rsp + 0x48]
call fcn.140007780
mov rdx, qword [rsp + 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov r9, r12
lea r8, str.lpNetPrinter___s
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140007780
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x1400d2620
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x48]
call fcn.140007730
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret