Function at 0x14001f6d0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x3a0], rbx
mov rax, qword [0x14015a138]
xor rax, rsp
mov qword [rbp + 0x258], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp - 0x10]
call fcn.1400cef80
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rsp + 0x58], xmm0
xor r15d, r15d
mov word [rsp + 0x48], r15w
lea r8d, [r15 + 1]
lea rdx, [0x14012408c]
lea rcx, [rsp + 0x48]
call fcn.1400149d0
nop
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.14001c430
cmp qword [rax + 0x18], 8
jb 0x14001f768
mov rax, qword [rax]
lea rdx, [rbp - 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14001f7b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f7b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fed1
call fcn.1400ccd64
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r15w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14001f80f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f80a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fed1
call fcn.1400ccd64
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r15w
mov esi, r15d
cmp qword [rdi + 0x18], 8
jb 0x14001f830
mov rdi, qword [rdi]
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r15w
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdi + r8*2], si
jne 0x14001f850
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.1400149d0
nop
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001f888
test al, 0x10
jne 0x14001fab5
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14001fab5
movzx edi, al
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x1401241f8]
test rax, rax
cmovne rdx, rax
movdqa xmm0, xmmword [0x14012bfc0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001f8e3
lea rcx, [rbp - 0x50]
call fcn.1400149d0
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r8, qword [rbp - 0x50]
mov edx, 0x104
lea rcx, [rbp + 0x1c]
call fcn.1400d1740
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14001f953
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001f94e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fed7
call fcn.1400ccd64
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp - 0x10], eax
lea rcx, [rbp - 0x70]
call fcn.14001e5d0
mov dword [rbp + 0x10], eax
shr rax, 0x20
mov dword [rbp + 0xc], eax
xor eax, eax
mov qword [rbp + 0x240], rax
mov qword [rbp + 0x248], rax
mov qword [rbp + 0x250], rax
lea rax, [rbp - 0xc]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 4]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 4]
mov qword [rbp - 0x20], rax
lea r9, [rbp + 0x250]
lea r8, [rbp + 0x248]
lea rdx, [rbp + 0x240]
lea rcx, [rbp - 0x70]
call fcn.14001c5f0
mov r8d, r15d
mov rdx, r15
mov rax, qword [rbp + rdx + 0x240]
mov dword [rsp + 0x20], eax
shr rax, 0x20
mov dword [rsp + 0x24], eax
mov rcx, qword [rbp + rdx - 0x30]
mov rax, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rbp + rdx + 0x248]
mov dword [rsp + 0x20], eax
shr rax, 0x20
mov dword [rsp + 0x24], eax
mov rcx, qword [rbp + rdx - 0x28]
mov rax, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rbp + rdx + 0x250]
mov dword [rsp + 0x20], eax
shr rax, 0x20
mov dword [rsp + 0x24], eax
mov rcx, qword [rbp + rdx - 0x20]
mov rax, qword [rsp + 0x20]
mov qword [rcx], rax
add r8d, 3
lea rdx, [rdx + 0x18]
cmp r8d, 3
jb 0x14001f9d0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.14001c1b0
nop
lea rcx, [rbp - 0x70]
cmp rcx, rax
je 0x14001fa73
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001fa65
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x70]
call fcn.1400149d0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14001fab8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001faae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fedd
call fcn.1400ccd64
jmp 0x14001fab8
xor dil, dil
cmp r14, 0xffffffffffffffff
jne 0x14001fad0
test dil, dil
je 0x14001fd3e
nop word [rax + rax]
lea rdx, [0x140124084]
lea rcx, [rbp + 0x1c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14001fea7
lea rdx, [0x140124090]
lea rcx, [rbp + 0x1c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14001fea7
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r15w
lea rax, [rbp + 0x1c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14001fb20
lea rdx, [rbp + 0x1c]
lea rcx, [rbp - 0x50]
call fcn.1400149d0
nop
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
lea rax, [rbp + 0x1c]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14001fb60
lea rdx, [rbp + 0x1c]
lea rcx, [rsp + 0x28]
call fcn.1400149d0
nop
lea r8, [rsp + 0x28]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.14001c430
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14001fbcf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fbca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fee9
call fcn.1400ccd64
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r15w
mov dl, 1
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001fbfc
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
call qword [rax]
test eax, eax
sete dl
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001fc1c
test dl, dl
je 0x14001fc1a
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
call qword [rax]
test eax, eax
je 0x14001fc1a
mov dl, 1
jmp 0x14001fc1c
xor dl, dl
lea eax, [rsi + 1]
test dl, dl
cmove eax, esi
mov esi, eax
mov edi, eax
lea rax, [rbp - 0x30]
mov qword [rbp + 0x240], rax
mov byte [rbp + 0x248], dl
lea rax, [rbp - 0x10]
mov qword [rbp + 0x250], rax
mov r8, qword [rbx]
test r8, r8
je 0x14001fda6
mov ecx, dword [rbx + 0x10]
sub ecx, 2
je 0x14001fc86
cmp ecx, 1
je 0x14001fc6a
mov rdx, qword [rbx + 8]
lea rcx, [rbp + 0x240]
jmp 0x14001fc91
mov rcx, qword [r8 + 0x38]
test rcx, rcx
je 0x14001feef
mov rax, qword [rcx]
lea rdx, [rbp + 0x240]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14001fc94
lea rdx, [rbp + 0x240]
mov rcx, qword [rbx + 8]
call r8
cmp eax, 1
jne 0x14001fda9
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14001fcdd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fcd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fecb
call fcn.1400ccd64
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14001fd2e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fd29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fecb
call fcn.1400ccd64
cmp r14, 0xffffffffffffffff
je 0x14001fd3e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14001fd7e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fd79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fee3
call fcn.1400ccd64
mov eax, esi
mov rcx, qword [rbp + 0x258]
xor rcx, rsp
call fcn.1400ccd40
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x360
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, r15d
test byte [rbp - 0x10], 0x10
je 0x14001fe1e
cmp eax, 2
je 0x14001fe1e
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14001f6d0
lea esi, [rdi + rax]
mov qword [rbp + 0x250], r15
mov byte [rbp + 0x248], 0
mov r8, qword [rbx]
test r8, r8
je 0x14001fe1e
mov ecx, dword [rbx + 0x10]
sub ecx, 2
je 0x14001fe0f
cmp ecx, 1
je 0x14001fdf3
mov rdx, qword [rbx + 8]
lea rcx, [rbp + 0x240]
jmp 0x14001fe1a
mov rcx, qword [r8 + 0x38]
test rcx, rcx
je 0x14001feef
mov rax, qword [rcx]
lea rdx, [rbp + 0x240]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14001fe1e
lea rdx, [rbp + 0x240]
mov rcx, qword [rbx + 8]
call r8
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14001fe5a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fe55
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fecb
call fcn.1400ccd64
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14001fea7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fea2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001fecb
call fcn.1400ccd64
cmp r14, 0xffffffffffffffff
je 0x14001fd3e
lea rdx, [rbp - 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14001fd2e
jmp 0x14001fad0
call fcn.1400d1a34
nop
call fcn.1400d1a34
nop
call fcn.1400d1a34
int3
call fcn.1400d1a34
nop
call fcn.1400d1a34
nop
call fcn.1400d1a34
int3
call fcn.1400ca414
int3