Function at 0x14006d610
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x848]
sub rsp, 0x920
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x810], rax
mov ebx, edx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_AddPnPPrinterFromInsDrvIniToShareMem
lea rcx, [rbp - 0x68]
call fcn.1400075a0
nop
mov r9d, ebx
lea r8, str.dwTypePnP___d
mov r15d, 1
mov edx, r15d
lea rcx, [rbp - 0x68]
call fcn.140007780
lea rcx, [0x1402ddbb8]
call fcn.140023e50
or rsi, 0xffffffffffffffff
test eax, eax
je 0x14006d6db
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
cmp ebx, r15d
jne 0x14006d6c0
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.140105958
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdi, qword [rax]
mov r8d, r15d
mov edx, ebx
mov rcx, rax
call qword [rdi + reloc.OLEAUT32.dll_VariantClear]
call fcn.140102a14
mov rdx, rax
xor r14d, r14d
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x14006d6fe
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x48], rdi
dec ebx
je 0x14006d73a
mov dword [0x1403b95bc], r15d
mov r9d, 0x80010001
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 0x68]
call fcn.140007780
jmp 0x14006df19
mov ecx, 0x7b
call fcn.1401027e8
test rax, rax
je 0x14006d75f
mov r8d, 0x7b
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140005b00
mov rdi, qword [rbp - 0x48]
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0x3f2
call qword [rax + 0x28]
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
mov r8, rdi
mov edx, 0x3f2
call qword [rax + 0x38]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantTimeToSystemTime]
mov r12, rax
test rax, rax
je 0x14006df19
mov rax, qword [rax + 0x10]
test eax, eax
je 0x14006df19
mov rbx, r14
movsxd r13, eax
jle 0x14006d8eb
nop word [rax + rax]
mov word [rbp + 0x400], r14w
xor edx, edx
mov r8d, 0x40e
lea rcx, [rbp + 0x402]
call fcn.14024b970
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
test rbx, rbx
js 0x14006d8e5
cmp rbx, qword [r12 + 0x10]
jge 0x14006d8e5
mov rcx, qword [r12 + 8]
mov r9, qword [rax]
lea r8, [rbp + 0x400]
mov rdx, qword [rcx + rbx*8]
mov rcx, rax
call qword [r9 + 0xe0]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp rbx, qword [r12 + 0x10]
jge 0x14006d8df
mov rcx, qword [r12 + 8]
mov r10, qword [rax]
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xffffffff
lea rdx, [rbp + 0x400]
mov qword [rsp + 0x20], rdx
mov r9, qword [rcx + rbx*8]
mov r8, r9
xor edx, edx
mov rcx, rax
call qword [r10 + 0x80]
cmp rbx, qword [r12 + 0x10]
jge 0x14006d8d9
mov r9, qword [r12 + 8]
mov r9, qword [r9 + rbx*8]
lea r8, str._t_t_tPRINTER_s_
mov edx, 7
lea rcx, [rbp - 0x68]
call fcn.140007780
inc rbx
cmp rbx, r13
jl 0x14006d7d0
jmp 0x14006d8eb
call fcn.140102ffc
int3
call fcn.140102ffc
int3
call fcn.140102ffc
int3
lea r13, vtable.CPDLRegData.0
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
mov r8d, 0x20019
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
lea rcx, [rsp + 0x78]
call fcn.140102030
test eax, eax
je 0x14006d98b
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rbp - 0x68]
call fcn.140007780
nop
mov qword [rsp + 0x78], r13
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14006d94a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x80]
lea rax, vtable.CBaseRegData.0
mov qword [rsp + 0x78], rax
test rcx, rcx
je 0x14006d962
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14006d97b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x68]
call fcn.140007730
xor eax, eax
jmp 0x14006df4a
xor r8d, r8d
lea rdx, str.CBaseRegData::QueryValue
lea rcx, [rbp - 0x38]
call fcn.1400075a0
nop
lea r9, str.SourcePath
lea r8, str.name___s
mov edx, r15d
lea rcx, [rbp - 0x38]
call fcn.140007780
lea r11, [rbp - 0x58]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x40]
xor r8d, r8d
lea rdx, str.SourcePath
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov qword [rbp - 0x78], r14
test eax, eax
jne 0x14006da70
mov edx, dword [rbp - 0x58]
add edx, 4
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp - 0x78], rax
test rax, rax
je 0x14006da54
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x40]
xor r8d, r8d
lea rdx, str.SourcePath
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14006da70
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rax, rax
jne 0x14006da42
mov qword [rbp - 0x78], r14
jmp 0x14006da70
lea rdx, str._t_t_tGlobalFree
lea rcx, [rbp - 0x38]
call fcn.140029dc0
jmp 0x14006da70
lea r9, str.SourcePath
lea r8, str._t_t_tCannot_Get_Area_for___s_
mov edx, 7
lea rcx, [rbp - 0x38]
call fcn.140007780
mov r9, qword [rbp - 0x78]
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 0x38]
call fcn.140007780
mov r14, qword [rbp - 0x78]
lea rcx, [rbp - 0x38]
call fcn.140007730
test r14, r14
jne 0x14006db16
lea rcx, [rsp + 0x78]
call fcn.140102200
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r14 + 2]
lea rcx, [rbp - 0x68]
call fcn.140007780
nop
mov qword [rsp + 0x78], r13
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14006dad5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x80]
lea rax, vtable.CBaseRegData.0
mov qword [rsp + 0x78], rax
test rcx, rcx
je 0x14006daed
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14006db06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x68]
call fcn.140007730
xor eax, eax
jmp 0x14006df4a
mov edx, 0x104
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140005900
nop
call fcn.140102a14
mov rdx, rax
xor r12d, r12d
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x14006db56
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x70], rbx
lea rcx, [rbp - 0x20]
lea rax, [rbp - 0x20]
test rax, 0xffffffffffff0000
jne 0x14006dba2
movzx edi, cx
mov ecx, edi
call fcn.1401027e8
test rax, rax
je 0x14006dc9d
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140005b00
mov rbx, qword [rbp - 0x70]
jmp 0x14006dc9d
xor eax, eax
mov rcx, rsi
lea rdi, [rbp - 0x20]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14006dc19
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14006dc9d
cmp dword [rdx + 0x10], eax
jge 0x14006dbed
cmp dword [rbx - 0xc], eax
jge 0x14006dbe0
mov ecx, 0x80070057
call fcn.140005210
int3
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x14006dc9d
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14006dc03
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x70], rbx
jmp 0x14006dc9d
mov r13d, dword [rbx - 0x10]
lea r12, [rbp - 0x20]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x14006dc36
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14006dc54
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.140005e40
mov rbx, qword [rbp - 0x70]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r13
lea r13, [rax + rax]
mov r9, r13
ja 0x14006dc78
lea r8, [rbx + r12*2]
call fcn.1402457b4
jmp 0x14006dc81
lea r8, [rbp - 0x20]
call fcn.1402471ac
cmp edi, dword [rbx - 0xc]
jg 0x14006df0e
mov dword [rbx - 0x10], edi
xor r12d, r12d
mov word [r13 + rbx], r12w
lea r13, vtable.CPDLRegData.0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test rax, rax
je 0x14006dd1c
mov qword [rbp - 0x50], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14006dd0d
mov rcx, qword [rbp - 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
lea r9, str._t_t_tGlobalFree
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rbp - 0x68]
call fcn.140007780
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14006dd1c
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x70]
movsxd rdi, dword [rcx - 0x10]
test edi, edi
jns 0x14006dd34
mov ecx, 0x80070057
call fcn.140005210
int3
mov edx, r15d
sub edx, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, edi
or eax, edx
jge 0x14006dd54
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.140005e40
mov rcx, qword [rsp + 0x70]
lea eax, [rdi + 1]
movsxd rdx, eax
call fcn.140245e1c
mov rdx, qword [rsp + 0x70]
cmp edi, dword [rdx - 0xc]
jg 0x14006df03
mov dword [rdx - 0x10], edi
mov rax, qword [rsp + 0x70]
mov word [rax + rdi*2], r12w
movsxd rdi, dword [rbx - 0x10]
test edi, edi
jns 0x14006dd8d
mov ecx, 0x80070057
call fcn.140005210
int3
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r15d
jge 0x14006ddaa
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.140005e40
mov rbx, qword [rbp - 0x70]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.140245e1c
cmp edi, dword [rbx - 0xc]
jg 0x14006def8
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], r12w
mov rcx, qword [rsp + 0x70]
cmp dword [rcx - 0x10], 0
jl 0x14006de01
mov rdx, rbx
call fcn.140245e24
test rax, rax
je 0x14006de01
sub rax, qword [rsp + 0x70]
sar rax, 1
test eax, eax
js 0x14006de01
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r8, qword [rsp + 0x70]
jmp 0x14006de31
lea r9, [rbp - 0x20]
lea r8, str._sOPTIONSINSTALL_
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call fcn.140246778
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
lea r8, [rbp + 0x1f0]
mov rdi, qword [rax]
lea rdx, str.SOURCEPATH
mov rcx, rax
call qword [rdi + 0x20]
lea rcx, [rsp + 0x78]
call fcn.140102200
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rbp - 0x68]
call fcn.140007780
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14006de7e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14006de9e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rsp + 0x78], r13
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14006deb6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x80]
lea rax, vtable.CBaseRegData.0
mov qword [rsp + 0x78], rax
test rcx, rcx
je 0x14006dece
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14006deeb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x68]
call fcn.140007730
xor eax, eax
jmp 0x14006df4a
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 0x80070057
call fcn.140005210
nop
mov ecx, 0x80070057
call fcn.140005210
nop
mov dword [0x1403b95bc], 0x26
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14006df3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x68]
call fcn.140007730
mov eax, 0x80010026
mov rcx, qword [rbp + 0x810]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x920]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret