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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x148], rax
mov rbx, rdx
lea rdx, [rbp + 0x58]
call fcn.1400222a0
nop
xor edx, edx
lea rcx, [rbp + 0x58]
call fcn.14001f4b0
lea rcx, [rbp + 0x58]
call fcn.140026e10
cmp eax, 2
jne 0x14001673d
lea edx, [rax - 1]
lea rcx, [rbp + 0x58]
call fcn.14001d960
cmp word [rax], 0x3a
jne 0x14001673d
mov ebx, 0xffffffff
jmp 0x1400169f8
lea rdx, [rbp + 0x80]
mov rcx, rbx
call fcn.1400222a0
nop
xor edx, edx
lea rcx, [rbp + 0x80]
call fcn.14001f4b0
xor r8d, r8d
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x58]
call fcn.140026070
test al, al
je 0x14001677c
mov ebx, 0xfffffff6
jmp 0x1400169eb
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x58]
call fcn.1400222a0
nop
lea rcx, [rbp + 0x30]
call fcn.14002aa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400167bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
lea rcx, [rbp + 0x30]
call fcn.14001d440
mov ebx, 0xfffffffe
jmp 0x1400169eb
lea rcx, [rbp + 0x30]
call fcn.14001d440
test bl, 0x10
jne 0x1400167d5
mov ebx, 0xfffffffe
jmp 0x1400169eb
lea rcx, [rbp + 0x80]
call fcn.140017cd0
lea rcx, [rbp + 0x80]
call fcn.140015f80
test al, al
jne 0x1400167fb
mov ebx, 0xfffffffd
jmp 0x1400169eb
lea rdx, [rbp + 0xf8]
lea rcx, [rbp + 0x58]
call fcn.1400223f0
nop
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xa8]
call fcn.14001c0d0
nop
mov dl, 1
lea rcx, [rbp + 0xa8]
call fcn.14001f4b0
lea rdx, [rbp + 0xf8]
lea rcx, [rbp + 0xa8]
call fcn.14001d850
lea rcx, [rbp + 0xa8]
call fcn.140015f80
test al, al
je 0x14001685b
mov ebx, 0xfffffffc
jmp 0x1400169d1
lea rcx, [rbp + 0xf8]
call fcn.140026e10
mov r15d, 0xffffffff
sub r15d, eax
lea rcx, [rbp + 0x58]
call fcn.140026e10
add r15d, eax
lea rcx, [rsp + 0x30]
call fcn.14004c020
nop
mov byte [rsp + 0x30], 1
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14004cd60
lea rcx, [rsp + 0x30]
call fcn.14004d840
xor ebx, ebx
mov r14d, ebx
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
sub rcx, r8
movabs r12, 0x4924924924924925
mov rax, r12
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400169c6
mov esi, ebx
nop dword [rax]
lea rdi, [rsi + r8]
mov rdx, rdi
lea rcx, [rbp + 0xd0]
call fcn.14001c0d0
nop
mov edx, r15d
lea rcx, [rbp + 0xd0]
call fcn.14001f240
lea r8, [rbp + 0xd0]
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x30]
call fcn.14001da00
nop
lea rcx, [rbp + 0x30]
cmp byte [rdi + 0x6c], 0
je 0x140016935
call fcn.140017cd0
lea rcx, [rbp + 0x30]
call fcn.140015f80
jmp 0x140016976
xor r8d, r8d
lea rdx, [rbp + 0x120]
call fcn.1400220f0
nop
mov rcx, rax
call fcn.140017cd0
nop
lea rcx, [rbp + 0x120]
call fcn.14001d440
mov r8b, 1
lea rdx, [rbp + 0x30]
mov rcx, rdi
call fcn.140016a30
test al, al
jne 0x14001697c
lea rcx, [rbp + 0x30]
call fcn.140015e70
test al, al
jne 0x14001697c
inc ebx
lea rcx, [rbp + 0x30]
call fcn.14001d440
nop
lea rcx, [rbp + 0xd0]
call fcn.14001d440
inc r14d
add rsi, 0x70
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
sub rcx, r8
mov rax, r12
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, r14d
cmp rax, rdx
jb 0x1400168e0
lea rcx, [rsp + 0x30]
call fcn.1400154a0
nop
lea rcx, [rbp + 0xa8]
call fcn.14001d440
nop
lea rcx, [rbp + 0xf8]
call fcn.14001d440
nop
lea rcx, [rbp + 0x80]
call fcn.14001d440
nop
lea rcx, [rbp + 0x58]
call fcn.14001d440
mov eax, ebx
mov rcx, qword [rbp + 0x148]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret