Function at 0x140089700
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, r8
xor esi, esi
mov qword [r8], rsi
mov ebx, 0x104
mov r9d, ebx
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub rcx, rax
nop
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140089772
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140089772
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140089750
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], si
mov rcx, rbx
lea rax, [rsp + 0x30]
cmp word [rax], si
je 0x140089797
add rax, 2
sub rcx, 1
jne 0x140089788
mov rax, rbx
sub rax, rcx
mov r8, rsi
test rcx, rcx
cmovne r8, rax
je 0x1400897ff
mov rdx, rbx
sub rdx, r8
lea rcx, [rsp + 0x30]
lea rcx, [rcx + r8*2]
je 0x1400897f1
lea rax, [rdx + 0x7ffffefa]
add rax, r8
lea r9, [0x1403fec40]
sub r9, rcx
nop
test rax, rax
je 0x1400897f1
movzx r8d, word [rcx + r9]
test r8w, r8w
je 0x1400897f1
mov word [rcx], r8w
add rcx, 2
dec rax
sub rdx, 1
jne 0x1400897d0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], si
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140089841
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140089989
mov rcx, qword [rsp + 0x268]
mov edx, 0xc9
call fcn.1400891c0
mov esi, eax
jmp 0x140089989
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x20], esi
lea rdx, [rsp + 0x24]
mov rcx, rdi
call fcn.140089570
mov ebp, eax
test eax, eax
jns 0x14008987f
mov rcx, qword [rsp + 0x268]
mov r9d, eax
lea r8, [0x1403febc4]
mov edx, Ordinal_208
call fcn.1400891a0
mov esi, ebp
jmp 0x140089989
mov rcx, rbx
lea rax, [rsp + 0x30]
cmp word [rax], si
je 0x140089896
add rax, 2
sub rcx, 1
jne 0x140089887
mov rax, rbx
sub rax, rcx
mov r8, rsi
test rcx, rcx
cmovne r8, rax
je 0x1400898fd
sub rbx, r8
lea rdx, [rsp + 0x30]
lea rdx, [rdx + r8*2]
je 0x1400898ef
lea rax, [r8 + 0x7ffffefa]
add rax, rbx
lea r8, [0x1403fec48]
sub r8, rdx
nop word [rax + rax]
test rax, rax
je 0x1400898ef
movzx ecx, word [rdx + r8]
test cx, cx
je 0x1400898ef
mov word [rdx], cx
add rdx, 2
dec rax
sub rbx, 1
jne 0x1400898d0
lea rax, [rdx - 2]
test rbx, rbx
cmovne rax, rdx
mov word [rax], si
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x14008992f
mov rcx, qword [rsp + 0x268]
mov edx, Ordinal_216
call fcn.1400891c0
mov ebp, eax
mov esi, eax
jmp 0x140089989
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140089570
mov ebp, eax
test eax, eax
jns 0x14008996c
mov rcx, qword [rsp + 0x268]
mov r9d, eax
lea r8, [0x1403febc4]
mov edx, Ordinal_216
call fcn.1400891a0
nop
mov rcx, rbx
call fcn.140089230
nop
mov esi, ebp
jmp 0x140089989
mov rcx, rbx
call fcn.140089230
nop
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r14], rax
test rdi, rdi
je 0x140089997
mov rcx, rdi
call fcn.140089230
nop
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401aed20
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret