Function at 0x14017cd10
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x638
mov rax, qword [0x1403372b0]
xor rax, rsp
mov qword [rsp + 0x620], rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x140
rep stosb byte [rdi], al
cmp dword [rsp + 0x660], 0
je 0x14017cfd0
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x2f0]
mov edx, 0x104
mov rcx, qword [rsp + 0x650]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x14017cd93
xor eax, eax
jmp 0x14017d0e1
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x400]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rsp + 0x20]
mov byte [rax], cl
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
cmp byte [rsp + 0x20], 0
jne 0x14017cdb7
mov rax, qword [rsp + 0x90]
mov ecx, dword [0x1403011ec]
mov dword [rax], ecx
mov dword [rsp + 0xa0], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x14017cfc5
mov r8d, 1
lea rdx, [0x1403011fc]
lea rcx, [rsp + 0xcc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14017ce70
mov r8d, 2
lea rdx, [0x1403011cc]
lea rcx, [rsp + 0xcc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14017ce75
jmp 0x14017cfaa
mov eax, dword [rsp + 0xa0]
and eax, 0x10
test eax, eax
je 0x14017cfaa
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x1e0]
mov edx, 0x104
mov rcx, qword [rsp + 0x650]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x14017ceb5
xor eax, eax
jmp 0x14017d0e1
lea rax, [rsp + 0xcc]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rsp + 0x21]
mov byte [rax], cl
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
cmp byte [rsp + 0x21], 0
jne 0x14017cedc
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x30], rax
dec qword [rsp + 0x30]
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0
jne 0x14017cf27
mov rax, qword [rsp + 0x30]
lea rcx, [0x1403011dc]
mov rdi, rax
mov rsi, rcx
mov ecx, 2
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x38], rax
dec qword [rsp + 0x38]
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x38]
cmp byte [rax], 0
jne 0x14017cf61
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x400]
xor edx, edx
movzx edi, byte [rcx + rdx]
mov byte [rax + rdx], dil
inc rdx
test dil, dil
jne 0x14017cf7f
mov r8d, 1
mov rdx, qword [rsp + 0x658]
lea rcx, [rsp + 0x1e0]
call fcn.14017cd10
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14017ce32
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x650]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14017cffd
mov eax, 1
jmp 0x14017d0e1
mov eax, dword [rsp + 0xa0]
and eax, 0x10
test eax, eax
jne 0x14017d0b6
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x510]
mov edx, 0x104
mov rcx, qword [rsp + 0x650]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x14017d03d
xor eax, eax
jmp 0x14017d0e1
lea rax, [rsp + 0xcc]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
mov byte [rsp + 0x22], al
mov rax, qword [rsp + 0x50]
movzx ecx, byte [rsp + 0x22]
mov byte [rax], cl
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
cmp byte [rsp + 0x22], 0
jne 0x14017d064
mov rax, qword [rsp + 0x658]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xcc]
call qword [rsp + reloc.WS2_32.dll_WSASetLastError]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14017cffd
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov rcx, qword [rsp + 0x620]
xor rcx, rsp
call fcn.14023b5b0
add rsp, 0x638
pop rdi
pop rsi
ret