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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fd5a
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
cmp byte [ebx], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jne 0x40a810
xor ecx, ecx
jmp 0x40a81e
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a815
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x58]
call fcn.00404270
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.00404370
push 4
push str..
lea ecx, [ebp - 0x40]
call fcn.00404490
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x198]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a9b5
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop word [eax + eax]
cmp byte [ebp - 0x16c], 0x2e
je 0x40a983
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x58]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1cc]
push 0x423638
mov byte [eax], 0
call fcn.00404f90
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x1b4]
call fcn.00404f40
add esp, 8
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x40a906
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40a8eb
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004046a0
mov eax, dword [ebp - 0x1a0]
cmp eax, 0x10
jb 0x40a91e
inc eax
push eax
push dword [ebp - 0x1b4]
call fcn.00404770
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1a0], 0xf
mov dword [ebp - 0x1a4], 0
mov byte [ebp - 0x1b4], 0
cmp eax, 0x10
jb 0x40a955
inc eax
push eax
push dword [ebp - 0x1cc]
call fcn.00404770
test byte [ebp - 0x198], 0x10
lea ecx, [ebp - 0x28]
je 0x40a976
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
call fcn.0040a790
mov esi, eax
test esi, esi
jne 0x40a9b7
jmp 0x40a983
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
call fcn.0040a430
lea eax, [ebp - 0x198]
push eax
push edi
call ebx
cmp eax, 1
je 0x40a880
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x40a9b7
mov ecx, dword [ebp - 0x19c]
call fcn.0040a3e0
xor esi, esi
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40a9c9
inc eax
push eax
push dword [ebp - 0x58]
call fcn.00404770
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x40a9ed
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00404770
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x40aa11
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.00404770
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e02b
mov esp, ebp
pop ebp
ret