Function at 0x140008a84
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x1400343f0]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov esi, 0x104
mov qword [r8], r15
mov r9d, esi
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140008af7
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140008af7
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140008ad5
lea rax, [rdx - 2]
test r9, r9
lea r8, [0x14002abf0]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov rdx, rsi
mov word [rax], r15w
call fcn.1400083f4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140008ca9
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rax
mov dword [rsp + 0x20], r15d
call fcn.140005bb0
mov edi, eax
test eax, eax
jns 0x140008b94
mov rcx, qword [rbp + 0x168]
lea r8, [0x14002abb0]
mov r9d, eax
mov edx, 0xcf
call fcn.140007d70
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140008d39
mov eax, edi
jmp 0x140008cd6
lea r8, [0x14002abf8]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1400083f4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140008c73
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140005bb0
mov esi, eax
test eax, eax
jns 0x140008c2f
mov rcx, qword [rbp + 0x168]
lea r8, [0x14002abb0]
mov r9d, eax
mov edx, 0xd7
call fcn.140007d70
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140008d4b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140008d5d
mov eax, esi
jmp 0x140008cd6
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140008d03
movsxd rax, dword [rsp + 0x24]
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
or rcx, rax
mov qword [r14], rcx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140008d15
jmp 0x140008cba
mov rcx, qword [rbp + 0x168]
lea r8, [0x14002abb0]
mov edx, 0xd5
call fcn.140007d50
mov rcx, rbx
mov edi, eax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140008d27
jmp 0x140008b8d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x140008cbe
xor eax, eax
jmp 0x140008cd6
mov rcx, qword [rbp + 0x168]
lea r8, [0x14002abb0]
mov edx, 0xc9
call fcn.140007d50
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400019d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.1400093e0
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.1400093e0
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.1400093e0
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.1400093e0
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.1400093e0
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.1400093e0
int3