Function at 0x100001cec
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor r15d, r15d
mov r12, r8
mov rbp, rcx
mov dword [rsp + 0x44], 1
mov dword [rax + 8], 0x7b
mov rbx, rcx
mov r14, r15
mov r13d, r15d
mov qword [rax - 0x58], r15
cmp rcx, r15
je 0x100001d50
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 0x21b
ja 0x100017a1f
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
cmp rbp, r15
je 0x100001d76
lea rdx, str._NoCache
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rdi, rax
cmp rax, r15
jne 0x100017a31
mov ecx, 0x58
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rsi, rax
cmp rax, r15
je 0x100017a51
or qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax], 0x6060
mov qword [rax + 0x40], r15
mov dword [rax + 0x50], r15d
cmp rbx, r15
je 0x100001db9
mov rcx, rbx
call sym.spoolsv.exe_PrvAllocSplStr
mov qword [rsi + 0x48], rax
cmp rax, r15
je 0x100017a60
cmp r12, r15
je 0x100001dc5
cmp qword [r12 + 8], r15
jne 0x100001df1
call sym.spoolsv.exe_PrvCheckLocalCall
cmp eax, r15d
jne 0x100001df1
lea r8, [rsp + 0x50]
mov rdx, rbx
xor ecx, ecx
call sym.spoolsv.exe_PrvbGetDevModePerUser
cmp eax, r15d
je 0x100001df1
mov rcx, qword [rsp + 0x50]
cmp rcx, r15
jne 0x100017a77
mov r15d, dword [rsp + 0xd0]
cmp dword [rsp + 0xd8], r13d
je 0x100011b6c
mov rdi, qword [0x10007f2f0]
mov r9, qword [rsp + 0xc8]
lea rdx, [rsp + 0x48]
mov r8, r12
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call qword [rdi + 0x1e8]
mov r13d, eax
cmp eax, 1
jne 0x100011b4a
mov qword [rsi + 8], rdi
mov rax, qword [rsp + 0x48]
mov edi, dword [rsp + 0x44]
mov qword [rsi + 0x10], rax
mov rax, qword [rsp + 0xb8]
mov qword [rax], rsi
jmp 0x100001e56
mov rcx, qword [rsp + 0x50]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp rbx, rbp
jne 0x100017bce
mov eax, edi
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0xb0]
mov ecx, eax
call fcn.100011a40
cmp r13d, 2
je 0x100011c27
mov r13d, r14d
lea rcx, [0x10007f500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.100011ab0
lea rcx, [0x10007f500]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
jne 0x100017aa9
mov rcx, rbx
call fcn.100011d40
mov rdi, rax
test r13d, r13d
jne 0x100017b27
test rdi, rdi
jne 0x100017b58
mov rax, qword [0x10007f2f0]
mov rdi, qword [rax]
test rdi, rdi
je 0x100011c27
cmp rdi, r14
je 0x100011c22
mov rcx, qword [rdi + 8]
lea rdx, str.win32spl.dll
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov dword [rsp + 0x30], r15d
mov rdx, rbp
test eax, eax
mov rax, qword [rsp + 0xc8]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
cmovne rdx, rbx
mov r9, r12
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.100011c80
sub eax, 1
je 0x100001e38
cmp eax, 1
je 0x100011c27
mov rdi, qword [rdi]
jmp 0x100011bc1
mov rcx, rsi
call fcn.100001100
mov ecx, dword [rsp + 0xb0]
mov eax, 0x709
cmp ecx, 0x7b
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
mov rax, qword [0x10007f250]
lea rcx, [0x10007f250]
cmp rax, rcx
je 0x100001e56
test byte [rax + 0x1c], 1
je 0x100001e56
jmp 0x100017ba1
mov ecx, 0x709
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100001e6b
mov rcx, rbp
call sym.spoolsv.exe_PrvAllocSplStr
mov rbx, rax
cmp rax, r15
je 0x100017a2a
sub rdi, rbp
sar rdi, 1
mov word [rax + rdi*2], r15w
jmp 0x100001d76
cmp rbx, rbp
je 0x100017a2a
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
jmp 0x100017a2a
cmp rbx, rbp
je 0x100017a6d
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
mov rcx, rsi
call fcn.100001100
jmp 0x100017a2a
cmp r12, r15
je 0x100017a90
mov rax, qword [r12]
mov qword [rsp + 0x58], rax
mov eax, dword [r12 + 0x10]
mov dword [rsp + 0x68], eax
jmp 0x100017a9a
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x60], rcx
lea r12, [rsp + 0x58]
jmp 0x100001df1
mov r9, qword [rsp + 0xc8]
lea rdx, [rsp + 0x48]
mov r8, r12
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call qword [rdi + 0x1e8]
mov r13d, eax
test eax, eax
jne 0x100017ad9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
je 0x100017adf
cmp r13d, 0x32
jne 0x100017af0
lea rdx, [rsp + 0x48]
mov r8, r12
mov rcx, rbx
call qword [rdi + 0x20]
mov r13d, eax
cmp r13d, 1
je 0x100001e38
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0xb0]
mov ecx, eax
call fcn.100011a40
cmp r13d, 2
je 0x100011c27
mov r13d, 1
mov r14, rdi
jmp 0x100011b9a
cmp rax, r14
je 0x100011bae
lea rcx, [0x10007f500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.100040d30
lea rcx, [0x10007f500]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x100011bae
cmp rdi, r14
je 0x100011c27
mov rax, qword [rsp + 0xc8]
mov dword [rsp + 0x30], r15d
lea r8, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov r9, r12
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.100011c80
cmp eax, 1
jne 0x100011c27
jmp 0x100001e38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea edx, [rdi + 0xa]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100078b80]
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.10001ff24
nop
jmp 0x100001e56
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
nop
jmp 0x100001e69