Function at 0x14002b550
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x338
mov qword [rsp + 0x2b8], 0xfffffffffffffffe
mov rax, qword [0x140043078]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov dword [rsp + 0x2b0], 0
lea rdx, [0x1400385f3]
lea rcx, [rsp + 0x38]
call fcn.140002610
nop
mov dword [rsp + 0x4c], 1
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140017420
lea r11, str._spooldriversx643_
mov qword [rsp + 0x40], r11
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, 6
xor edx, edx
mov rcx, qword [rsp + 0x350]
call sub.WINSPOOL.DRV_GetPrinterDriverW
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x14002b646
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x7a
jne 0x14002b641
mov dword [rsp + 0x4c], 1
jmp 0x14002b646
jmp 0x14002b91e
mov edx, dword [rsp + 0x50]
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14002b682
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], 0
jmp 0x14002b91e
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8d, 6
xor edx, edx
mov rcx, qword [rsp + 0x350]
call sub.WINSPOOL.DRV_GetPrinterDriverW
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x14002b6c6
jmp 0x14002b91e
mov r8, qword [rsp + 0x58]
mov r8, qword [r8 + 0x38]
lea rdx, [rsp + 0x280]
mov rcx, qword [rsp + 0x340]
call fcn.14002b2a0
mov qword [rsp + 0x2c0], rax
mov rax, qword [rsp + 0x2c0]
mov qword [rsp + 0x2c8], rax
mov rdx, qword [rsp + 0x2c8]
lea rcx, [rsp + 0x38]
call fcn.140001ac0
nop
lea rcx, [rsp + 0x280]
call fcn.140002710
lea rdx, [0x1400385f6]
lea rcx, [rsp + 0x38]
call fcn.1400012f0
movzx eax, al
test eax, eax
je 0x14002b76e
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x348]
call fcn.140001740
mov eax, dword [rsp + 0x2b0]
or eax, 1
mov dword [rsp + 0x2b0], eax
lea rcx, [rsp + 0x38]
call fcn.140002710
mov rax, qword [rsp + 0x348]
jmp 0x14002b98c
xor r9d, r9d
mov r8d, 0x25
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x14002b819
lea rdx, [0x1400385f7]
lea rcx, [rsp + 0x288]
call fcn.140002610
mov qword [rsp + 0x2d0], rax
mov rax, qword [rsp + 0x2d0]
mov qword [rsp + 0x2d8], rax
mov rdx, qword [rsp + 0x2d8]
lea rcx, [rsp + 0x38]
call fcn.140001ac0
nop
lea rcx, [rsp + 0x288]
call fcn.140002710
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x348]
call fcn.140001740
mov eax, dword [rsp + 0x2b0]
or eax, 1
mov dword [rsp + 0x2b0], eax
lea rcx, [rsp + 0x38]
call fcn.140002710
mov rax, qword [rsp + 0x348]
jmp 0x14002b98c
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x290]
call fcn.1400035c0
mov qword [rsp + 0x2e0], rax
mov rax, qword [rsp + 0x2e0]
mov qword [rsp + 0x2e8], rax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x298]
call fcn.1400035c0
mov qword [rsp + 0x2f0], rax
mov rax, qword [rsp + 0x2f0]
mov qword [rsp + 0x2f8], rax
mov r8, qword [rsp + 0x2e8]
mov rdx, qword [rsp + 0x2f8]
lea rcx, [rsp + 0x2a0]
call fcn.140003b70
mov qword [rsp + 0x300], rax
mov rax, qword [rsp + 0x300]
mov qword [rsp + 0x308], rax
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x308]
lea rcx, [rsp + 0x2a8]
call fcn.140003b70
mov qword [rsp + 0x310], rax
mov rax, qword [rsp + 0x310]
mov qword [rsp + 0x318], rax
mov rdx, qword [rsp + 0x318]
lea rcx, [rsp + 0x38]
call fcn.140001ac0
nop
lea rcx, [rsp + 0x2a8]
call fcn.140002710
nop
lea rcx, [rsp + 0x2a0]
call fcn.140002710
nop
lea rcx, [rsp + 0x298]
call fcn.140002710
nop
lea rcx, [rsp + 0x290]
call fcn.140002710
cmp qword [rsp + 0x58], 0
je 0x14002b957
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rsp + 0x58], 0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x348]
call fcn.140001740
mov eax, dword [rsp + 0x2b0]
or eax, 1
mov dword [rsp + 0x2b0], eax
lea rcx, [rsp + 0x38]
call fcn.140002710
mov rax, qword [rsp + 0x348]
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140016f40
add rsp, 0x338
ret