Function at 0x140003ab0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x1400c80c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r15, 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 word [rax + rax]
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140003b22
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140003b22
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140003b00
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 0x140003b47
add rax, 2
sub rcx, 1
jne 0x140003b38
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rsi
mov ebp, 0x7ffffffe
je 0x140003ba7
mov rdx, rbx
sub rdx, rax
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
je 0x140003b99
mov eax, ebp
lea r9, [0x1400afb10]
sub r9, rcx
test rax, rax
je 0x140003b99
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x140003b99
mov word [rcx], r8w
add rcx, 2
dec rax
sub rdx, 1
jne 0x140003b78
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 0x140003be2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140003c16
mov rcx, qword [rsp + 0x268]
mov edx, 0xc9
call fcn.140003560
mov esi, eax
jmp 0x140003c16
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x24], esi
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140003930
mov r14d, eax
test eax, eax
jns 0x140003c24
mov rcx, qword [rsp + 0x268]
mov r9d, eax
mov edx, 0xcf
call fcn.140003540
mov esi, r14d
test rdi, rdi
jne 0x140003d17
jmp 0x140003d20
mov rcx, rbx
lea rax, [rsp + 0x30]
nop dword [rax]
cmp word [rax], si
je 0x140003c3f
add rax, 2
sub rcx, 1
jne 0x140003c30
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rsi
je 0x140003c92
sub rbx, rax
lea rdx, [rsp + 0x30]
lea rdx, [rdx + rax*2]
je 0x140003c84
lea rcx, [0x1400afb18]
sub rcx, rdx
test rbp, rbp
je 0x140003c84
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140003c84
mov word [rdx], ax
add rdx, 2
dec rbp
sub rbx, 1
jne 0x140003c66
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 0x140003cc4
mov rcx, qword [rsp + 0x268]
mov edx, 0xd5
call fcn.140003560
mov ebp, eax
mov esi, eax
jmp 0x140003d17
lea rdx, [rsp + 0x24]
mov rcx, rbx
call fcn.140003930
mov ebp, eax
test eax, eax
jns 0x140003cfa
mov rcx, qword [rsp + 0x268]
mov r9d, eax
mov edx, 0xd7
call fcn.140003540
nop
mov rcx, rbx
call fcn.1400035d0
nop
mov esi, ebp
jmp 0x140003d17
mov rcx, rbx
call fcn.1400035d0
nop
movsxd rcx, dword [rsp + 0x24]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x20]
or rax, rcx
mov qword [r15], rax
mov rcx, rdi
call fcn.1400035d0
nop
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14006ab70
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret