Function at 0x100002180
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 0x1000021e4
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 0x21b
ja 0x100017f7b
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
cmp rbp, r15
je 0x10000220a
lea rdx, str._NoCache
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rdi, rax
cmp rax, r15
jne 0x100017f8d
mov ecx, 0x58
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rsi, rax
cmp rax, r15
je 0x100017fad
or qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax], 0x6060
mov qword [rax + 0x40], r15
mov dword [rax + 0x50], r15d
cmp rbx, r15
je 0x10000224d
mov rcx, rbx
call sym.spoolsv.exe_PrvAllocSplStr
mov qword [rsi + 0x48], rax
cmp rax, r15
je 0x100017fbc
cmp r12, r15
je 0x100002259
cmp qword [r12 + 8], r15
jne 0x100002285
call sym.spoolsv.exe_PrvCheckLocalCall
cmp eax, r15d
jne 0x100002285
lea r8, [rsp + 0x50]
mov rdx, rbx
xor ecx, ecx
call sym.spoolsv.exe_PrvbGetDevModePerUser
cmp eax, r15d
je 0x100002285
mov rcx, qword [rsp + 0x50]
cmp rcx, r15
jne 0x100017fd3
mov r15d, dword [rsp + 0xd0]
cmp dword [rsp + 0xd8], r13d
je 0x1000119ac
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 0x10001198a
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 0x1000022ea
mov rcx, qword [rsp + 0x50]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp rbx, rbp
jne 0x10001812a
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.10001184c
cmp r13d, 2
je 0x100011a67
mov r13d, r14d
lea rcx, [0x10007f500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.1000118f0
lea rcx, [0x10007f500]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
jne 0x100018005
mov rcx, rbx
call fcn.100011b6c
mov rdi, rax
test r13d, r13d
jne 0x100018083
test rdi, rdi
jne 0x1000180b4
mov rax, qword [0x10007f2f0]
mov rdi, qword [rax]
test rdi, rdi
je 0x100011a67
cmp rdi, r14
je 0x100011a62
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.100011ab8
sub eax, 1
je 0x1000022cc
cmp eax, 1
je 0x100011a67
mov rdi, qword [rdi]
jmp 0x100011a01
mov rcx, rsi
call fcn.1000017f4
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 0x1000022ea
test byte [rax + 0x1c], 1
je 0x1000022ea
jmp 0x1000180fd
mov ecx, 0x709
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000022ff
mov rcx, rbp
call sym.spoolsv.exe_PrvAllocSplStr
mov rbx, rax
cmp rax, r15
je 0x100017f86
sub rdi, rbp
sar rdi, 1
mov word [rax + rdi*2], r15w
jmp 0x10000220a
cmp rbx, rbp
je 0x100017f86
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
jmp 0x100017f86
cmp rbx, rbp
je 0x100017fc9
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
mov rcx, rsi
call fcn.1000017f4
jmp 0x100017f86
cmp r12, r15
je 0x100017fec
mov rax, qword [r12]
mov qword [rsp + 0x58], rax
mov eax, dword [r12 + 0x10]
mov dword [rsp + 0x68], eax
jmp 0x100017ff6
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x60], rcx
lea r12, [rsp + 0x58]
jmp 0x100002285
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 0x100018035
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
je 0x10001803b
cmp r13d, 0x32
jne 0x10001804c
lea rdx, [rsp + 0x48]
mov r8, r12
mov rcx, rbx
call qword [rdi + 0x20]
mov r13d, eax
cmp r13d, 1
je 0x1000022cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0xb0]
mov ecx, eax
call fcn.10001184c
cmp r13d, 2
je 0x100011a67
mov r13d, 1
mov r14, rdi
jmp 0x1000119da
cmp rax, r14
je 0x1000119ee
lea rcx, [0x10007f500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.100041770
lea rcx, [0x10007f500]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x1000119ee
cmp rdi, r14
je 0x100011a67
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.100011ab8
cmp eax, 1
jne 0x100011a67
jmp 0x1000022cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea edx, [rdi + 0xa]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b50]
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.1000205a8
nop
jmp 0x1000022ea
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
nop
jmp 0x1000022fd