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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x1401c1050]
xor rax, rsp
mov qword [rbp + 0x3f], rax
movzx edi, r8b
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400421df
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400421fa
bt eax, 0xa
jae 0x1400421fa
mov eax, 1
jmp 0x140042378
xor r15d, r15d
test dil, dil
je 0x140042269
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14004220f
mov rcx, qword [rbx]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140042269
lea rdx, [rbp + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140042269
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0x2f], 1
jbe 0x140042269
mov eax, 3
jmp 0x140042378
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140006070
nop
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.140006070
nop
lea rcx, [rbp - 0x19]
call fcn.14002d140
mov r10, qword [rbp - 1]
mov r9, qword [rbp - 0x19]
mov rbx, qword [rbp + 0x1f]
mov rsi, qword [rbp + 7]
test al, al
je 0x1400422f8
lea rcx, [rbp - 0x19]
cmp r10, 8
setae r11b
cmovae rcx, r9
lea r8, [rbp + 7]
cmp rbx, 8
setae r14b
cmovae r8, rsi
mov rdx, qword [rbp + 0x17]
cmp rdx, qword [rbp - 9]
jne 0x1400423a1
test rdx, rdx
je 0x1400422f8
sub r8, rcx
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1400423a1
add rcx, 2
sub rdx, 1
jne 0x1400422e0
cmp rbx, 8
jb 0x14004233b
lea rdx, [rbx*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14004232b
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042491
mov rcx, rsi
call fcn.14007c190
mov r10, qword [rbp - 1]
mov r9, qword [rbp - 0x19]
cmp r10, 8
jb 0x140042376
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x14004236e
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004248b
mov rcx, r9
call fcn.14007c190
xor eax, eax
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14007bb60
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rcx, [rbp - 0x19]
test r11b, r11b
cmovne rcx, r9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400423bd
bt eax, 0xa
jb 0x14004240d
lea r9, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae r9, qword [rbp - 0x19]
mov rdi, qword [rbp - 9]
cmp rdi, rbx
ja 0x1400423fc
lea rbx, [rbp + 7]
test r14b, r14b
cmovne rbx, rsi
mov qword [rbp + 0x17], rdi
lea r8, [rdi + rdi]
mov rdx, r9
mov rcx, rbx
call fcn.14007e1c0
mov word [rbx + rdi*2], r15w
jmp 0x140042283
mov rdx, rdi
lea rcx, [rbp + 7]
call fcn.140006cd0
jmp 0x140042283
cmp rbx, 8
jb 0x140042445
lea rdx, [rbx*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14004243c
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042491
mov rcx, rsi
call fcn.14007c190
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140042481
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004247c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004248b
call fcn.14007c190
mov eax, 2
jmp 0x140042378
call fcn.140082b90
nop
call fcn.140082b90
int3