Function at 0x10003eee0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x50
and qword [rax + 8], 0
xor esi, esi
xor edi, edi
and qword [rax - 0x28], rsi
mov rbx, r9
mov r14, rdx
mov rbp, rcx
test rcx, rcx
je 0x10003f0fb
cmp dword [rcx], 0x6060
jne 0x10003f0fb
lea r13d, [rdi + 1]
cmp r8d, r13d
je 0x10003ef3a
lea ecx, [rdi + 0x7c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10003f114
cmp dword [rsp + 0x90], 0x18
jae 0x10003ef63
mov ecx, 0x7a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11, qword [rsp + 0x98]
mov dword [r11], 0x18
jmp 0x10003f114
test rbx, rbx
jne 0x10003ef6d
lea ecx, [rbx + 0x57]
jmp 0x10003ef2f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
test rax, rax
je 0x10003f114
mov rax, qword [0x1000832b0]
cmp qword [rbp + 8], rax
je 0x10003efe0
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xffffffffffffffff
je 0x10003efda
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x70]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x28], r13d
and dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, eax
test eax, eax
je 0x10003f106
mov rcx, qword [rsp + 0x70]
mov dword [rbx], r13d
mov dword [rbx + 0x10], 2
mov qword [rbx + 8], rcx
jmp 0x10003f106
cmp qword [rbp + 8], rax
jne 0x10003f018
mov rcx, qword [rbp + 0x10]
lea r8, [rsp + 0x70]
mov r9, rdi
xor edx, edx
mov qword [rsp + 0x20], r14
call qword [rax + 0x2a0]
mov esi, eax
test eax, eax
je 0x10003f106
mov rax, qword [rsp + 0x70]
mov dword [rbx], r13d
mov dword [rbx + 0x10], r13d
mov qword [rbx + 8], rax
jmp 0x10003f106
and qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [rax + 0x2a0]
mov esi, eax
test eax, eax
je 0x10003f106
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov ecx, 0x208
mov r13, rax
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rbp + 0x40], rax
test rax, rax
je 0x10003f0ea
mov rcx, qword [rsp + 0x40]
lea rdx, [0x10007d150]
mov r9, rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10003f0ea
and qword [rsp + 0x30], 0
mov rcx, qword [rbp + 0x40]
and dword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x10003f0ea
mov dword [rsp + 0x30], 2
mov ebp, 1
lea r9, [rsp + 0x70]
mov r8, r14
mov rdx, rax
mov rcx, rdi
mov dword [rsp + 0x28], ebp
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10003f0ea
mov rax, qword [rsp + 0x70]
mov dword [rbx], ebp
mov dword [rbx + 0x10], 2
mov qword [rbx + 8], rax
jmp 0x10003f0ec
xor esi, esi
test r13, r13
je 0x10003f106
mov rcx, r13
call sym.spoolsv.exe_PrvImpersonatePrinterClient
jmp 0x10003f106
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x10003f114
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10003f123
call sym.spoolsv.exe_PrvDllFreeSplMem
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret