Function at 0x140102a50
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
mov rax, qword [0x140653828]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rsi, r9
mov qword [rsp + 0x70], r9
mov r13, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x68], rcx
mov rax, qword [rdx + 8]
mov qword [rbp - 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.1400f21e0
nop
lea rcx, [rsp + 0x38]
call fcn.1400f21e0
nop
lea rcx, [rsp + 0x78]
call fcn.1400f21e0
nop
xor r9d, r9d
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.1400fe800
lea rcx, [rsp + 0x58]
call fcn.1400f2370
test al, al
jne 0x1401031a8
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140102af3
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x140102afe
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1401031a8
shr eax, 4
test al, 1
je 0x1401031a8
mov rcx, r13
cmp qword [rsp + 0x60], 0
je 0x140102e6a
call fcn.1400f2370
movabs r15, 0x7ffffffffffffff
xor r12d, r12d
test al, al
jne 0x140102c8f
mov r9b, 1
mov r8, r13
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.1400fe800
lea rdx, [rbp - 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140102c8f
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
cmp word [rcx], 0x2e
jne 0x140102b95
cmp word [rcx + 2], 0
jne 0x140102b95
mov r8b, 1
lea rdx, [rbp - 0x24]
lea rcx, [rsp + 0x38]
call fcn.1400f2550
jmp 0x140102bc4
mov r8b, 1
lea rdx, [rbp - 0x24]
lea rcx, [rbp - 0x78]
call fcn.1400f2090
nop
mov r9b, 1
lea r8, [rbp - 0x78]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400fe800
nop
lea rcx, [rbp - 0x78]
call fcn.1400f21f0
mov r9b, 1
lea r8, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.1400fe800
mov rbx, rax
mov rcx, rax
call fcn.1400f2370
test al, al
jne 0x140102c6c
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140102bfd
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x140102c06
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140102c6c
shr eax, 4
not al
test al, 1
je 0x140102c6c
mov rsi, qword [rdi]
cmp qword [rdi + 8], r15
je 0x140103203
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov ecx, 0x20
call fcn.14013134c
mov rbx, rax
mov qword [rsp + 0x50], rax
lea rcx, [rax + 0x10]
lea rdx, [rsp + 0x38]
call fcn.1400f1fa0
nop
inc qword [rdi + 8]
mov rcx, qword [rsi + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rcx
mov qword [rsp + 0x50], r12
mov qword [rsi + 8], rbx
mov qword [rcx], rbx
mov rsi, qword [rsp + 0x70]
lea rdx, [rbp - 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov rbx, qword [rsp + 0x68]
jne 0x140102b70
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r8b, 1
lea rdx, [0x1401eb668]
lea rcx, [rbp - 0x78]
call fcn.1400f2090
nop
mov r9b, 1
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.1400fe800
lea rdx, [rbp - 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
lea rcx, [rbp - 0x78]
call fcn.1400f21f0
cmp r15, 0xffffffffffffffff
je 0x1401031a8
movzx r14d, byte [rbp + 0x280]
nop word [rax + rax]
movzx edx, word [rbp - 0x24]
movzx ecx, word [rbp - 0x22]
cmp dx, 0x2e
jne 0x140102d1c
test cx, cx
je 0x140102e46
cmp dx, dx
jne 0x140102d1c
cmp cx, dx
jne 0x140102d1c
cmp word [rbp - 0x20], 0
je 0x140102e46
mov rax, qword [rsp + 0x60]
cmp word [rax], 0x2e
jne 0x140102d41
cmp word [rax + 2], 0
jne 0x140102d41
mov r8b, 1
lea rdx, [rbp - 0x24]
lea rcx, [rsp + 0x38]
call fcn.1400f2550
jmp 0x140102d70
mov r8b, 1
lea rdx, [rbp - 0x24]
lea rcx, [rbp - 0x68]
call fcn.1400f2090
nop
mov r9b, 1
lea r8, [rbp - 0x68]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400fe800
nop
lea rcx, [rbp - 0x68]
call fcn.1400f21f0
mov r9b, 1
lea r8, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.1400fe800
mov rbx, rax
mov rcx, rax
call fcn.1400f2370
test al, al
jne 0x140102ddd
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140102da5
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x140102dae
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140102ddd
shr eax, 4
test al, 1
je 0x140102ddd
test r14b, r14b
je 0x140102e46
mov byte [rsp + 0x20], r14b
mov r9, rsi
mov r8, r13
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140102a50
jmp 0x140102e46
mov rcx, r13
call fcn.1400f2370
test al, al
je 0x140102e46
mov rsi, qword [rdi]
movabs rax, 0x7ffffffffffffff
cmp qword [rdi + 8], rax
je 0x140103203
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov ecx, 0x20
call fcn.14013134c
mov rbx, rax
mov qword [rsp + 0x50], rax
lea rcx, [rax + 0x10]
lea rdx, [rsp + 0x38]
call fcn.1400f1fa0
nop
inc qword [rdi + 8]
mov rcx, qword [rsi + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rcx
mov qword [rsp + 0x50], r12
mov qword [rsi + 8], rbx
mov qword [rcx], rbx
lea rdx, [rbp - 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14010319f
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
jmp 0x140102cf0
call fcn.1400f2370
movabs r15, 0x7ffffffffffffff
xor r12d, r12d
test al, al
jne 0x140102fd0
mov r9b, 1
mov r8, r13
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.1400fe800
lea rdx, [rbp - 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140102fd0
mov rcx, qword [rsp + 0x58]
cmp byte [rcx], 0x2e
jne 0x140102ed6
cmp byte [rcx + 1], 0
jne 0x140102ed6
xor r8d, r8d
lea rdx, [rbp - 0x24]
lea rcx, [rsp + 0x38]
call fcn.1400f2480
jmp 0x140102f05
xor r8d, r8d
lea rdx, [rbp - 0x24]
lea rcx, [rbp - 0x68]
call fcn.1400f2070
nop
mov r9b, 1
lea r8, [rbp - 0x68]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400fe800
nop
lea rcx, [rbp - 0x68]
call fcn.1400f21f0
mov r9b, 1
lea r8, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.1400fe800
mov rbx, rax
mov rcx, rax
call fcn.1400f2370
test al, al
jne 0x140102fad
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140102f3e
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x140102f47
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140102fad
shr eax, 4
not al
test al, 1
je 0x140102fad
mov rsi, qword [rdi]
cmp qword [rdi + 8], r15
je 0x1401031f6
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov ecx, 0x20
call fcn.14013134c
mov rbx, rax
mov qword [rsp + 0x50], rax
lea rcx, [rax + 0x10]
lea rdx, [rsp + 0x38]
call fcn.1400f1fa0
nop
inc qword [rdi + 8]
mov rcx, qword [rsi + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rcx
mov qword [rsp + 0x50], r12
mov qword [rsi + 8], rbx
mov qword [rcx], rbx
mov rsi, qword [rsp + 0x70]
lea rdx, [rbp - 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov rbx, qword [rsp + 0x68]
jne 0x140102eb3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r8d, r8d
lea rdx, [0x1401eb670]
lea rcx, [rbp - 0x68]
call fcn.1400f2070
nop
mov r9b, 1
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.1400fe800
lea rdx, [rbp - 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r15, rax
lea rcx, [rbp - 0x68]
call fcn.1400f21f0
cmp r15, 0xffffffffffffffff
je 0x1401031a8
movzx r14d, byte [rbp + 0x280]
nop word [rax + rax]
movzx edx, byte [rbp - 0x24]
movzx ecx, byte [rbp - 0x23]
cmp dl, 0x2e
jne 0x140103057
test cl, cl
je 0x14010317f
cmp dl, dl
jne 0x140103057
cmp cl, dl
jne 0x140103057
cmp byte [rbp - 0x22], 0
je 0x14010317f
mov rax, qword [rsp + 0x58]
cmp byte [rax], 0x2e
jne 0x14010307a
cmp byte [rax + 1], 0
jne 0x14010307a
xor r8d, r8d
lea rdx, [rbp - 0x24]
lea rcx, [rsp + 0x38]
call fcn.1400f2480
jmp 0x1401030a9
xor r8d, r8d
lea rdx, [rbp - 0x24]
lea rcx, [rbp - 0x78]
call fcn.1400f2070
nop
mov r9b, 1
lea r8, [rbp - 0x78]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1400fe800
nop
lea rcx, [rbp - 0x78]
call fcn.1400f21f0
mov r9b, 1
lea r8, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.1400fe800
mov rbx, rax
mov rcx, rax
call fcn.1400f2370
test al, al
jne 0x140103116
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401030de
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x1401030e7
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140103116
shr eax, 4
test al, 1
je 0x140103116
test r14b, r14b
je 0x14010317f
mov byte [rsp + 0x20], r14b
mov r9, rsi
mov r8, r13
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140102a50
jmp 0x14010317f
mov rcx, r13
call fcn.1400f2370
test al, al
je 0x14010317f
mov rsi, qword [rdi]
movabs rax, 0x7ffffffffffffff
cmp qword [rdi + 8], rax
je 0x1401031f6
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov ecx, 0x20
call fcn.14013134c
mov rbx, rax
mov qword [rsp + 0x50], rax
lea rcx, [rax + 0x10]
lea rdx, [rsp + 0x38]
call fcn.1400f1fa0
nop
inc qword [rdi + 8]
mov rcx, qword [rsi + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rcx
mov qword [rsp + 0x50], r12
mov qword [rsi + 8], rbx
mov qword [rcx], rbx
lea rdx, [rbp - 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14010319f
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
jmp 0x140103030
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rdi + 8]
sub rbx, qword [rbp - 0x58]
lea rcx, [rsp + 0x78]
call fcn.1400f21f0
nop
lea rcx, [rsp + 0x38]
call fcn.1400f21f0
nop
lea rcx, [rsp + 0x58]
call fcn.1400f21f0
mov rax, rbx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140131030
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
lea rcx, str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3