Function at 0x40a197
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.004392af
lea eax, [ebp - 0x1f0]
push 0x5c
push eax
call fcn.00457cb0
add esp, 0x14
test eax, eax
je 0x40a1f8
lea esi, [eax + 1]
lea eax, [ebp - 0x2f4]
push esi
push eax
call fcn.004572f0
lea eax, [ebp - 0x1f0]
push eax
mov byte [esi], 0
call fcn.00457520
add esp, 0xc
mov dword [ebp + 0x5c], eax
jmp 0x40a218
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0x2f4]
push eax
call fcn.004572f0
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 0x40a26b
push dword [ebp + 0x5c]
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x74]
lea eax, [ebp - 0xec]
push eax
call fcn.00423c3a
add esp, 0x10
test al, al
je 0x40a26f
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
test edi, edi
jne 0x40a239
mov esi, dword [0x464108]
jmp 0x40a306
mov edi, dword [ebp + 0x54]
lea eax, [ebp - 0xec]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
cmp byte [ecx], 0x6c
jne 0x40a2a9
mov ecx, dword [ecx + 0x14]
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x68]
push 2
call fcn.00402cee
mov ecx, dword [edi + 0x14]
cmp dword [ebp + 0x58], ecx
je 0x40a28e
jmp 0x40a2b7
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x68]
push 3
call fcn.00402cee
cmp eax, 1
je 0x40a2c1
cmp eax, 6
jne 0x40a310
mov eax, dword [ebp + 0x58]
test eax, eax
jne 0x40a317
lea eax, [ebp - 0xec]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
test edi, edi
je 0x40a2fe
push dword [ebp + 0x5c]
lea eax, [ebp - 0x1f0]
push eax
push dword [ebp + 0x74]
lea eax, [ebp - 0xec]
push eax
call fcn.00423c3a
add esp, 0x10
test al, al
jne 0x40a2c8
add dword [esi + 8], 1
adc dword [esi + 0xc], 0
test edi, edi
jne 0x40a27a
jmp 0x40a328
mov esi, eax
jmp 0x40a449
cmp eax, edi
jne 0x40a323
mov eax, dword [ebp + 0x6c]
mov byte [eax], 1
jmp 0x40a328
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
cmp dword [ebp + 0x7c], 0xffffffff
je 0x40a337
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x78], 0
je 0x40a374
mov edi, dword [ebp + 0x5c]
cmp edi, 0x100
ja 0x40a374
lea esi, [ebp + edi - 0x1f0]
push 0x45babc
push esi
call fcn.004572f0
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 0x40a37c
xor eax, eax
inc eax
jmp 0x40a454
lea eax, [ebp - 0x2f4]
push eax
call fcn.00457520
mov ebx, eax
add ebx, edi
pop ecx
mov dword [ebp + 0x5c], ebx
test byte [ebp - 0xec], 0x10
je 0x40a42e
cmp byte [ebp - 0xc0], 0x2e
jne 0x40a3c1
cmp byte [ebp - 0xbf], 0
je 0x40a42e
cmp byte [ebp - 0xbf], 0x2e
jne 0x40a3c1
cmp byte [ebp - 0xbe], 0
je 0x40a42e
lea eax, [ebp - 0xc0]
push eax
call fcn.00457520
add eax, ebx
cmp eax, 0x102
pop ecx
ja 0x40a42e
lea eax, [ebp - 0x2f4]
push eax
lea eax, [ebp - 0xc0]
push eax
push 0x45b4d4
push esi
call fcn.0040a5ef
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.0040a197
cmp eax, 1
je 0x40a421
cmp eax, 6
jne 0x40a310
cmp byte [edi], 0
jne 0x40a446
cmp dword [ebx], 0
jne 0x40a446
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 0x40a390
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