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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x428
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x410], rax
mov rcx, qword [rsp + 0x430]
call fcn.140068f90
movzx eax, al
test eax, eax
je 0x14008159d
mov rcx, qword [rsp + 0x448]
call fcn.1400857c0
nop
mov rcx, qword [rsp + 0x450]
call fcn.1400857c0
jmp 0x140081942
mov rcx, qword [rsp + 0x430]
call fcn.140003570
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400815d8
mov rcx, qword [rsp + 0x448]
call fcn.1400857c0
nop
mov rcx, qword [rsp + 0x450]
call fcn.1400857c0
jmp 0x140081942
mov rdx, qword [rsp + 0x430]
lea rcx, [rsp + 0x138]
call fcn.1400055f0
nop
lea rcx, [rsp + 0x138]
call fcn.14000b1b0
movzx eax, word [rax]
cmp eax, 0x5c
je 0x140081617
lea rdx, [0x1402eb620]
lea rcx, [rsp + 0x138]
call fcn.140005570
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x198]
call fcn.1400055f0
nop
lea rdx, [0x1402eb628]
lea rcx, [rsp + 0x198]
call fcn.140005570
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x198]
call fcn.140003570
lea rdx, [rsp + 0x1c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x1400818dc
cmp dword [rsp + 0x30], 1
jne 0x1400818dc
mov eax, dword [rsp + 0x1c0]
and eax, 0x10
test eax, eax
je 0x1400817e9
lea rcx, [rsp + 0x1ec]
call fcn.14026f9f4
cmp rax, 1
jne 0x1400816be
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x1ec]
cmp eax, 0x2e
je 0x1400816fd
lea rcx, [rsp + 0x1ec]
call fcn.14026f9f4
cmp rax, 2
jne 0x140081719
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x1ec]
cmp eax, 0x2e
jne 0x140081719
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x1ec]
cmp eax, 0x2e
jne 0x140081719
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [rsp + 0x30], eax
jmp 0x14008166c
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x178]
call fcn.1400055f0
nop
lea rdx, [rsp + 0x1ec]
lea rcx, [rsp + 0x178]
call fcn.140005570
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x450]
mov rcx, qword [rsp + 0x40]
call fcn.140085230
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x448]
mov rcx, qword [rsp + 0x58]
call fcn.140085230
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x440]
mov rdx, qword [rsp + 0x438]
lea rcx, [rsp + 0x178]
call fcn.140081530
nop
lea rcx, [rsp + 0x178]
call fcn.1400049b0
jmp 0x1400818c0
mov rcx, qword [rsp + 0x440]
call fcn.140003570
mov rdx, rax
lea rcx, [rsp + 0x1ec]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
jne 0x1400818c0
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.1400055f0
nop
lea rdx, [rsp + 0x1ec]
lea rcx, [rsp + 0x158]
call fcn.140005570
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x438]
call fcn.14006c410
mov rdx, qword [rsp + 0x448]
xor ecx, ecx
call fcn.140082e30
movzx eax, al
test eax, eax
je 0x1400818b3
lea rax, [rsp + 0x98]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x78]
call fcn.1400055f0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x448]
call fcn.140085fc0
nop
lea rcx, [rsp + 0x158]
call fcn.1400049b0
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [rsp + 0x30], eax
jmp 0x14008166c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, qword [rsp + 0x450]
xor ecx, ecx
call fcn.140082e30
movzx eax, al
test eax, eax
je 0x14008190b
mov rcx, qword [rsp + 0x450]
call fcn.140085f70
nop
lea rcx, [rsp + 0x198]
call fcn.1400049b0
nop
lea rcx, [rsp + 0x138]
call fcn.1400049b0
nop
mov rcx, qword [rsp + 0x448]
call fcn.1400857c0
nop
mov rcx, qword [rsp + 0x450]
call fcn.1400857c0
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x428
ret