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

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x354
push ebx
push esi
push edi
push 0x104
push dword [ebp + 0x7c]
lea eax, [ebp - 0x1f0]
push eax
mov dword [ebp + 0x54], ecx
call fcn.00439851
lea eax, [ebp - 0x1f0]
push 0x5c
push eax
call fcn.00458440
add esp, 0x14
test eax, eax
je 0x40a3b8
lea esi, [eax + 1]
lea eax, [ebp - 0x2f4]
push esi
push eax
call fcn.00457a80
lea eax, [ebp - 0x1f0]
push eax
mov byte [esi], 0
call fcn.00457cb0
add esp, 0xc
mov dword [ebp + 0x5c], eax
jmp 0x40a3d8
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.00457a80
and dword [ebp + 0x5c], 0
pop ecx
pop ecx
mov byte [ebp - 0x1f0], 0
mov ebx, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0x7c]
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp + 0x7c], eax
mov edi, ecx
jmp 0x40a42b
push dword [ebp + 0x5c]
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x74]
lea eax, [ebp - 0xec]
push eax
call fcn.00423f8d
add esp, 0x10
test al, al
je 0x40a42f
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
mov edi, eax
test edi, edi
jne 0x40a3f9
mov esi, dword [0x465108]
jmp 0x40a4c6
mov edi, dword [ebp + 0x54]
lea eax, [ebp - 0xec]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
cmp byte [ecx], 0x6c
jne 0x40a469
mov ecx, dword [ecx + 0x14]
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x68]
push 2
call fcn.00402cc4
mov ecx, dword [edi + 0x14]
cmp dword [ebp + 0x58], ecx
je 0x40a44e
jmp 0x40a477
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x68]
push 3
call fcn.00402cc4
cmp eax, 1
je 0x40a481
cmp eax, 6
jne 0x40a4d0
mov eax, dword [ebp + 0x58]
test eax, eax
jne 0x40a4d7
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
mov edi, eax
test edi, edi
je 0x40a4be
push dword [ebp + 0x5c]
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x74]
lea eax, [ebp - 0xec]
push eax
call fcn.00423f8d
add esp, 0x10
test al, al
jne 0x40a488
add dword [esi + 8], 1
adc dword [esi + 0xc], 0
test edi, edi
jne 0x40a43a
jmp 0x40a4e8
mov esi, eax
jmp 0x40a609
cmp eax, edi
jne 0x40a4e3
mov eax, dword [ebp + 0x6c]
mov byte [eax], 1
jmp 0x40a4e8
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
cmp dword [ebp + 0x7c], 0xffffffff
je 0x40a4f7
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [ebp + 0x78], 0
je 0x40a534
mov edi, dword [ebp + 0x5c]
cmp edi, 0x100
ja 0x40a534
lea esi, [ebp + edi - 0x1f0]
push 0x45cadc
push esi
call fcn.00457a80
pop ecx
pop ecx
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x1f0]
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp + 0x7c], eax
jne 0x40a53c
xor eax, eax
inc eax
jmp 0x40a614
lea eax, [ebp - 0x2f4]
push eax
call fcn.00457cb0
mov ebx, eax
add ebx, edi
pop ecx
mov dword [ebp + 0x5c], ebx
test byte [ebp - 0xec], 0x10
je 0x40a5ee
cmp byte [ebp - 0xc0], 0x2e
jne 0x40a581
cmp byte [ebp - 0xbf], 0
je 0x40a5ee
cmp byte [ebp - 0xbf], 0x2e
jne 0x40a581
cmp byte [ebp - 0xbe], 0
je 0x40a5ee
lea eax, [ebp - 0xc0]
push eax
call fcn.00457cb0
add eax, ebx
cmp eax, 0x102
pop ecx
ja 0x40a5ee
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0xc0]
push eax
push 0x45c4ec
push esi
call fcn.0040a7af
mov ebx, dword [ebp + 0x70]
mov edi, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x54]
add esp, 0x10
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push ebx
push edi
push dword [ebp + 0x68]
call fcn.0040a357
cmp eax, 1
je 0x40a5e1
cmp eax, 6
jne 0x40a4d0
cmp byte [edi], 0
jne 0x40a606
cmp dword [ebx], 0
jne 0x40a606
mov ebx, dword [ebp + 0x5c]
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40a550
xor esi, esi
inc esi
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret 0x18