Function at 0x100002170
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 0x1000021d4
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 0x21b
ja 0x100017ea8
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
cmp rbp, r15
je 0x1000021fa
lea rdx, str._NoCache
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rdi, rax
cmp rax, r15
jne 0x100017eba
mov ecx, 0x58
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rsi, rax
cmp rax, r15
je 0x100017eda
or qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax], 0x6060
mov qword [rax + 0x40], r15
mov dword [rax + 0x50], r15d
cmp rbx, r15
je 0x10000223d
mov rcx, rbx
call sym.spoolsv.exe_PrvAllocSplStr
mov qword [rsi + 0x48], rax
cmp rax, r15
je 0x100017ee9
cmp r12, r15
je 0x100002249
cmp qword [r12 + 8], r15
jne 0x100002275
call sym.spoolsv.exe_PrvCheckLocalCall
cmp eax, r15d
jne 0x100002275
lea r8, [rsp + 0x50]
mov rdx, rbx
xor ecx, ecx
call sym.spoolsv.exe_PrvbGetDevModePerUser
cmp eax, r15d
je 0x100002275
mov rcx, qword [rsp + 0x50]
cmp rcx, r15
jne 0x100017f00
mov r15d, dword [rsp + 0xd0]
cmp dword [rsp + 0xd8], r13d
je 0x100011820
mov rdi, qword [0x1000802b0]
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 0x1000117fe
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 0x1000022da
mov rcx, qword [rsp + 0x50]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp rbx, rbp
jne 0x100018057
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.1000116cc
cmp r13d, 2
je 0x1000118db
mov r13d, r14d
lea rcx, [0x1000804b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.100011764
lea rcx, [0x1000804b8]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
jne 0x100017f32
mov rcx, rbx
call fcn.1000119f0
mov rdi, rax
test r13d, r13d
jne 0x100017fb0
test rdi, rdi
jne 0x100017fe1
mov rax, qword [0x1000802b0]
mov rdi, qword [rax]
test rdi, rdi
je 0x1000118db
cmp rdi, r14
je 0x1000118d6
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.100011930
sub eax, 1
je 0x1000022bc
cmp eax, 1
je 0x1000118db
mov rdi, qword [rdi]
jmp 0x100011875
mov rcx, rsi
call fcn.1000017e0
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 [0x100080210]
lea rcx, [0x100080210]
cmp rax, rcx
je 0x1000022da
test byte [rax + 0x1c], 1
je 0x1000022da
jmp 0x10001802a
mov ecx, 0x709
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000022ef
mov rcx, rbp
call sym.spoolsv.exe_PrvAllocSplStr
mov rbx, rax
cmp rax, r15
je 0x100017eb3
sub rdi, rbp
sar rdi, 1
mov word [rax + rdi*2], r15w
jmp 0x1000021fa
cmp rbx, rbp
je 0x100017eb3
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
jmp 0x100017eb3
cmp rbx, rbp
je 0x100017ef6
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
mov rcx, rsi
call fcn.1000017e0
jmp 0x100017eb3
cmp r12, r15
je 0x100017f19
mov rax, qword [r12]
mov qword [rsp + 0x58], rax
mov eax, dword [r12 + 0x10]
mov dword [rsp + 0x68], eax
jmp 0x100017f23
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x60], rcx
lea r12, [rsp + 0x58]
jmp 0x100002275
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 0x100017f62
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
je 0x100017f68
cmp r13d, 0x32
jne 0x100017f79
lea rdx, [rsp + 0x48]
mov r8, r12
mov rcx, rbx
call qword [rdi + 0x20]
mov r13d, eax
cmp r13d, 1
je 0x1000022bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0xb0]
mov ecx, eax
call fcn.1000116cc
cmp r13d, 2
je 0x1000118db
mov r13d, 1
mov r14, rdi
jmp 0x10001184e
cmp rax, r14
je 0x100011862
lea rcx, [0x1000804b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.100041860
lea rcx, [0x1000804b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x100011862
cmp rdi, r14
je 0x1000118db
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.100011930
cmp eax, 1
jne 0x1000118db
jmp 0x1000022bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080210]
lea edx, [rdi + 0xa]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079bf0]
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.1000205cc
nop
jmp 0x1000022da
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
nop
jmp 0x1000022ed