Function at 0x140042b20
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 [0x1400e9070]
xor rax, rsp
mov qword [rbp + 0x3f], rax
movzx edi, r8b
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140042b5f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140042b7a
bt eax, 0xa
jae 0x140042b7a
mov eax, 1
jmp 0x140042cf8
xor r15d, r15d
test dil, dil
je 0x140042be9
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140042b8f
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 0x140042be9
lea rdx, [rbp + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140042be9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0x2f], 1
jbe 0x140042be9
mov eax, 3
jmp 0x140042cf8
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140004480
nop
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.140004480
nop
lea rcx, [rbp - 0x19]
call fcn.14003aae0
mov r10, qword [rbp - 1]
mov r9, qword [rbp - 0x19]
mov rbx, qword [rbp + 0x1f]
mov rsi, qword [rbp + 7]
test al, al
je 0x140042c78
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 0x140042d21
test rdx, rdx
je 0x140042c78
sub r8, rcx
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140042d21
add rcx, 2
sub rdx, 1
jne 0x140042c60
cmp rbx, 8
jb 0x140042cbb
lea rdx, [rbx*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140042cab
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042e11
mov rcx, rsi
call fcn.140079b70
mov r10, qword [rbp - 1]
mov r9, qword [rbp - 0x19]
cmp r10, 8
jb 0x140042cf6
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x140042cee
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042e0b
mov rcx, r9
call fcn.140079b70
xor eax, eax
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140079b50
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 0x140042d3d
bt eax, 0xa
jb 0x140042d8d
lea r9, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae r9, qword [rbp - 0x19]
mov rdi, qword [rbp - 9]
cmp rdi, rbx
ja 0x140042d7c
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.14007c470
mov word [rbx + rdi*2], r15w
jmp 0x140042c03
mov rdx, rdi
lea rcx, [rbp + 7]
call fcn.140003380
jmp 0x140042c03
cmp rbx, 8
jb 0x140042dc5
lea rdx, [rbx*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140042dbc
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042e11
mov rcx, rsi
call fcn.140079b70
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140042e01
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042dfc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042e0b
call fcn.140079b70
mov eax, 2
jmp 0x140042cf8
call fcn.140080d34
nop
call fcn.140080d34
int3