Function at 0x140004f58
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r15, rdx
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
xor r14d, r14d
call fcn.140001d48
lea r8, [0x1400fa868]
lea rcx, [rsp + 0x30]
call fcn.140001dd0
mov edi, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, edi
xor edx, edx
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_OpenSemaphoreW]
lea r13, [0x1400fa7b4]
mov rbx, rax
test rax, rax
jne 0x140005004
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x14000513d
mov rcx, qword [rbp + 0x178]
mov r8, r13
mov edx, 0xc0
call fcn.1400036b8
mov esi, eax
jmp 0x14000511e
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140003a20
mov esi, eax
test eax, eax
jns 0x14000504e
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xc6
call fcn.140003684
mov rcx, rbx
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14000517f
jmp 0x14000511e
lea r8, [0x1400fa870]
lea rcx, [rsp + 0x30]
call fcn.140001dd0
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, edi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x14000509f
mov rcx, qword [rbp + 0x178]
mov r8, r13
mov edx, 0xcc
call fcn.1400036b8
mov rcx, rbx
mov esi, eax
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140005191
jmp 0x14000511e
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140003a20
mov esi, eax
test eax, eax
jns 0x1400050ed
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xce
call fcn.140003684
mov rcx, rdi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400051b5
mov rcx, rbx
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400051a3
jmp 0x14000511e
mov rcx, rdi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400051c7
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14000516d
xor esi, esi
test esi, esi
jns 0x14000513d
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov r8, r13
mov edx, 0x59
call fcn.140003684
mov eax, esi
jmp 0x140005142
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov rcx, qword [rbp + 0x178]
mov edx, 0x8f0
call fcn.1400036d8
int3
mov rcx, qword [rbp + 0x178]
mov edx, 0x8f0
call fcn.1400036d8
int3
mov rcx, qword [rbp + 0x178]
mov edx, 0x8f0
call fcn.1400036d8
int3
mov rcx, qword [rbp + 0x178]
mov edx, 0x8f0
call fcn.1400036d8
int3
mov rcx, qword [rbp + 0x178]
mov edx, 0x8f0
call fcn.1400036d8
int3
mov rcx, qword [rbp + 0x178]
mov edx, 0x8f0
call fcn.1400036d8
int3