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

Disassembly:
mov eax, 0x44c3b4
call fcn.0044ae58
sub esp, 0x2b0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov bl, cl
lea ecx, [ebp - 0x4c]
call fcn.004021e9
or dword [ebp - 0x18], 0xffffffff
test bl, bl
je 0x405d11
mov edx, 0x45962c
lea ecx, [ebp + 0x20]
call fcn.00406cc4
test al, al
je 0x405d11
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.004065be
lea ecx, [ebp - 0x34]
call fcn.00413b2d
add esp, 0x18
push eax
lea ecx, [ebp + 0x20]
call fcn.004064f4
lea ecx, [ebp - 0x34]
call fcn.0040351f
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.004065be
lea ecx, [ebp - 0x34]
call fcn.00413b69
add esp, 0x18
push eax
lea ecx, [ebp + 0x20]
call fcn.004064e2
lea ecx, [ebp - 0x34]
call fcn.0040351f
push 0x4596b8
lea ecx, [ebp + 8]
call fcn.004064d9
and dword [ebp - 4], 0
lea eax, [ebp - 0x2b4]
push eax
push 0x459698
lea edx, [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.00406b7e
pop ecx
mov ecx, eax
call fcn.00404c62
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x34]
call fcn.0040351f
cmp esi, 0xffffffff
jne 0x405d99
mov dword [ebp - 0x1c], 2
push 0x461d40
lea eax, [ebp - 0x1c]
push eax
call fcn.0042ebe4
lea eax, [ebp - 0x2b4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x405efc
cmp byte [0x465a69], 0
jne 0x405f3e
test byte [ebp - 0x2b4], 0x10
je 0x405ea6
mov ecx, 0x4595d4
lea eax, [ebp - 0x288]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405dfa
test dx, dx
je 0x405df6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405dfa
add eax, 4
add ecx, 4
test dx, dx
jne 0x405dd4
xor eax, eax
jmp 0x405dff
sbb eax, eax
or eax, 1
test eax, eax
je 0x405d99
mov ecx, 0x4596bc
lea eax, [ebp - 0x288]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405e34
test dx, dx
je 0x405e30
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405e34
add eax, 4
add ecx, 4
test dx, dx
jne 0x405e0e
xor eax, eax
jmp 0x405e39
sbb eax, eax
or eax, 1
test eax, eax
je 0x405d99
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x64]
call fcn.00403529
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.00406c5d
pop ecx
lea ecx, [ebp - 0x64]
call fcn.0040351f
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x38]
push eax
call fcn.00402200
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x20]
push eax
call fcn.004065be
sub esp, 0x18
mov ecx, esp
lea eax, [ebp - 0x34]
push eax
call fcn.004065be
mov cl, bl
call fcn.00405cae
add esp, 0x48
lea ecx, [ebp - 0x34]
call fcn.0040351f
jmp 0x405d99
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x38]
push eax
call fcn.00402200
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x20]
push eax
call fcn.004065be
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403529
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.00406c5d
sub esp, 0x14
mov ecx, esp
push eax
call fcn.00406567
mov cl, bl
call fcn.00405f71
add esp, 0x48
lea ecx, [ebp - 0x64]
call fcn.0040351f
jmp 0x405e99
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x4c]
call fcn.004020b1
lea ecx, [ebp + 8]
call fcn.0040351f
lea ecx, [ebp + 0x20]
call fcn.0040351f
lea ecx, [ebp + 0x38]
call fcn.004020b1
mov al, 1
jmp 0x405f60
lea ecx, [ebp - 0x4c]
call fcn.004020b1
lea ecx, [ebp + 8]
call fcn.0040351f
lea ecx, [ebp + 0x20]
call fcn.0040351f
lea ecx, [ebp + 0x38]
call fcn.004020b1
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret