Function at 0x100002150
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 0x1000021b4
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 0x21b
ja 0x100018234
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
cmp rbp, r15
je 0x1000021da
lea rdx, str._NoCache
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rdi, rax
cmp rax, r15
jne 0x100018246
mov ecx, 0x58
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rsi, rax
cmp rax, r15
je 0x100018266
or qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax], 0x6060
mov qword [rax + 0x40], r15
mov dword [rax + 0x50], r15d
cmp rbx, r15
je 0x10000221d
mov rcx, rbx
call sym.spoolsv.exe_PrvAllocSplStr
mov qword [rsi + 0x48], rax
cmp rax, r15
je 0x100018275
cmp r12, r15
je 0x100002229
cmp qword [r12 + 8], r15
jne 0x100002255
call sym.spoolsv.exe_PrvCheckLocalCall
cmp eax, r15d
jne 0x100002255
lea r8, [rsp + 0x50]
mov rdx, rbx
xor ecx, ecx
call sym.spoolsv.exe_PrvbGetDevModePerUser
cmp eax, r15d
je 0x100002255
mov rcx, qword [rsp + 0x50]
cmp rcx, r15
jne 0x10001828c
mov r15d, dword [rsp + 0xd0]
cmp dword [rsp + 0xd8], r13d
je 0x1000117ac
mov rdi, qword [0x1000832b0]
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 0x10001178a
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 0x1000022ba
mov rcx, qword [rsp + 0x50]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp rbx, rbp
jne 0x1000183e3
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.100011658
cmp r13d, 2
je 0x100011867
mov r13d, r14d
lea rcx, [0x1000834b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.1000116f0
lea rcx, [0x1000834b8]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
jne 0x1000182be
mov rcx, rbx
call fcn.10001196c
mov rdi, rax
test r13d, r13d
jne 0x10001833c
test rdi, rdi
jne 0x10001836d
mov rax, qword [0x1000832b0]
mov rdi, qword [rax]
test rdi, rdi
je 0x100011867
cmp rdi, r14
je 0x100011862
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.1000118b8
sub eax, 1
je 0x10000229c
cmp eax, 1
je 0x100011867
mov rdi, qword [rdi]
jmp 0x100011801
mov rcx, rsi
call fcn.1000017d4
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 [0x100083210]
lea rcx, [0x100083210]
cmp rax, rcx
je 0x1000022ba
test byte [rax + 0x1c], 1
je 0x1000022ba
jmp 0x1000183b6
mov ecx, 0x709
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000022cf
mov rcx, rbp
call sym.spoolsv.exe_PrvAllocSplStr
mov rbx, rax
cmp rax, r15
je 0x10001823f
sub rdi, rbp
sar rdi, 1
mov word [rax + rdi*2], r15w
jmp 0x1000021da
cmp rbx, rbp
je 0x10001823f
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
jmp 0x10001823f
cmp rbx, rbp
je 0x100018282
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
mov rcx, rsi
call fcn.1000017d4
jmp 0x10001823f
cmp r12, r15
je 0x1000182a5
mov rax, qword [r12]
mov qword [rsp + 0x58], rax
mov eax, dword [r12 + 0x10]
mov dword [rsp + 0x68], eax
jmp 0x1000182af
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x60], rcx
lea r12, [rsp + 0x58]
jmp 0x100002255
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 0x1000182ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
je 0x1000182f4
cmp r13d, 0x32
jne 0x100018305
lea rdx, [rsp + 0x48]
mov r8, r12
mov rcx, rbx
call qword [rdi + 0x20]
mov r13d, eax
cmp r13d, 1
je 0x10000229c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0xb0]
mov ecx, eax
call fcn.100011658
cmp r13d, 2
je 0x100011867
mov r13d, 1
mov r14, rdi
jmp 0x1000117da
cmp rax, r14
je 0x1000117ee
lea rcx, [0x1000834b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.100044180
lea rcx, [0x1000834b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x1000117ee
cmp rdi, r14
je 0x100011867
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.1000118b8
cmp eax, 1
jne 0x100011867
jmp 0x10000229c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100083210]
lea edx, [rdi + 0xe]
mov rcx, qword [rcx + 0x10]
lea r8, [0x10007d0d0]
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.1000224cc
nop
jmp 0x1000022ba
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
nop
jmp 0x1000022cd