Function at 0x140071520
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 [0x14019cfa0]
xor rax, rsp
mov qword [rsp + 0x410], rax
mov rcx, qword [rsp + 0x430]
call fcn.1400590a0
movzx eax, al
test eax, eax
je 0x14007158d
mov rcx, qword [rsp + 0x448]
call fcn.140075880
nop
mov rcx, qword [rsp + 0x450]
call fcn.140075880
jmp 0x140071932
mov rcx, qword [rsp + 0x430]
call fcn.140006930
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400715c8
mov rcx, qword [rsp + 0x448]
call fcn.140075880
nop
mov rcx, qword [rsp + 0x450]
call fcn.140075880
jmp 0x140071932
mov rdx, qword [rsp + 0x430]
lea rcx, [rsp + 0x138]
call fcn.14000c2d0
nop
lea rcx, [rsp + 0x138]
call fcn.14000fc20
movzx eax, word [rax]
cmp eax, 0x5c
je 0x140071607
lea rdx, [0x140145170]
lea rcx, [rsp + 0x138]
call fcn.14000c140
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x198]
call fcn.14000c2d0
nop
lea rdx, [0x140145178]
lea rcx, [rsp + 0x198]
call fcn.14000c140
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x198]
call fcn.140006930
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 0x1400718cc
cmp dword [rsp + 0x30], 1
jne 0x1400718cc
mov eax, dword [rsp + 0x1c0]
and eax, 0x10
test eax, eax
je 0x1400717d9
lea rcx, [rsp + 0x1ec]
call fcn.1400e9024
cmp rax, 1
jne 0x1400716ae
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x1ec]
cmp eax, 0x2e
je 0x1400716ed
lea rcx, [rsp + 0x1ec]
call fcn.1400e9024
cmp rax, 2
jne 0x140071709
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x1ec]
cmp eax, 0x2e
jne 0x140071709
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x1ec]
cmp eax, 0x2e
jne 0x140071709
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [rsp + 0x30], eax
jmp 0x14007165c
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x178]
call fcn.14000c2d0
nop
lea rdx, [rsp + 0x1ec]
lea rcx, [rsp + 0x178]
call fcn.14000c140
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x450]
mov rcx, qword [rsp + 0x40]
call fcn.1400752f0
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.1400752f0
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.140071520
nop
lea rcx, [rsp + 0x178]
call fcn.14000a510
jmp 0x1400718b0
mov rcx, qword [rsp + 0x440]
call fcn.140006930
mov rdx, rax
lea rcx, [rsp + 0x1ec]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
jne 0x1400718b0
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0x158]
call fcn.14000c2d0
nop
lea rdx, [rsp + 0x1ec]
lea rcx, [rsp + 0x158]
call fcn.14000c140
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x438]
call fcn.140018240
mov rdx, qword [rsp + 0x448]
xor ecx, ecx
call fcn.140072e50
movzx eax, al
test eax, eax
je 0x1400718a3
lea rax, [rsp + 0x98]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x78]
call fcn.14000c2d0
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.140076080
nop
lea rcx, [rsp + 0x158]
call fcn.14000a510
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [rsp + 0x30], eax
jmp 0x14007165c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, qword [rsp + 0x450]
xor ecx, ecx
call fcn.140072e50
movzx eax, al
test eax, eax
je 0x1400718fb
mov rcx, qword [rsp + 0x450]
call fcn.140076030
nop
lea rcx, [rsp + 0x198]
call fcn.14000a510
nop
lea rcx, [rsp + 0x138]
call fcn.14000a510
nop
mov rcx, qword [rsp + 0x448]
call fcn.140075880
nop
mov rcx, qword [rsp + 0x450]
call fcn.140075880
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.1400dbfd0
add rsp, 0x428
ret