Function at 0x140063f28
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r13d, r13d
mov r12d, 1
mov rbx, r8
mov rsi, rdx
mov r15, rcx
mov edi, r12d
test r8, r8
je 0x1400642ea
mov ecx, 0x400
mov edi, r13d
mov dword [rbp + 0x50], ecx
call fcn.14000df2c
lea rcx, [rbp + 0x58]
mov qword [rbp + 0x58], r13
mov r14, rax
call fcn.1400635f8
mov r9d, dword [rbp + 0x50]
lea rax, [rbp + 0x50]
mov r8, r14
mov qword [rsp + 0x20], rax
lea edx, [r12 + 4]
mov qword [rbp + 0x58], r14
mov rcx, r15
call sym.spoolsv.exe_PrvGetPrinterW
lea rdx, [0x1400c82a8]
mov rcx, r14
test eax, eax
jne 0x140064022
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x1400641a1
lea rcx, [rbp + 0x58]
call fcn.1400635f8
mov eax, dword [rbp + 0x50]
add eax, 0x64
mov ecx, eax
mov dword [rbp + 0x50], eax
call fcn.14000df2c
lea rcx, [rbp + 0x58]
mov r14, rax
call fcn.1400635f8
mov qword [rbp + 0x58], r14
test r14, r14
je 0x1400641a1
mov r9d, dword [rbp + 0x50]
lea rax, [rbp + 0x50]
mov r8, r14
mov qword [rsp + 0x20], rax
lea edx, [r12 + 4]
mov rcx, r15
call sym.spoolsv.exe_PrvGetPrinterW
mov rcx, r14
test eax, eax
je 0x1400641a1
lea rdx, [0x1400c82a8]
test r14, r14
mov r15, r13
cmovne r15, rcx
mov rcx, qword [0x1400c82a8]
cmp rcx, rdx
je 0x14006405f
test byte [rcx + 0x44], 0x80
je 0x14006405f
mov rax, qword [r15 + 8]
lea r8, [0x1400bd1d0]
mov rcx, qword [rcx + 0x38]
mov edx, 0xa
mov r9, rsi
mov qword [rsp + 0x20], rax
call fcn.140072b08
or dword [rsp + 0x28], 0xffffffff
xor edx, edx
mov r8, qword [r15 + 8]
or r9d, 0xffffffff
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 0x7f]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
jne 0x1400640ca
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x1400642de
test byte [rcx + 0x44], 0x80
je 0x1400642de
mov edx, 0xb
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400bd1d0]
mov r9, rbx
mov qword [rsp + 0x20], rsi
call fcn.140072b08
jmp 0x1400642de
mov r14, qword [r15 + 8]
mov rcx, r14
jmp 0x14006410e
lea r15, [rax + 2]
cmp word [r15], r13w
je 0x140064124
or dword [rsp + 0x28], 0xffffffff
xor edx, edx
or r9d, 0xffffffff
mov word [rax], r13w
mov r8, r14
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 0x7f]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
je 0x140064176
mov r14, r15
mov rcx, r15
mov edx, 0x2c
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
jne 0x1400640d3
or dword [rsp + 0x28], 0xffffffff
xor edx, edx
or r9d, 0xffffffff
mov qword [rsp + 0x20], rbx
mov r8, r14
lea ecx, [rdx + 0x7f]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
jne 0x1400641a1
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x1400642de
test byte [rcx + 0x44], 0x80
je 0x1400642de
mov edx, 0xc
jmp 0x1400640ad
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x1400642de
test byte [rcx + 0x44], 0x80
je 0x1400642de
mov edx, 0xd
jmp 0x1400640ad
mov qword [rsp + 0x30], r13
mov r15d, 0x40000000
mov edx, r15d
mov dword [rsp + 0x28], 0x8000000
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov r8d, r12d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140064299
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x140064225
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], 0xc000100
mov r8d, r12d
mov edx, r15d
mov dword [rsp + 0x20], r12d
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140064299
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 5
je 0x140064279
mov edi, r12d
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x1400642e1
test byte [rcx + 0x44], 0x20
je 0x1400642e1
mov edx, 0xf
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400bd1d0]
mov r9, rbx
mov qword [rsp + 0x20], rsi
call fcn.140072b08
jmp 0x1400642e1
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x1400642e1
test byte [rcx + 0x44], 0x20
je 0x1400642e1
mov edx, 0x10
jmp 0x14006425f
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x1400642cf
test byte [rcx + 0x44], 0x20
je 0x1400642cf
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400bd1d0]
mov edx, 0xe
mov qword [rsp + 0x20], rsi
mov r9, rbx
call fcn.140072b08
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov edi, r12d
lea rcx, [rbp + 0x58]
call fcn.1400635f8
mov rbx, qword [rsp + 0x80]
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret