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

Disassembly:
mov eax, 0x456259
call fcn.00455e88
sub esp, 0x2b0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov bl, cl
lea ecx, [ebp - 0x4c]
call fcn.004020bf
or dword [ebp - 0x18], 0xffffffff
test bl, bl
je 0x407ee3
mov edx, 0x464438
lea ecx, [ebp + 0x20]
call fcn.00406e3a
test al, al
je 0x407ee3
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.004086d0
lea ecx, [ebp - 0x34]
call fcn.00419b7f
add esp, 0x18
push eax
lea ecx, [ebp + 0x20]
call fcn.00401ef3
lea ecx, [ebp - 0x34]
call fcn.00401ee9
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.004086d0
lea ecx, [ebp - 0x34]
call fcn.00419bba
add esp, 0x18
push eax
lea ecx, [ebp + 0x20]
call fcn.0040323d
lea ecx, [ebp - 0x34]
call fcn.00401ee9
push 0x4645d8
lea ecx, [ebp + 8]
call fcn.004086c6
and dword [ebp - 4], 0
lea eax, [ebp - 0x2b4]
push eax
push 0x4645b8
lea edx, [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.004087f0
pop ecx
mov ecx, eax
call fcn.00401ee4
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x34]
call fcn.00401ee9
cmp esi, 0xffffffff
jne 0x407f6b
mov dword [ebp - 0x1c], 2
push 0x46ccb0
lea eax, [ebp - 0x1c]
push eax
call fcn.004375c6
lea eax, [ebp - 0x2b4]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
je 0x408084
cmp byte [0x470b18], 0
jne 0x4080c6
test byte [ebp - 0x2b4], 0x10
je 0x40802e
push 0x4644f8
lea eax, [ebp - 0x288]
push eax
call fcn.0043ddbf
pop ecx
pop ecx
test eax, eax
je 0x407f6b
push 0x4645dc
lea eax, [ebp - 0x288]
push eax
call fcn.0043ddbf
pop ecx
pop ecx
test eax, eax
je 0x407f6b
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040415e
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.00408876
pop ecx
lea ecx, [ebp - 0x64]
call fcn.00401ee9
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x38]
push eax
call fcn.004020d6
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x20]
push eax
call fcn.004086d0
sub esp, 0x18
mov ecx, esp
lea eax, [ebp - 0x34]
push eax
call fcn.004086d0
mov cl, bl
call fcn.00407e80
add esp, 0x48
lea ecx, [ebp - 0x34]
call fcn.00401ee9
jmp 0x407f6b
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x38]
push eax
call fcn.004020d6
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x20]
push eax
call fcn.004086d0
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040415e
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.00408876
sub esp, 0x14
mov ecx, esp
push eax
call fcn.00403242
mov cl, bl
call fcn.004080f9
add esp, 0x48
lea ecx, [ebp - 0x64]
call fcn.00401ee9
jmp 0x408021
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x4c]
call fcn.00401fb8
lea ecx, [ebp + 8]
call fcn.00401ee9
lea ecx, [ebp + 0x20]
call fcn.00401ee9
lea ecx, [ebp + 0x38]
call fcn.00401fb8
mov al, 1
jmp 0x4080e8
lea ecx, [ebp - 0x4c]
call fcn.00401fb8
lea ecx, [ebp + 8]
call fcn.00401ee9
lea ecx, [ebp + 0x20]
call fcn.00401ee9
lea ecx, [ebp + 0x38]
call fcn.00401fb8
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