Function at 0x140023be0
Capabilities:
Check if file exists

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor r13d, r13d
mov eax, r9d
and dword [rsp + 0xa0], r13d
mov rdi, r8
mov ebp, r9d
test r8, r8
je 0x14003caae
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
mov rsi, qword [0x1400aad38]
xor eax, eax
mov r15, qword [rsp + 0xb8]
xor r12d, r12d
mov r14, qword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
test rsi, rsi
je 0x140023d31
and dword [r15], 0
and dword [r14], 0
mov rbx, qword [rsi + 0x150]
mov rcx, rbx
call qword [0x1400719c8]
mov edx, dword [rsp + 0x98]
mov r9d, ebp
mov rcx, qword [rsp + 0x90]
mov r8, rdi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
call rbx
mov dword [rsp + 0x34], eax
mov edx, eax
test eax, eax
je 0x14003caf6
mov ecx, 1
mov dword [rsp + 0xa0], ecx
mov eax, dword [rsp + 0x30]
add eax, dword [r15]
mov r8d, dword [rsp + 0x98]
mov dword [rsp + 0x30], eax
mov eax, r8d
sub eax, 1
je 0x140023d24
cmp eax, 1
jne 0x14003cb78
mov eax, dword [r15]
shl rax, 5
add rdi, rax
cmp dword [r14], ebp
ja 0x140023d2d
sub ebp, dword [r14]
add r12d, dword [r14]
cmp edx, 2
je 0x140023ce6
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140023c49
mov eax, dword [rsp + 0x30]
mov dword [r14], r12d
mov dword [r15], eax
cmp r12d, dword [rsp + 0xa8]
ja 0x14003cabd
test ecx, ecx
je 0x14003cbb3
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov eax, 1
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r15]
lea rdi, [rdi + rax*8]
jmp 0x140023cca
xor ebp, ebp
jmp 0x140023cd2
mov ecx, dword [rsp + 0xa0]
jmp 0x140023cea
test eax, eax
je 0x140023c1b
mov ecx, 0x6f8
jmp 0x14003cac2
mov ecx, 0x7a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
jmp 0x14003caef
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x1400a92b0]
lea r8, [0x14009cf08]
mov r9d, eax
mov edx, 0xb
mov rcx, qword [rcx + 0x10]
call fcn.14003d1e0
xor eax, eax
jmp 0x140023d13
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp dword [rsp + 0x98], 2
mov ebx, eax
jne 0x14003cb3e
add eax, 0xffffff85
cmp eax, 1
ja 0x14003cb3e
mov rdx, qword [rsp + 0x90]
mov r9d, ebp
mov qword [rsp + 0x28], r15
mov r8, rdi
mov rcx, rsi
mov qword [rsp + 0x20], r14
xor ebx, ebx
call fcn.1400615f4
test eax, eax
jne 0x14003cb6a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov ecx, dword [rsp + 0xa0]
mov edx, dword [rsp + 0x34]
test ebx, ebx
je 0x140023c9c
and dword [r15], 0
mov r13d, ebx
cmp ebx, 0x7a
je 0x140023c9c
and dword [r14], 0
jmp 0x140023c9c
mov ecx, 1
mov dword [rsp + 0xa0], ecx
jmp 0x14003cb45
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x14003cba9
test byte [rcx + 0x1c], 0x20
je 0x14003cba9
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x14009cf08]
mov edx, 0xa
call fcn.14003d1e0
mov ecx, 0x7c
jmp 0x14003cac2
test r13d, r13d
je 0x140023d0e
mov ecx, r13d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov rcx, qword [0x1400a92b0]
lea rax, [0x1400a92b0]
cmp rcx, rax
je 0x14003caef
test byte [rcx + 0x1c], 0x20
je 0x14003caef
jmp 0x14003caca