Function at 0x100002160
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 0x1000021c4
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 0x21b
ja 0x100017fee
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
cmp rbp, r15
je 0x1000021ea
lea rdx, str._NoCache
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rdi, rax
cmp rax, r15
jne 0x100018000
mov ecx, 0x58
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rsi, rax
cmp rax, r15
je 0x100018020
or qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax], 0x6060
mov qword [rax + 0x40], r15
mov dword [rax + 0x50], r15d
cmp rbx, r15
je 0x10000222d
mov rcx, rbx
call sym.spoolsv.exe_PrvAllocSplStr
mov qword [rsi + 0x48], rax
cmp rax, r15
je 0x10001802f
cmp r12, r15
je 0x100002239
cmp qword [r12 + 8], r15
jne 0x100002265
call sym.spoolsv.exe_PrvCheckLocalCall
cmp eax, r15d
jne 0x100002265
lea r8, [rsp + 0x50]
mov rdx, rbx
xor ecx, ecx
call sym.spoolsv.exe_PrvbGetDevModePerUser
cmp eax, r15d
je 0x100002265
mov rcx, qword [rsp + 0x50]
cmp rcx, r15
jne 0x100018046
mov r15d, dword [rsp + 0xd0]
cmp dword [rsp + 0xd8], r13d
je 0x100011a10
mov rdi, qword [0x1000802f0]
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 0x1000119ee
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 0x1000022ca
mov rcx, qword [rsp + 0x50]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp rbx, rbp
jne 0x10001819d
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.1000118bc
cmp r13d, 2
je 0x100011acb
mov r13d, r14d
lea rcx, [0x100080500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.100011954
lea rcx, [0x100080500]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
jne 0x100018078
mov rcx, rbx
call fcn.100011be0
mov rdi, rax
test r13d, r13d
jne 0x1000180f6
test rdi, rdi
jne 0x100018127
mov rax, qword [0x1000802f0]
mov rdi, qword [rax]
test rdi, rdi
je 0x100011acb
cmp rdi, r14
je 0x100011ac6
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.100011b20
sub eax, 1
je 0x1000022ac
cmp eax, 1
je 0x100011acb
mov rdi, qword [rdi]
jmp 0x100011a65
mov rcx, rsi
call fcn.1000017e8
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 [0x100080250]
lea rcx, [0x100080250]
cmp rax, rcx
je 0x1000022ca
test byte [rax + 0x1c], 1
je 0x1000022ca
jmp 0x100018170
mov ecx, 0x709
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000022df
mov rcx, rbp
call sym.spoolsv.exe_PrvAllocSplStr
mov rbx, rax
cmp rax, r15
je 0x100017ff9
sub rdi, rbp
sar rdi, 1
mov word [rax + rdi*2], r15w
jmp 0x1000021ea
cmp rbx, rbp
je 0x100017ff9
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
jmp 0x100017ff9
cmp rbx, rbp
je 0x10001803c
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
mov rcx, rsi
call fcn.1000017e8
jmp 0x100017ff9
cmp r12, r15
je 0x10001805f
mov rax, qword [r12]
mov qword [rsp + 0x58], rax
mov eax, dword [r12 + 0x10]
mov dword [rsp + 0x68], eax
jmp 0x100018069
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x68], r15d
mov qword [rsp + 0x60], rcx
lea r12, [rsp + 0x58]
jmp 0x100002265
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 0x1000180a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
je 0x1000180ae
cmp r13d, 0x32
jne 0x1000180bf
lea rdx, [rsp + 0x48]
mov r8, r12
mov rcx, rbx
call qword [rdi + 0x20]
mov r13d, eax
cmp r13d, 1
je 0x1000022ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0xb0]
mov ecx, eax
call fcn.1000118bc
cmp r13d, 2
je 0x100011acb
mov r13d, 1
mov r14, rdi
jmp 0x100011a3e
cmp rax, r14
je 0x100011a52
lea rcx, [0x100080500]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.1000417f0
lea rcx, [0x100080500]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x100011a52
cmp rdi, r14
je 0x100011acb
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.100011b20
cmp eax, 1
jne 0x100011acb
jmp 0x1000022ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x100080250]
lea edx, [rdi + 0xa]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b60]
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.100020618
nop
jmp 0x1000022ca
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
nop
jmp 0x1000022dd