Function at 0x140058fc0
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 0x14005900c
test r9d, r9d
je 0x14005900c
mov ecx, 0x6f8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x1400591e9
call sym.spoolsv.exe_PrvWaitForSpoolerInitialization
mov rbx, qword [0x1400a6f10]
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 0x1400591cf
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 [0x140088740]
xor r8d, r8d
mov dword [rsp + 0x44], eax
mov edx, eax
test eax, eax
jne 0x14005910c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
cmp r13d, 2
jne 0x1400590d8
add eax, 0xffffff85
cmp eax, 1
ja 0x1400590d8
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.1400587f0
xor r8d, r8d
test eax, eax
jne 0x1400590fe
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov ecx, dword [rsp + 0xa8]
xor r8d, r8d
mov edx, dword [rsp + 0x44]
test ebx, ebx
je 0x14005911a
mov ebp, ebx
mov dword [rsi], r8d
cmp ebx, 0x7a
mov rbx, qword [rsp + 0x48]
je 0x14005911f
mov dword [rdi], r8d
jmp 0x14005911f
mov ecx, 1
mov dword [rsp + 0xa8], ecx
jmp 0x1400590e2
mov ecx, 1
mov dword [rsp + 0xa8], ecx
jmp 0x14005911f
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 0x14005913e
cmp eax, 1
jne 0x140059194
mov eax, dword [rsi]
shl rax, 5
jmp 0x140059144
mov eax, dword [rsi]
shl rax, 3
add r14d, dword [rdi]
cmp edx, 2
je 0x14005917c
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 0x14005904b
mov eax, dword [rsp + 0x40]
mov dword [rdi], r14d
mov dword [rsi], eax
cmp r14d, r15d
jbe 0x1400591d8
mov ecx, 0x7a
jmp 0x140058fff
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x1400591c5
test byte [rcx + 0x1c], 0x20
je 0x1400591c5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14009a278]
mov edx, 0xa
mov r9d, r13d
call fcn.140024908
mov ecx, 0x7c
jmp 0x140058fff
mov ecx, dword [rsp + 0xa8]
jmp 0x140059180
test ecx, ecx
je 0x140059201
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
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 0x1400591e4
mov ecx, ebp
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov rcx, qword [0x1400a52b8]
lea rax, [0x1400a52b8]
cmp rcx, rax
je 0x140059005
test byte [rcx + 0x1c], 0x20
je 0x140059005
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1400a52b8]
lea r8, [0x14009a278]
mov r9d, eax
mov edx, 0xb
mov rcx, qword [rcx + 0x10]
call fcn.140024908
jmp 0x140059005