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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x42733c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edi + 4]
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x409ce9
sub esi, ecx
mov ecx, dword [edi]
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409cf7
sub ecx, ebx
add esi, ecx
mov ecx, dword [edx + 0x110]
test ecx, ecx
je 0x409d1a
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409d0f
sub ecx, edx
add esi, ecx
add esi, 5
push esi
mov dword [ebp - 0x258], esi
call fcn.0041b0e0
mov ebx, eax
push esi
mov dword [ebp - 0x25c], ebx
call fcn.0041b0e0
pop ecx
pop ecx
mov dword [ebp - 0x254], eax
test ebx, ebx
je 0x40a05a
test eax, eax
je 0x40a05a
push dword [edi + 4]
push esi
push ebx
call fcn.00404171
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409d5e
sub ecx, edx
lea eax, [ecx + ebx]
push eax
push ebx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
mov eax, dword [edi]
jne 0x409d7e
add eax, 2
jmp 0x409d7f
inc eax
push eax
push esi
push ebx
call fcn.00405b44
mov eax, dword [edi + 4]
xor ecx, ecx
mov dword [ebp - 0x250], ecx
cmp dword [eax + 0x114], ecx
je 0x409da8
push ebx
call fcn.00411eb6
test eax, eax
je 0x40a063
push ebx
push esi
push dword [ebp - 0x254]
call fcn.00404171
push 0x4014d4
push esi
push dword [ebp - 0x254]
call fcn.00405b44
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x250], eax
cmp eax, 0xffffffff
je 0x409f25
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, eax
test byte [ebp - 0x24c], 0x10
je 0x409ef4
push 0x4015ec
lea eax, [ebp - 0x220]
push eax
call ebx
test eax, eax
je 0x409ef4
push 0x40161c
lea eax, [ebp - 0x220]
push eax
call ebx
test eax, eax
je 0x409ef4
cmp dword [0x427210], 0
jne 0x409e4d
lea eax, [ebp - 0x220]
push 0x401620
push eax
call fcn.0041b05f
pop ecx
pop ecx
test eax, eax
je 0x409ef4
test dword [ebp - 0x24c], 0x400
je 0x409e66
cmp dword [0x4271dc], 0
je 0x409ef4
mov eax, dword [edi + 4]
cmp dword [eax + 0x11c], 0
je 0x409ee7
push dword [eax + 0x11c]
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.00404171
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409e92
mov eax, dword [edi]
sub ecx, edx
cmp byte [ebp + ecx - 0x10d], 0x5c
jne 0x409eac
add eax, 2
jmp 0x409ead
inc eax
push eax
push 0x105
lea eax, [ebp - 0x10c]
push eax
call fcn.00405b44
lea eax, [ebp - 0x220]
push eax
push 0x105
lea eax, [ebp - 0x10c]
push eax
call fcn.00405b44
lea eax, [ebp - 0x10c]
push eax
call fcn.004097a6
test eax, eax
je 0x409ef4
lea eax, [ebp - 0x220]
push eax
push edi
call fcn.00409b4e
cmp dword [0x429d24], 0
jne 0x409f13
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409df0
mov esi, dword [ebp - 0x258]
mov ebx, dword [ebp - 0x25c]
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push esi
push dword [ebp - 0x254]
call fcn.00404171
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x110]
test eax, eax
jne 0x409f4b
mov eax, 0x4014d4
push eax
push esi
mov esi, dword [ebp - 0x254]
push esi
call fcn.00405b44
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a053
cmp dword [0x429d24], 0
jne 0x40a04d
mov eax, dword [ebp - 0x22c]
mov ebx, dword [ebp - 0x230]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x24c]
test al, 0x10
jne 0x40a037
cmp dword [0x427210], 0
jne 0x40a00b
lea eax, [ebp - 0x220]
push 0x401628
push eax
call fcn.0041b05f
pop ecx
pop ecx
test eax, eax
je 0x40a037
lea eax, [ebp - 0x220]
push 0x401630
push eax
call fcn.0041b05f
pop ecx
pop ecx
test eax, eax
je 0x40a037
lea eax, [ebp - 0x220]
push 0x401640
push eax
call fcn.0041b05f
pop ecx
pop ecx
test eax, eax
je 0x40a037
mov eax, dword [ebp - 0x24c]
push 0
push eax
push dword [ebp - 0x258]
mov eax, dword [edi + 4]
push dword [ebp - 0x250]
push ebx
push dword [ebp - 0x260]
push dword [eax + 0x114]
lea eax, [ebp - 0x220]
push eax
push edi
call fcn.00409c2c
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409f72
mov ebx, dword [ebp - 0x25c]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x250], eax
push ebx
call fcn.0041b0a6
push dword [ebp - 0x254]
call fcn.0041b0a6
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x250], 0
pop ecx
pop ecx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x18], ebx
je 0x40a0ae
push dword [edi + 0x14]
call fcn.00413530
jmp 0x40a0a8
cmp dword [0x429d24], 0
jne 0x40a0ae
push ebx
push esi
call fcn.00409cc8
push esi
call fcn.0041357f
mov esi, eax
test esi, esi
jne 0x40a092
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419fba
leave
ret 8