Function at 0x14001a550
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x710], rbx
mov rax, qword [0x140260d50]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov r13, rdx
mov r14, rcx
xor r8d, r8d
lea rdx, str.GetPrinterInfo
lea rcx, [rsp + 0x60]
call fcn.14000b870
nop
mov qword [rsp + 0x20], r13
mov r9, r14
lea r8, str.lpszPrinter___s__lpszShareName___s
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.14000ba50
call fcn.14000cc50
call fcn.14004cde4
mov r11, rax
xor r15d, r15d
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14001a5ed
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
call fcn.140050920
xor edx, edx
mov r8d, 0x618
lea rcx, [rbp - 0x70]
call fcn.140193010
mov rdx, r14
lea rcx, [rsp + 0x38]
call fcn.140001110
nop
mov edx, 0x5c
mov rcx, qword [rsp + 0x38]
call fcn.14018f7cc
mov rsi, rax
or edi, 0xffffffff
test rax, rax
jne 0x14001a644
mov esi, edi
jmp 0x14001a7a7
sub rsi, qword [rsp + 0x38]
sar rsi, 1
test esi, esi
js 0x14001a7a7
lea r8d, [rsi + 1]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.140016680
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or edi, 0xffffffff
cmp rcx, rbx
je 0x14001a6c6
cmp dword [rbx + 0x10], 0
jl 0x14001a6b7
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14001a6b7
call fcn.140001620
mov r12, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14001a6ab
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r12 + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x14001a6c6
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.1400014d0
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001a6e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r9d, [rsi - 2]
mov r8d, 2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.1400059d0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x38]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14001a75f
cmp dword [rbx + 0x10], 0
jl 0x14001a750
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14001a750
call fcn.140001620
mov r12, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14001a744
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r12 + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x14001a75f
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.1400014d0
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001a77e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rbx
mov r9, qword [rsp + 0x38]
lea r8, str.SystemCurrentControlSetControlPrintPrinters
lea rdx, str._s___s__s
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14001a7c2
mov r9, r14
lea r8, str.SystemCurrentControlSetControlPrintPrinters
lea rdx, str._s_s
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001a867
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x40], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Share_Name
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001a82c
mov word [r13], r15w
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Attributes
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x14001a989
mov qword [rsp + 0x58], r15
xor edx, edx
mov r8d, 0x618
lea rcx, [rbp - 0x70]
call fcn.140193010
lea r11, [rsp + 0x48]
mov qword [rsp + 0x20], r11
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlPrintPrinters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001aa6a
lea rcx, [rbp - 0x70]
test esi, esi
js 0x14001a8cb
mov r9, rbx
mov r8, qword [rsp + 0x38]
lea rdx, str.___s__s
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x14001a8dc
mov r9d, 0x30c
mov r8, r14
mov edx, r9d
call fcn.140191d34
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001aa03
mov dword [rsp + 0x30], 0x208
mov dword [rsp + 0x40], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Share_Name
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001a948
mov word [r13], r15w
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Attributes
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, dword [rsp + 0x44]
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.14000ba50
mov ebx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001a9d3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14001a9f2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
lea rcx, [rsp + 0x60]
call fcn.14000ba00
mov eax, ebx
jmp 0x14001aad0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or r9d, 0xffffffff
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.14000ba50
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001aa49
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14001aa68
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
jmp 0x14001aac3
or r9d, 0xffffffff
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.14000ba50
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14001aaa5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14001aac3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x60]
call fcn.14000ba00
or eax, 0xffffffff
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.14018e5d0
mov rbx, qword [rsp + 0x710]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret