Function at 0x14007dd60
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x4e0], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r12, r9
mov r13, r8
mov ebx, edx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_GetSecurityDescriptorFromPrinter
lea rcx, [rsp + 0x38]
call fcn.1400075a0
nop
mov edi, dword [rbp + 0x400]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r13
mov r9d, ebx
lea r8, str.nLevel___d__pPrinterName___s__bInit___d
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007780
xor esi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x68], 0xf000c
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x30], esi
test r12, r12
jne 0x14007de29
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rsi + 2]
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
xor eax, eax
jmp 0x14007e0f9
test edi, edi
je 0x14007de3d
xor edx, edx
mov r8d, 0x2c44
mov rcx, r12
call fcn.14024b970
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov rcx, r13
call qword [sym.imp.WINSPOOL.DRV_OpenPrinterW]
test eax, eax
jne 0x14007de7d
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rax + 2]
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
xor eax, eax
jmp 0x14007e0f9
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINSPOOL.DRV_GetPrinterW]
test eax, eax
jne 0x14007dede
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14007dede
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
xor eax, eax
jmp 0x14007e0f9
mov edx, dword [rsp + 0x30]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
mov rcx, qword [rsp + 0x48]
test rax, rax
jne 0x14007df29
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [rdi + 2]
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
xor eax, eax
jmp 0x14007e0f9
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.WINSPOOL.DRV_GetPrinterW]
test eax, eax
jne 0x14007df85
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
xor eax, eax
jmp 0x14007e0f9
cmp ebx, 3
je 0x14007e021
cmp ebx, 7
jne 0x14007e0bf
mov r8, qword [rdi]
test r8, r8
je 0x14007e0bf
mov edx, 0x104
lea rcx, [r12 + 0x2a38]
call fcn.140246628
mov eax, dword [rdi + 8]
mov dword [r12 + 0x2c40], eax
lea r8, str._t_t_t
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140007780
lea r9, [r12 + 0x2a38]
lea r8, str._t_t_ttransfPrinterInfo__szObjectGUID___s_
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140007780
mov r9d, dword [r12 + 0x2c40]
lea r8, str._t_t_ttransfPrinterInfo__dwAction___d_
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140007780
lea r8, str._t_t_t
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140007780
jmp 0x14007e0bf
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14007e0bf
lea r8, [rbp - 0x80]
lea rdx, str._sADVAPI32.DLL
lea rcx, [rbp + 0x190]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14007e0bf
lea rdx, str.ConvertSecurityDescriptorToStringSecurityDescriptorW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14007e0b6
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x50]
mov edx, 1
lea r8d, [rdx + 0xe]
mov rcx, qword [rdi]
call rax
mov esi, eax
cmp eax, 1
jne 0x14007e0b6
mov r8, qword [rsp + 0x50]
mov edx, 0x1000
mov rcx, r12
call fcn.140246628
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINSPOOL.DRV_ClosePrinter]
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
mov eax, esi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4b0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret