Function at 0x140009a30
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 r12
push r15
sub rsp, 0x50
and qword [rax + 8], 0
xor esi, esi
and qword [rax - 0x28], rsi
xor ebp, ebp
mov rbx, r9
mov r12, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400289d1
cmp dword [rcx], 0x6060
jne 0x1400289d1
cmp r8d, 1
jne 0x140028830
cmp dword [rsp + 0x90], 0x18
jb 0x14002884e
test rbx, rbx
je 0x140028837
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140009b06
mov rax, qword [0x1400b84d8]
cmp qword [rdi + 8], rax
jne 0x140028872
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x70]
mov rax, qword [rax + 0x2a0]
mov r9, rsi
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [0x140097d68]
mov ebp, eax
test eax, eax
je 0x140009af2
mov rax, qword [rsp + 0x70]
mov edi, 1
mov dword [rbx], edi
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], edi
test rsi, rsi
je 0x140009b06
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov r8, qword [rsp + 0x40]
test r8, r8
jne 0x1400289e8
lea r11, [rsp + 0x50]
mov eax, ebp
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
mov ecx, 0x7c
jmp 0x14002883c
mov ecx, 0x57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
nop
jmp 0x140009b06
mov ecx, 0x7a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rax, qword [rsp + 0x98]
mov dword [rax], 0x18
jmp 0x140009b06
mov rdx, qword [rdi + 0x38]
cmp rdx, 0xffffffffffffffff
je 0x1400288c9
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x70]
mov edi, 1
mov r8, r12
mov dword [rsp + 0x28], edi
mov rcx, rsi
and dword [rsp + 0x20], ebp
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
nop dword [rax + rax]
mov ebp, eax
test eax, eax
je 0x140009af2
mov rcx, qword [rsp + 0x70]
mov qword [rbx + 8], rcx
mov dword [rbx], edi
mov dword [rbx + 0x10], 2
jmp 0x140009af2
mov rax, qword [rax + 0x2a0]
lea rdx, [rsp + 0x40]
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [0x140097d68]
mov ebp, eax
test eax, eax
je 0x140009af2
call sym.spoolsv.exe_PrvRevertToPrinterSelf
mov ecx, 0x208
mov r15, rax
call sym.spoolsv.exe_PrvDllAllocSplMem
mov qword [rdi + 0x40], rax
test rax, rax
je 0x1400289b8
mov rcx, qword [rsp + 0x40]
lea rdx, [0x1400aaf68]
mov r9, rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetTempFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x1400289b8
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rsp + 0x28], 0
mov edx, 0xc0000000
mov rcx, qword [rdi + 0x40]
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x1400289b8
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x70]
mov edi, 1
mov r8, r12
mov dword [rsp + 0x28], edi
mov rdx, rax
and dword [rsp + 0x20], 0
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_DuplicateHandle]
nop dword [rax + rax]
test eax, eax
je 0x1400289b8
mov rax, qword [rsp + 0x70]
mov qword [rbx + 8], rax
mov dword [rbx], edi
mov dword [rbx + 0x10], 2
jmp 0x1400289ba
xor ebp, ebp
test r15, r15
je 0x140009af2
mov rcx, r15
call sym.spoolsv.exe_PrvImpersonatePrinterClient
nop
jmp 0x140009af2
mov ecx, 6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
nop
jmp 0x140009af2
mov rcx, qword [0x1400b8478]
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
nop
jmp 0x140009b14