Function at 0x14001fc40
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 [0x14015b138]
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.1400cf640
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rsp + 0x58], xmm0
xor r15d, r15d
mov word [rsp + 0x48], r15w
lea r8d, [r15 + 1]
lea rdx, [0x1401250ac]
lea rcx, [rsp + 0x48]
call fcn.1400149d0
nop
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.14001c9a0
cmp qword [rax + 0x18], 8
jb 0x14001fcd8
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 0x14001fd29
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fd24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020441
call fcn.1400cd424
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r15w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14001fd7f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fd7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020441
call fcn.1400cd424
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r15w
mov esi, r15d
cmp qword [rdi + 0x18], 8
jb 0x14001fda0
mov rdi, qword [rdi]
movdqa xmm0, xmmword [0x14012d1d0]
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 0x14001fdc0
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 0x14001fdf8
test al, 0x10
jne 0x140020025
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 0x140020025
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, [0x140125218]
test rax, rax
cmovne rdx, rax
movdqa xmm0, xmmword [0x14012d1d0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001fe53
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.1400d1e00
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14001fec3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001febe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020447
call fcn.1400cd424
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.14001eb40
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.14001cb60
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 0x14001ff40
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.14001c720
nop
lea rcx, [rbp - 0x70]
cmp rcx, rax
je 0x14001ffe3
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14001ffd5
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 0x140020028
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002001e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002044d
call fcn.1400cd424
jmp 0x140020028
xor dil, dil
cmp r14, 0xffffffffffffffff
jne 0x140020040
test dil, dil
je 0x1400202ae
nop word [rax + rax]
lea rdx, [0x1401250a4]
lea rcx, [rbp + 0x1c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140020417
lea rdx, [0x1401250b0]
lea rcx, [rbp + 0x1c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140020417
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 0x140020090
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 0x1400200d0
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.14001c9a0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14002013f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002013a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020459
call fcn.1400cd424
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 0x14002016c
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 0x14002018c
test dl, dl
je 0x14002018a
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
call qword [rax]
test eax, eax
je 0x14002018a
mov dl, 1
jmp 0x14002018c
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 0x140020316
mov ecx, dword [rbx + 0x10]
sub ecx, 2
je 0x1400201f6
cmp ecx, 1
je 0x1400201da
mov rdx, qword [rbx + 8]
lea rcx, [rbp + 0x240]
jmp 0x140020201
mov rcx, qword [r8 + 0x38]
test rcx, rcx
je 0x14002045f
mov rax, qword [rcx]
lea rdx, [rbp + 0x240]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140020204
lea rdx, [rbp + 0x240]
mov rcx, qword [rbx + 8]
call r8
cmp eax, 1
jne 0x140020319
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14002024d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020248
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002043b
call fcn.1400cd424
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14002029e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020299
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002043b
call fcn.1400cd424
cmp r14, 0xffffffffffffffff
je 0x1400202ae
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x1400202ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400202e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020453
call fcn.1400cd424
mov eax, esi
mov rcx, qword [rbp + 0x258]
xor rcx, rsp
call fcn.1400cd400
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 0x14002038e
cmp eax, 2
je 0x14002038e
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14001fc40
lea esi, [rdi + rax]
mov qword [rbp + 0x250], r15
mov byte [rbp + 0x248], 0
mov r8, qword [rbx]
test r8, r8
je 0x14002038e
mov ecx, dword [rbx + 0x10]
sub ecx, 2
je 0x14002037f
cmp ecx, 1
je 0x140020363
mov rdx, qword [rbx + 8]
lea rcx, [rbp + 0x240]
jmp 0x14002038a
mov rcx, qword [r8 + 0x38]
test rcx, rcx
je 0x14002045f
mov rax, qword [rcx]
lea rdx, [rbp + 0x240]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14002038e
lea rdx, [rbp + 0x240]
mov rcx, qword [rbx + 8]
call r8
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400203ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400203c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002043b
call fcn.1400cd424
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140020417
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020412
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002043b
call fcn.1400cd424
cmp r14, 0xffffffffffffffff
je 0x1400202ae
lea rdx, [rbp - 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14002029e
jmp 0x140020040
call fcn.1400d20f4
nop
call fcn.1400d20f4
nop
call fcn.1400d20f4
int3
call fcn.1400d20f4
nop
call fcn.1400d20f4
nop
call fcn.1400d20f4
int3
call fcn.1400caad4
int3