Function at 0x140005f10
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14004f678]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rcx
mov qword [rbp - 0x80], rcx
xor r15d, r15d
mov dword [rsp + 0x24], r15d
lea rdx, [rsp + 0x24]
xor ecx, ecx
call sub.WINSPOOL.DRV_Ordinal_203
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea rcx, vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____cdecl___void____ptr64__unsigned_long_int__void____ptr64___void____ptr64__int__struct_std::_Ph_1__const____ptr64___int__wchar_t____ptr64_.0
mov qword [rbp + 0x40], rcx
mov rcx, qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbp + 0x48], rcx
movzx ecx, byte [rsp + 0x20]
mov byte [rbp + 0x50], cl
mov dword [rbp + 0x54], r15d
mov qword [rbp + 0x58], rax
lea rax, [rbp + 0x40]
mov qword [rbp + 0x78], rax
mov qword [rbp + 0xb8], r15
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x40]
call qword [method.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__int____cdecl___void____ptr64__unsigned_long_int__void____ptr64___void____ptr64__int__struct_std::_Ph_1__const____ptr64___int__wchar_t____ptr64_.virtual_0]
mov qword [rbp + 0xb8], rax
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x140005fd2
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov ecx, r15d
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0xc0], r15
test rcx, rcx
je 0x140005ff2
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x78], r15
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006091
mov edi, dword [rsp + 0x24]
add rdi, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop
mov rcx, qword [rbp + 0xc0]
mov qword [rbp + 0xc0], rax
test rcx, rcx
je 0x140006057
mov qword [rsp + 0x48], rcx
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x14000642a
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x10]
mov rax, qword [rbp + 0xc0]
test rax, rax
jne 0x14000606d
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, r15d
jmp 0x1400063ae
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.WINSPOOL.DRV_Ordinal_203
test eax, eax
jne 0x140006091
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140006091
mov ebx, r15d
jmp 0x1400063ae
mov dword [rsp + 0x30], r15d
lea rax, [0x1400128c8]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x6c], 2
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], 2
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140001ac0
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0xd0]
call fcn.140001270
nop
mov rcx, qword [rbp + 0x110]
test rcx, rcx
je 0x14000615e
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000615e
imul rsi, rax, 0x88
lea rbx, [rsi + rcx]
mov rdi, rcx
cmp rcx, rbx
je 0x140006135
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [r14 + 0x20]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14000612e
add rdi, 0x88
cmp rdi, rbx
jne 0x140006110
mov rcx, qword [rbp + 0x110]
test rdi, rdi
je 0x14000615e
lea rax, [rsi + rcx]
cmp rdi, rax
je 0x14000615e
mov ecx, 0x70a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [rdi + 0x7c]
shr ebx, 2
not ebx
and ebx, 1
jmp 0x14000635c
lea rdi, [rbp - 0x50]
xor eax, eax
mov ecx, 0x88
rep stosb byte [rdi], al
lea rax, str.NT_EMF_1.006
mov qword [rbp], rax
mov rax, qword [r14 + 0x20]
mov qword [rbp - 0x30], rax
mov rax, qword [r14 + 0x18]
mov qword [rbp - 0x38], rax
mov rax, qword [r14 + 0x28]
mov qword [rbp - 0x48], rax
lea rax, str.WinPrint
mov qword [rbp - 8], rax
mov dword [rbp + 0x18], 0x41
lea r8, [rbp - 0x50]
mov edx, 2
xor ecx, ecx
call sub.WINSPOOL.DRV_AddPrinterW
mov rsi, rax
test rax, rax
jne 0x1400061d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70a
jne 0x1400061cd
lea ebx, [rsi + 1]
jmp 0x14000635c
mov ebx, r15d
jmp 0x14000635c
lea rax, [sub.WINSPOOL.DRV_ClosePrinter]
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x68], rsi
lea rax, [rsp + 0x40]
mov qword [rbp - 0x60], rax
mov byte [rbp - 0x58], 1
mov ecx, 0x20
call fcn.140015184
mov rdi, rax
mov qword [rsp + 0x28], rax
mov ebx, 1
test rax, rax
je 0x140006233
mov rax, qword [rsp + 0x40]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov dword [rdi + 8], ebx
mov dword [rdi + 0xc], ebx
lea rcx, vtable.std::_Ref_count_resource_void____ptr64__int____cdecl___void____ptr64__.0
mov qword [rdi], rcx
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rsi
jmp 0x140006236
mov rdi, r15
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], rdi
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x38], r15d
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
lea rdx, str.DefaultSpoolDirectory
mov rcx, rsi
call fcn.140004ff0
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x120]
call fcn.140001360
mov rax, qword [rbp + 0x160]
test rax, rax
je 0x1400062dc
cmp dword [rsp + 0x34], 1
jne 0x1400062dc
mov r9d, dword [rsp + 0x38]
mov r8, rax
mov rdx, qword [r14 + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140003120
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, r15d
test eax, eax
sete bl
test eax, eax
jne 0x1400062d3
mov rax, qword [rbp + 0xc0]
test rax, rax
je 0x1400062d3
cmp word [rax], 0
je 0x1400062d3
mov rcx, rax
call sub.WINSPOOL.DRV_Ordinal_204
mov rax, qword [rbp + 0x160]
jmp 0x1400062df
mov ebx, r15d
test rax, rax
je 0x140006304
mov qword [rsp + 0x28], rax
mov rcx, qword [rbp + 0x158]
test rcx, rcx
je 0x140006430
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x158]
test rcx, rcx
je 0x14000632a
mov rax, qword [rcx]
lea rdx, [rbp + 0x120]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x158], r15
test rdi, rdi
je 0x14000635c
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14000635c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x14000635c
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rax, qword [rbp + 0x110]
test rax, rax
je 0x140006388
mov qword [rsp + 0x28], rax
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x140006436
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x1400063ae
mov rax, qword [rcx]
lea rdx, [rbp + 0xd0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x108], r15
mov rax, qword [rbp + 0xc0]
test rax, rax
je 0x1400063d6
mov qword [rsp + 0x28], rax
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x140006424
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x1400063f6
mov rdi, qword [rcx]
lea rax, [rbp + 0x80]
cmp rcx, rax
setne dl
call qword [rdi + 0x20]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400153e0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140014ea8
nop
call fcn.140014ea8
nop
call fcn.140014ea8
nop
call fcn.140014ea8
int3