Function at 0x1400a7700
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x10a20]
mov eax, 0x10b20
call fcn.14024c240
sub rsp, rax
mov qword [rbp + 0x90], 0xfffffffffffffffe
mov qword [rsp + 0x10b68], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x10a10], rax
mov rsi, r8
mov r12, rdx
mov rbx, rcx
xor r8d, r8d
lea rdx, str.CBaseInfoAddIn::WriteAddInPrnTransInfo
lea rcx, [rsp + 0x48]
call fcn.1400075a0
nop
mov r9, r12
lea r8, str.lpcPrinterName___p
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140007780
xor edi, edi
test r12, r12
jne 0x1400a7793
mov edi, 0x80010001
mov dword [0x1403b95bc], 1
jmp 0x1400a7c9a
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x38], edi
add rbx, 0x438
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea r13, vtable.std::ios_base.0
test eax, eax
jne 0x1400a7875
lea r8d, [rax + 0x22]
mov rdx, rbx
lea rcx, [rbp + 0xa0]
call fcn.1400aa1c0
nop
cmp qword [rbp + 0x140], 0
je 0x1400a7815
lea rcx, [rbp + 0xa8]
call fcn.1400ab900
test rax, rax
jne 0x1400a7815
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rcx, [rbp + rcx + 0xa0]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400a780c
or edx, 4
xor r8d, r8d
call fcn.1400015e0
nop
lea rax, [rbp + 0x148]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xa0], rax
lea rcx, [rbp + 0xa8]
call fcn.1400aa320
nop
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xa0], rax
mov qword [rbp + 0x148], r13
lea rcx, [rbp + 0x148]
call fcn.140266564
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400aaee0
nop
cmp qword [rbp + 0x20], 0
je 0x1400a7c84
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp - 0x80]
call fcn.1400a9e80
mov r11, qword [rbp - 0x80]
movsxd rcx, dword [r11 + 4]
test byte [rbp + rcx - 0x70], 6
jne 0x1400a78d9
mov rcx, qword [rbp + rcx - 0x38]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x58]
call qword [rax + 0x50]
mov r11, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
jmp 0x1400a78e3
mov rax, qword [0x1402dbdb8]
mov r11, rdi
add eax, r11d
je 0x1400a7996
mov rcx, qword [rsp + 0x70]
movsxd rax, dword [rcx + 4]
test byte [rbp + rax - 0x80], 6
jne 0x1400a7957
movsxd rax, dword [rcx + 4]
mov rcx, qword [rbp + rax - 0x48]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
call qword [rax + 0x50]
movsxd r11, dword [rsp + 0x60]
add r11, qword [rsp + 0x58]
cmp r11, qword [0x1402dbdb8]
jne 0x1400a7957
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x70]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400a794f
or edx, 4
xor r8d, r8d
call fcn.1400015e0
mov r8d, 4
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x70]
call fcn.1400019b0
mov r8d, 4
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x70]
call fcn.1400019b0
mov r8d, 4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1400019b0
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.1400a9e80
mov r8d, 4
lea rdx, [0x1403a3314]
lea rcx, [rbp - 0x80]
call fcn.140001820
mov r8d, 4
lea rdx, [0x1403a331c]
lea rcx, [rbp - 0x80]
call fcn.140001820
inc dword [rsp + 0x30]
mov r8d, 4
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.140001820
cmp dword [rsp + 0x30], 1
jbe 0x1400a7a03
mov rdx, 0xfffffffffffffffc
lea r8d, [rdx + 6]
lea rcx, [rbp - 0x80]
call fcn.1400a9e80
mov r8d, 4
lea rdx, [0x1403a3330]
lea rcx, [rbp - 0x80]
call fcn.140001820
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x81f0]
call fcn.14024b970
mov rdx, r12
lea rcx, [rbp + 0x81f0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov r8d, 0x410
lea rdx, [rbp + 0x81f0]
lea rcx, [rbp - 0x80]
call fcn.140001820
mov rcx, qword [rsi + 8]
sub rcx, qword [rsi]
movabs rax, 0x3fe40c3aa65739d7
imul rcx
sar rdx, 0xd
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [rsp + 0x38], edx
mov r8d, 4
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x80]
call fcn.140001820
mov rbx, qword [rsi]
cmp rbx, qword [rsi + 8]
je 0x1400a7c23
nop word [rax + rax]
mov qword [rbp + 0x1d0], 7
mov qword [rbp + 0x1c8], rdi
mov word [rbp + 0x1b8], di
mov r8d, 4
lea rdx, [0x1403a3338]
lea rcx, [rbp - 0x80]
call fcn.140001820
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x8600]
call fcn.14024b970
xor edx, edx
mov r8d, 0x8000
lea rcx, [rbp + 0x8a10]
call fcn.14024b970
mov r11d, dword [rbx]
mov dword [rbp + 0x1b0], r11d
lea rdx, [rbx + 8]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x1b8]
call fcn.140001e00
mov r11d, dword [rbx + 0x30]
mov dword [rbp + 0x1e0], r11d
mov eax, dword [rbx + 0x34]
mov dword [rbp + 0x1e4], eax
lea rdx, [rbx + 0x38]
mov r8d, 0x8000
lea rcx, [rbp + 0x1e8]
call fcn.140246c50
lea rdx, [rbp + 0x1b8]
cmp qword [rbp + 0x1d0], 8
cmovae rdx, qword [rbp + 0x1b8]
lea rcx, [rbp + 0x8600]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov r11d, dword [rbp + 0x1e0]
mov dword [rsp + 0x40], r11d
mov eax, dword [rbp + 0x1e4]
mov dword [rsp + 0x34], eax
mov r8d, eax
lea rdx, [rbp + 0x1e8]
lea rcx, [rbp + 0x8a10]
call fcn.140246c50
mov r8d, 0x410
lea rdx, [rbp + 0x8600]
lea rcx, [rbp - 0x80]
call fcn.140001820
mov r8d, 4
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140001820
mov r8d, 4
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x80]
call fcn.140001820
mov r8d, dword [rsp + 0x34]
lea rdx, [rbp + 0x8a10]
lea rcx, [rbp - 0x80]
call fcn.140001820
mov r8d, 4
lea rdx, [0x1403a333c]
lea rcx, [rbp - 0x80]
call fcn.140001820
nop
cmp qword [rbp + 0x1d0], 8
jb 0x1400a7c12
mov rcx, qword [rbp + 0x1b8]
call fcn.1401026ec
add rbx, 0x8038
cmp rbx, qword [rsi + 8]
jne 0x1400a7aa0
mov r8d, 4
lea rdx, [0x1403a3334]
lea rcx, [rbp - 0x80]
call fcn.140001820
mov r8d, 4
lea rdx, [0x1403a3318]
lea rcx, [rbp - 0x80]
call fcn.140001820
lea rcx, [rbp - 0x78]
call fcn.1400ab900
test rax, rax
jne 0x1400a7c84
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x70]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400a7c7b
or edx, 4
xor r8d, r8d
call fcn.1400015e0
nop
lea rcx, [rbp + 0x28]
call fcn.1400ab050
mov qword [rbp + 0x28], r13
lea rcx, [rbp + 0x28]
call fcn.140266564
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140007780
nop
lea rcx, [rsp + 0x48]
call fcn.140007730
mov eax, edi
mov rcx, qword [rbp + 0x10a10]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x10b68]
add rsp, 0x10b20
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret