Function at 0x1400233d0
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 [0x140300040]
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.140025750
nop
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rdi, [rbx - 1]
cmp eax, 0xffffffff
je 0x1400235cb
mov qword [rbp - 0x10], rbx
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x10]
call fcn.1400237b0
nop
mov qword [rbp - 0x18], rbx
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.140023640
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.14001c4c0
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140023485
inc ebx
cmp ebx, 0x2710
jle 0x140023450
test rsi, rsi
je 0x14002362c
mov rax, qword [rbp - 0x20]
sub rsi, rax
movzx edx, word [rax]
movzx ecx, word [rax + rsi]
sub edx, ecx
jne 0x1400234a8
add rax, 2
test ecx, ecx
jne 0x140023495
test edx, edx
jne 0x140023582
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x14002362c
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [r14], rax
lea rbx, [0x140267540]
mov rdx, rbx
mov rcx, r14
call fcn.140018bb0
mov rdi, 0xffffffffffffffff
test al, al
jne 0x14002350c
mov r8, rdi
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400234f5
mov rdx, rbx
mov rcx, r14
call fcn.140018f50
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 0x140023538
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002355d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140023608
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
jmp 0x140023602
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400235a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400235cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov rcx, qword [rbp - 0x20]
add rcx, 0xffffffffffffffe8
call fcn.140019180
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 0x140023608
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov rax, r14
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401f74b0
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.140019300
int3