Function at 0x14012e470
Capabilities:
Get common file path

Disassembly:
mov word [rsp + 8], cx
sub rsp, 0xc8
mov dword [rsp + 0x28], 0x39af030d
movzx eax, word [rsp + 0xd0]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
add eax, 0x7bb
movzx ecx, word [rsp + 0xd0]
cmp eax, ecx
jle 0x14012e5f4
movzx eax, word [rsp + 0x20]
sub eax, 0xa57
movzx ecx, word [rsp + 0xd0]
cmp eax, ecx
jg 0x14012e5dd
movzx eax, word [rsp + 0x20]
and eax, 0xd02
movzx ecx, word [rsp + 0xd0]
cmp eax, ecx
jle 0x14012e4eb
movzx eax, word [rsp + 0xd0]
shl eax, 0xf
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
xor eax, 0x81d
movzx ecx, word [rsp + 0xd0]
cmp eax, ecx
je 0x14012e5bc
mov eax, dword [rsp + 0x28]
or eax, 0x13a5365c
mov dword [rsp + 0x28], eax
movzx eax, word [rsp + 0x20]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14012e527
jmp 0x14012e5a9
movabs rax, 0x4450f99aaf3b708b
mov qword [rsp + 0x40], rax
mov eax, 0x5221
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
movabs rax, 0x1b35e48dffb928ee
cmp qword [rsp + 0x78], rax
je 0x14012e55d
jmp 0x14012e5a7
movsx eax, word [rsp + 0x24]
sub eax, 0x3c93
mov word [rsp + 0x24], ax
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
mov dword [rsp + 0x50], eax
movzx ecx, word [rsp + 0x20]
call fcn.14012e470
movzx eax, word [rsp + 0xd0]
add eax, 0x55e
mov word [rsp + 0x20], ax
jmp 0x14012e5ba
mov rcx, qword [rsp + 0xa0]
call sub.WINSPOOL.DRV_AbortPrinter
mov dword [rsp + 0x48], eax
jmp 0x14012e5dd
movzx eax, word [rsp + 0x20]
sar eax, 0x80
movzx ecx, word [rsp + 0xd0]
cmp eax, ecx
je 0x14012e5dd
mov eax, dword [rsp + 0x28]
and eax, 0x7de9fadb
mov dword [rsp + 0x28], eax
movabs rax, 0x3db2284fdb882e7
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 0x454007d1
movzx eax, word [rsp + 0x20]
mov word [rsp + 0x2c], ax
movzx eax, word [rsp + 0x20]
movzx ecx, word [rsp + 0xd0]
sub eax, ecx
movzx ecx, word [rsp + 0x2c]
cmp eax, ecx
jg 0x14012e807
lea rax, [rsp + 0x24]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsx eax, word [rax]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x15e3
je 0x14012e64d
cmp dword [rsp + 0x4c], 0x2152
je 0x14012e6fe
jmp 0x14012e74c
movabs rax, 0x1a26b757c7bd3fdf
cmp qword [rsp + 0x40], rax
jne 0x14012e690
mov rax, qword [rsp + 0x38]
movsx eax, word [rax]
or eax, 0x845
mov word [rsp + 0x24], ax
lea r9, [rsp + 0x58]
mov r8d, 0x78
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call sub.WINSPOOL.DRV_ReadPrinter
mov dword [rsp + 0x48], eax
jmp 0x14012e6fc
cmp dword [rsp + 0x30], 0x24c2e49f
je 0x14012e6fc
movsx eax, word [rsp + 0x24]
shl eax, 0xb
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
movzx eax, word [rsp + 0xd0]
movzx ecx, word [rsp + 0x2c]
sar eax, cl
mov word [rsp + 0x20], ax
lea r9, [rsp + 0x50]
mov r8d, 0x86
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call sub.WINSPOOL.DRV_ReadPrinter
mov dword [rsp + 0x48], eax
movabs rax, 0x724de4605af0a780
mov rcx, qword [rsp + 0x40]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x14012e74c
movsx eax, word [rsp + 0x24]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0x6244
je 0x14012e713
jmp 0x14012e73f
mov rax, qword [rsp + 0x38]
movsx eax, word [rax]
movsx ecx, word [rsp + 0x24]
sub eax, ecx
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov edx, 0x7d
mov rcx, qword [rsp + 0x70]
call sub.WINSPOOL.DRV_ScheduleJob
mov dword [rsp + 0x50], eax
jmp 0x14012e74c
mov eax, dword [rsp + 0x30]
add eax, 0x8639958d
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x90], rax
movzx eax, byte [section..data]
cmp eax, 0xc9
jle 0x14012e790
mov rax, qword [rsp + 0x38]
movsx eax, word [rax]
sub eax, 0x2dc2
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x38]
movsx eax, word [rax]
movsx ecx, word [rsp + 0x24]
add eax, ecx
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
movzx eax, word [rsp + 0xd0]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0x715
je 0x14012e7a8
jmp 0x14012e7fa
movabs rax, 0x714e0583514c477d
mov rcx, qword [rsp + 0x40]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, 0xd
mov rcx, qword [rsp + 0x88]
call sub.WINSPOOL.DRV_ScheduleJob
mov dword [rsp + 0x48], eax
movzx eax, word [rsp + 0x2c]
mov word [rsp + 0xd0], ax
mov eax, dword [rsp + 0x28]
sub eax, 0x46f01645
mov rcx, qword [rsp + 0x90]
mov dword [rcx], eax
jmp 0x14012e807
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa8], rax
movsx eax, word [rsp + 0x24]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0xaaf
je 0x14012e826
cmp dword [rsp + 0x54], 0x765e
je 0x14012e87b
jmp 0x14012e895
mov eax, dword [rsp + 0x30]
add eax, 0xef036238
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0xb0]
call sub.WINSPOOL.DRV_FindClosePrinterChangeNotification
mov dword [rsp + 0x6c], eax
movzx eax, word [rsp + 0x20]
mov word [rsp + 0xd0], ax
mov eax, dword [rsp + 0x28]
sub eax, 0x6a2f90ff
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x70]
call sub.WINSPOOL.DRV_AbortPrinter
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x28]
add eax, 0x414abe76
mov dword [rsp + 0x28], eax
jmp 0x14012e895
movabs rax, 0x5c666735698b8d2f
mov rcx, qword [rsp + 0x58]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov eax, 0xe0
add rsp, 0xc8
ret