Function at 0x1401b3460
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x3d8
mov byte [rsp + 0x60], 1
mov dword [rsp + 0x44], 0x60ab6fda
movabs rax, 0x5414dc873ea2c309
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xc0], rax
movabs rax, 0x5414dc873ea2c309
cmp qword [rsp + 0xc0], rax
je 0x1401b34ad
jmp 0x1401b3a01
mov eax, dword [rsp + 0x44]
sar eax, 3
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x79f5b414
jle 0x1401b352c
mov rcx, qword [rsp + 0xf8]
call sub.WINSPOOL.DRV_AbortPrinter
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x3e0]
mov dword [rsp + 0x4c], eax
movabs rax, 0x4024de805cd25395
cmp qword [rsp + 0x50], rax
jle 0x1401b352c
mov eax, dword [rsp + 0x3e0]
mov dword [rsp + 0x4c], eax
lea r9, [rsp + 0x4c]
mov r8d, 0x8f
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0xe0]
call sub.WINSPOOL.DRV_ReadPrinter
mov dword [rsp + 0x70], eax
mov dx, 0xdd
mov cx, 0x86
call fcn.1401b3400
nop
mov eax, dword [rsp + 0x3e0]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x3e0]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa8], rax
movabs rax, 0x5414dc873ea2c309
cmp qword [rsp + 0xa8], rax
je 0x1401b358c
movabs rax, 0x7722670f11b41a29
cmp qword [rsp + 0xa8], rax
je 0x1401b357c
jmp 0x1401b3618
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x3e0], eax
jmp 0x1401b3618
lea rax, [rsp + 0x44]
mov qword [rsp + 0x58], rax
movabs rax, 0x69a709946e7ed2ad
mov rcx, qword [rsp + 0x50]
xor rcx, rax
mov rax, rcx
movabs rcx, 0xa92055d9fcf98f5
cmp rax, rcx
jg 0x1401b3618
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0x8859e85a
je 0x1401b35d8
cmp dword [rsp + 0x7c], 0xd2aaa407
je 0x1401b3608
jmp 0x1401b3618
lea r9, [rsp + 0x70]
mov r8d, 0x5b
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x118]
call sub.WINSPOOL.DRV_WritePrinter
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x44]
shl eax, 1
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
jmp 0x1401b3618
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
sub eax, 0x71560c11
mov dword [rsp + 0x44], eax
mov eax, 0x958
mov word [rsp + 0x40], ax
movabs rax, 0x5295a34931716529
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
movabs rcx, 0x641ccbe0220fe108
cmp rax, rcx
je 0x1401b388b
mov byte [rsp + 0x48], 0x22
mov eax, dword [rsp + 0x3e0]
mov ecx, dword [rsp + 0x6c]
or ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x64]
mov edx, dword [rsp + 0x4c]
and edx, ecx
mov ecx, edx
cmp eax, ecx
jae 0x1401b3689
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
add eax, 0x779bbac4
mov dword [rsp + 0x44], eax
mov ecx, 0xa4
call fcn.1401b3150
nop
movabs rax, 0x3e8828242db9b8bb
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xc8], rax
movabs rax, 0x49f254f7594fde2e
cmp qword [rsp + 0xc8], rax
je 0x1401b36ce
jmp 0x1401b3798
lea rcx, [rsp + 0x160]
call qword [sym.imp.COMDLG32.dll_ChooseColorA]
mov dword [rsp + 0x8c], eax
mov eax, dword [rsp + 0x3e0]
mov ecx, dword [rsp + 0x4c]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x64]
mov edx, dword [rsp + 0x6c]
add edx, ecx
mov ecx, edx
cmp eax, ecx
ja 0x1401b3770
movzx eax, word [rsp + 0x40]
sub eax, 0x33c
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0x70b
je 0x1401b372c
jmp 0x1401b3760
movzx eax, byte [rsp + 0x48]
and eax, 0xa
mov rcx, qword [rsp + 0xb0]
mov byte [rcx], al
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x3e0], eax
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.COMDLG32.dll_ChooseFontA]
mov dword [rsp + 0xb8], eax
jmp 0x1401b3770
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
add eax, 0x12ee3505
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x290]
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x44]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
jmp 0x1401b37fa
mov eax, dword [rsp + 0x44]
sub eax, 0x2c699240
mov rcx, qword [rsp + 0x58]
cmp eax, dword [rcx]
je 0x1401b37fa
movzx eax, word [rsp + 0x40]
cmp eax, 0x121
jne 0x1401b37e3
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x3e0], eax
mov eax, dword [rsp + 0x44]
add eax, 0x29ec6b05
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
lea rcx, [rsp + 0x220]
call qword [sym.imp.COMDLG32.dll_ChooseFontA]
mov dword [rsp + 0x70], eax
mov eax, 0x219a
mov word [rsp + 0x78], ax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x120], rax
mov byte [rsp + 0x61], 0x49
lea rax, [rsp + 0x48]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x128], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x138], rax
mov eax, dword [rsp + 0x64]
movzx ecx, al
mov eax, dword [rsp + 0x4c]
shl eax, cl
mov dword [rsp + 0x6c], eax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x140], rax
movzx eax, word [rsp + 0x78]
mov word [rsp + 0x84], ax
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0xd8]
movzx ecx, byte [rcx]
sar eax, cl
mov byte [rsp + 0x60], al
movzx eax, byte [rsp + 0x61]
mov byte [rsp + 0x74], al
jmp 0x1401b3929
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
mov dword [rsp + 0xbc], eax
mov eax, dword [rsp + 0x44]
xor eax, 0x2dea2e1e
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0x32b22c7e
je 0x1401b391b
cmp dword [rsp + 0x80], 0x3ed32fec
je 0x1401b38ea
jmp 0x1401b3929
movzx eax, word [rsp + 0x40]
sar eax, 0xa
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x330]
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
mov dword [rsp + 0x70], eax
movzx edx, word [rsp + 0x40]
movzx ecx, word [rsp + 0x40]
call fcn.1401b3400
nop
jmp 0x1401b3929
mov eax, dword [rsp + 0x44]
shl eax, 0x1d
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x98], rax
movabs rax, 0x13f8c2a863acba5b
cmp qword [rsp + 0x98], rax
je 0x1401b3967
movabs rax, 0x31c47309c040473c
cmp qword [rsp + 0x98], rax
je 0x1401b39e5
jmp 0x1401b39ff
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
add eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
sub eax, 0x37291b04
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xe8], rax
movabs rax, 0x664b0e1e5fe98d48
cmp qword [rsp + 0xe8], rax
je 0x1401b39c6
jmp 0x1401b39d8
mov eax, dword [rsp + 0x44]
add eax, 0x1c36406a
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
jmp 0x1401b39e3
mov ecx, 0x2c
call fcn.1401b3150
nop
jmp 0x1401b39ff
movabs rax, 0x7bfba80c3b64886c
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
jmp 0x1401b3a7b
mov edx, 0x82
mov rcx, qword [rsp + 0xf0]
call sub.WINSPOOL.DRV_ConnectToPrinterDlg
mov qword [rsp + 0xf8], rax
mov eax, dword [rsp + 0x3e0]
mov dword [rsp + 0x4c], eax
mov r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x90]
call sub.WINSPOOL.DRV_ConfigurePortA
mov dword [rsp + 0x8c], eax
mov ecx, dword [rsp + 0x4c]
call fcn.1401b3460
movabs rax, 0x3d6c7803a52799e0
mov rcx, qword [rsp + 0x50]
or rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dx, 0x8d
mov cx, 0xa8
call fcn.1401b3400
nop
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x108], rax
movabs rax, 0x548fd106fba812a4
cmp qword [rsp + 0x108], rax
je 0x1401b3a9e
jmp 0x1401b3aa9
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x3e0], eax
mov ecx, dword [rsp + 0x3e0]
call fcn.1401b3460
nop
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x110], rax
movabs rax, 0x1522e0c299c310bb
cmp qword [rsp + 0x110], rax
je 0x1401b3adb
jmp 0x1401b3b37
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xbf
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x158]
call sub.WINSPOOL.DRV_GetPrinterDataExA
mov dword [rsp + 0x4c], eax
movabs rax, 0x2c46568e3de5153a
mov rcx, qword [rsp + 0x50]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
movabs rax, 0x78ace89cb7ead44e
cmp qword [rsp + 0x50], rax
jle 0x1401b3b4d
jmp 0x1401b3bd0
movabs rax, 0x4d8642ab34198a5c
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
movabs rcx, 0x255734998368de1a
cmp rax, rcx
jge 0x1401b3bd0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xf9
lea r9, [rsp + 0xa0]
mov r8d, 0x84
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x118]
call sub.WINSPOOL.DRV_GetFormA
mov dword [rsp + 0x68], eax
mov ecx, dword [rsp + 0x3e0]
call fcn.1401b3460
movabs rax, 0x394d637e555f9015
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x3e0], 0x2376e72f
mov eax, 0xf7
add rsp, 0x3d8
ret