Function at 0x140001d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rdx
mov r14, rcx
mov qword [rbp - 0x28], rcx
xor ebx, ebx
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x20]
call fcn.1400030f0
nop
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rdi, [rbx - 1]
cmp eax, 0xffffffff
je 0x140001f33
mov qword [rbp - 0x10], rbx
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x10]
call fcn.1400021f0
nop
mov qword [rbp - 0x18], rbx
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.140001fa0
nop
mov ebx, 2
mov dword [rsp + 0x20], ebx
mov r9, qword [rbp - 0x10]
mov r8, qword [rbp - 0x18]
lea rdx, str._s_s___d_
lea rcx, [rbp - 0x20]
call fcn.1400049e0
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001e15
inc ebx
cmp ebx, 0x2710
jle 0x140001de0
test rsi, rsi
je 0x140001f8d
mov rax, qword [rbp - 0x20]
sub rsi, rax
movzx edx, word [rax]
movzx ecx, word [rax + rsi]
sub edx, ecx
jne 0x140001e38
add rax, 2
test ecx, ecx
jne 0x140001e25
test edx, edx
jne 0x140001ef8
call fcn.140004d80
mov rcx, rax
test rax, rax
je 0x140001f8d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r14], rax
lea rbx, [0x14006c688]
mov rdx, rbx
mov rcx, r14
call fcn.140004030
mov rdi, 0xffffffffffffffff
test al, al
jne 0x140001e97
mov r8, rdi
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x140001e80
mov rdx, rbx
mov rcx, r14
call fcn.140004470
nop
mov dword [rbp - 0x30], 1
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001ebc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001eda
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140001f69
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x140001f69
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001f16
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001f33
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp - 0x20]
add rcx, 0xffffffffffffffe8
call fcn.140004310
add rax, 0x18
mov qword [r14], rax
mov dword [rbp - 0x30], 1
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140001f69
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r14
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002ad90
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004eb0
int3