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

Disassembly:
push 0x4b0
mov eax, 0x429cce
call fcn.0041132d
mov dword [ebp - 0x4b8], edx
mov ebx, ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x264]
xor eax, eax
mov dword [ebp - 0x250], 0xf
push 0x436892
mov dword [ebp - 0x254], eax
mov byte [ebp - 0x264], al
call fcn.00401e87
push 0x208
xor edx, edx
mov byte [ebp - 4], 2
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00412480
add esp, 0xc
lea edx, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
cmovae edx, dword [ebp + 0xc]
xor ecx, ecx
mov esi, edx
mov ax, word [edx]
add edx, 2
cmp ax, cx
jne 0x405703
lea edi, [ebp - 0x21c]
sub edx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x405719
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x21c]
sub ecx, 2
xor edx, edx
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
cmp ax, dx
jne 0x40573e
mov eax, dword [0x436ccc]
mov dword [ecx], eax
mov eax, dword [0x436cd0]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405957
mov edi, dword [ebp - 0x4b8]
xor eax, eax
test byte [ebp - 0x4b4], 0x10
je 0x405893
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x234]
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x488]
push eax
mov dword [ebp - 0x220], 7
call fcn.004025b1
mov edx, 0x436cc8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.004022ea
test al, al
jne 0x405888
mov edx, 0x436cc0
lea ecx, [ebp - 0x234]
call fcn.004022ea
test al, al
jne 0x405888
xor eax, eax
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040264f
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x24c]
call fcn.0040226f
push 0x436a34
lea ecx, [ebp - 0x24c]
call fcn.00403421
test edi, edi
jne 0x40587d
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x4b8], esp
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea eax, [ebp + 0x24]
push eax
call fcn.0040264f
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0040264f
xor eax, eax
mov byte [ebp - 4], 4
push eax
xor edx, edx
mov ecx, ebx
call fcn.00405693
add esp, 0x34
lea ecx, [ebp - 0x24c]
call fcn.004025fd
lea ecx, [ebp - 0x234]
jmp 0x405931
mov dword [ebp - 0x23c], eax
lea ecx, [ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x488]
push eax
call fcn.004025b1
mov byte [ebp - 4], 6
lea eax, [ebp + 0x24]
cmp dword [ebp + 0x38], 8
push ecx
cmovae eax, dword [ebp + 0x24]
lea ecx, [ebp - 0x24c]
push eax
call fcn.004059a9
cmp eax, 0xffffffff
je 0x40592b
xor eax, eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
lea eax, [ebp + 0xc]
push eax
call fcn.0040264f
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x234]
call fcn.0040226f
lea eax, [ebp - 0x234]
mov ecx, ebx
push eax
call fcn.00405978
lea ecx, [ebp - 0x234]
call fcn.004025fd
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 2
call fcn.004025fd
lea eax, [ebp - 0x4b4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40577e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x264]
call fcn.004021d7
lea ecx, [ebp + 0xc]
call fcn.004025fd
lea ecx, [ebp + 0x24]
call fcn.004025fd
call fcn.004112d7
ret