Function at 0x10003c0c0
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 0x10003c2db
cmp dword [rcx], 0x6060
jne 0x10003c2db
lea r13d, [rdi + 1]
cmp r8d, r13d
je 0x10003c11a
lea ecx, [rdi + 0x7c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10003c2f4
cmp dword [rsp + 0x90], 0x18
jae 0x10003c143
mov ecx, 0x7a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11, qword [rsp + 0x98]
mov dword [r11], 0x18
jmp 0x10003c2f4
test rbx, rbx
jne 0x10003c14d
lea ecx, [rbx + 0x57]
jmp 0x10003c10f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
test rax, rax
je 0x10003c2f4
mov rax, qword [0x10007f2f0]
cmp qword [rbp + 8], rax
je 0x10003c1c0
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xffffffffffffffff
je 0x10003c1ba
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 0x10003c2e6
mov rcx, qword [rsp + 0x70]
mov dword [rbx], r13d
mov dword [rbx + 0x10], 2
mov qword [rbx + 8], rcx
jmp 0x10003c2e6
cmp qword [rbp + 8], rax
jne 0x10003c1f8
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 0x10003c2e6
mov rax, qword [rsp + 0x70]
mov dword [rbx], r13d
mov dword [rbx + 0x10], r13d
mov qword [rbx + 8], rax
jmp 0x10003c2e6
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 0x10003c2e6
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 0x10003c2ca
mov rcx, qword [rsp + 0x40]
lea rdx, [0x100078c00]
mov r9, rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10003c2ca
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 0x10003c2ca
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 0x10003c2ca
mov rax, qword [rsp + 0x70]
mov dword [rbx], ebp
mov dword [rbx + 0x10], 2
mov qword [rbx + 8], rax
jmp 0x10003c2cc
xor esi, esi
test r13, r13
je 0x10003c2e6
mov rcx, r13
call sym.spoolsv.exe_PrvImpersonatePrinterClient
jmp 0x10003c2e6
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x10003c2f4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10003c303
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