Function at 0x14005f440
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov r15d, r9d
and dword [rsp + 0xa8], ebp
mov r13d, edx
mov r12d, r9d
test r8, r8
jne 0x14005f492
test r9d, r9d
je 0x14005f492
mov ecx, 0x6f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14005f681
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
mov rbx, qword [0x1400b0018]
xor r8d, r8d
mov rsi, qword [rsp + 0xb8]
mov eax, r8d
mov rdi, qword [rsp + 0xb0]
mov r14d, r8d
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rbx
test rbx, rbx
je 0x14005f661
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x90]
mov r9d, r12d
mov dword [rsi], r8d
mov dword [rdi], r8d
mov r8, rdx
mov rax, qword [rbx + 0x150]
mov edx, r13d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
call qword [0x1400907d0]
xor r8d, r8d
mov dword [rsp + 0x44], eax
mov edx, eax
test eax, eax
jne 0x14005f59e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp r13d, 2
jne 0x14005f56a
add eax, 0xffffff85
cmp eax, 1
ja 0x14005f56a
mov r8, qword [rsp + 0xa0]
mov r9d, r12d
mov rdx, qword [rsp + 0x90]
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
call fcn.14005ebdc
xor r8d, r8d
test eax, eax
jne 0x14005f590
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov ecx, dword [rsp + 0xa8]
xor r8d, r8d
mov edx, dword [rsp + 0x44]
test ebx, ebx
je 0x14005f5ac
mov ebp, ebx
mov dword [rsi], r8d
cmp ebx, 0x7a
mov rbx, qword [rsp + 0x48]
je 0x14005f5b1
mov dword [rdi], r8d
jmp 0x14005f5b1
mov ecx, 1
mov dword [rsp + 0xa8], ecx
jmp 0x14005f574
mov ecx, 1
mov dword [rsp + 0xa8], ecx
jmp 0x14005f5b1
mov rbx, qword [rsp + 0x48]
mov eax, dword [rsp + 0x40]
add eax, dword [rsi]
mov dword [rsp + 0x40], eax
mov eax, r13d
sub eax, 1
je 0x14005f5d0
cmp eax, 1
jne 0x14005f626
mov eax, dword [rsi]
shl rax, 5
jmp 0x14005f5d6
mov eax, dword [rsi]
shl rax, 3
add r14d, dword [rdi]
cmp edx, 2
je 0x14005f60e
mov rdx, qword [rsp + 0xa0]
mov rbx, qword [rbx]
add rdx, rax
mov eax, r12d
mov qword [rsp + 0x48], rbx
sub r12d, dword [rdi]
cmp dword [rdi], eax
mov qword [rsp + 0xa0], rdx
cmova r12d, r8d
test rbx, rbx
jne 0x14005f4d1
mov eax, dword [rsp + 0x40]
mov dword [rdi], r14d
mov dword [rsi], eax
cmp r14d, r15d
jbe 0x14005f66a
mov ecx, 0x7a
jmp 0x14005f47f
mov rcx, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rcx, rax
je 0x14005f657
test byte [rcx + 0x44], 0x20
je 0x14005f657
mov rcx, qword [rcx + 0x38]
lea r8, [0x1400a2500]
mov edx, 0xa
mov r9d, r13d
call fcn.140027938
mov ecx, 0x7c
jmp 0x14005f47f
mov ecx, dword [rsp + 0xa8]
jmp 0x14005f612
test ecx, ecx
je 0x14005f69a
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, 1
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test ebp, ebp
je 0x14005f67c
mov ecx, ebp
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400ae2f8]
lea rax, [0x1400ae2f8]
cmp rcx, rax
je 0x14005f48b
test byte [rcx + 0x44], 0x20
je 0x14005f48b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x1400ae2f8]
lea r8, [0x1400a2500]
mov r9d, eax
mov edx, 0xb
mov rcx, qword [rcx + 0x38]
call fcn.140027938
jmp 0x14005f48b