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

Disassembly:
push 0xffffffffffffffff
push 0x405beb
mov eax, dword fs:[0]
push eax
sub esp, 0xe5c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xe58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xe70]
mov dword fs:[0], eax
mov eax, dword [esp + 0xe84]
mov ecx, dword [esp + 0xe88]
mov ebp, dword [esp + 0xe8c]
push 0x3ff
lea edx, [esp + 0x671]
push 0
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov byte [esp + 0x678], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea eax, [esp + 0xa71]
push 0
push eax
mov byte [esp + 0xa78], 0
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0xe8c]
lea edx, [esp + 0xa78]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402606
lea eax, [esp + 0xa6c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402620
sub eax, edx
cmp byte [esp + eax + 0xa6b], 0x5c
je 0x402654
lea edi, [esp + 0xa6c]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x402640
mov cx, word [0x406354]
mov word [edi], cx
lea edx, [esp + 0xa6c]
push edx
push str._s.
lea eax, [esp + 0x674]
push 0x400
push eax
call dword [sym.imp.MSVCR80.dll_sprintf_s]
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x670]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
jne 0x40269c
xor eax, eax
jmp 0x402960
mov dword [esp + 0x1c], 0
mov bl, byte [esp + 0x24]
test bl, 0x10
je 0x402708
cmp byte [esp + 0x50], 0x2e
je 0x40292a
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xa70]
push ecx
push str._s_s_
lea edx, [esp + 0x678]
push 0x400
push edx
call dword [sym.imp.MSVCR80.dll_sprintf_s]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push ebp
push eax
push ecx
lea edx, [esp + 0x678]
push edx
call fcn.00402560
add esp, 0x10
test eax, eax
je 0x402955
jmp 0x40292a
lea eax, [esp + 0x50]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402710
sub eax, edx
cmp eax, 5
jb 0x40292a
lea eax, [esp + 0x50]
lea edx, [eax + 1]
jmp 0x402730
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402730
sub eax, edx
lea esi, [esp + eax + 0x4c]
mov edi, str..exe
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4027c9
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402756
sub eax, edx
mov edi, str..EXE
lea esi, [esp + eax + 0x4c]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4027c9
lea eax, [esp + 0x50]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402780
sub eax, edx
lea esi, [esp + eax + 0x4c]
mov edi, str..scr
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4027c9
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4027a6
sub eax, edx
mov edi, str..SCR
lea esi, [esp + eax + 0x4c]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40292a
cmp dword [esp + 0x44], 0x6400000
jae 0x40292a
cmp dword [esp + 0x40], 0
jne 0x40292a
test bl, 1
jne 0x40292a
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xa70]
push ecx
push 0x406254
lea edx, [esp + 0x678]
push 0x400
push edx
call dword [sym.imp.MSVCR80.dll_sprintf_s]
add esp, 0x14
xor edi, edi
push 0x100
lea eax, [esp + 0x170]
push edi
push eax
mov dword [esp + 0x170], edi
mov dword [esp + 0x174], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
lea ecx, [esp + 0x270]
push edi
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x66c]
lea ecx, [esp + 0x164]
mov dword [esp + 0xe78], edi
call fcn.00405040
test eax, eax
je 0x402913
lea edx, [esp + 0x164]
push edx
call fcn.00402010
mov esi, eax
add esp, 4
cmp esi, 0xa
je 0x402892
cmp esi, 0xb
je 0x402892
cmp esi, 0xc
jne 0x402907
mov eax, dword [esp + 0x18]
add dword [eax], 1
mov ecx, esi
lea edx, [esp + 0x164]
call fcn.004023f0
test eax, eax
je 0x4028d5
mov eax, dword [esp + 0x14]
add dword [eax], 1
cmp ebp, edi
je 0x402907
cmp esi, 0xb
mov eax, 0x40625c
jbe 0x4028c5
mov eax, 0x406260
lea ecx, [esp + 0x66c]
push ecx
push eax
push str.TREAT___s_OK____s_n
jmp 0x4028f6
cmp ebp, edi
je 0x402907
cmp esi, 0xb
mov eax, 0x40625c
jbe 0x4028e8
mov eax, 0x406260
lea edx, [esp + 0x66c]
push edx
push eax
push str.TREAT___s_FAIL__s_n
push ebp
call dword [sym.imp.MSVCR80.dll_fprintf]
push ebp
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 0x14
lea eax, [esp + 0x164]
call fcn.00404ff0
lea eax, [esp + 0x164]
mov dword [esp + 0xe78], 0xffffffff
call fcn.00404ff0
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4026a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x402955
mov dword [esp + 0x1c], 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xe70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe58]
xor ecx, esp
call fcn.00405321
add esp, 0xe68
ret