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

Disassembly:
push 0xffffffffffffffff
push 0x4061bb
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 0x402b76
lea eax, [esp + 0xa6c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402b90
sub eax, edx
cmp byte [esp + eax + 0xa6b], 0x5c
je 0x402bc4
lea edi, [esp + 0xa6c]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x402bb0
mov cx, word [0x407380]
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 0x402c0c
xor eax, eax
jmp 0x402ed0
mov dword [esp + 0x1c], 0
mov bl, byte [esp + 0x24]
test bl, 0x10
je 0x402c78
cmp byte [esp + 0x50], 0x2e
je 0x402e9a
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.00402ad0
add esp, 0x10
test eax, eax
je 0x402ec5
jmp 0x402e9a
lea eax, [esp + 0x50]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402c80
sub eax, edx
cmp eax, 5
jb 0x402e9a
lea eax, [esp + 0x50]
lea edx, [eax + 1]
jmp 0x402ca0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402ca0
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 0x402d39
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402cc6
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 0x402d39
lea eax, [esp + 0x50]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402cf0
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 0x402d39
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402d16
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 0x402e9a
cmp dword [esp + 0x44], 0x6400000
jae 0x402e9a
cmp dword [esp + 0x40], 0
jne 0x402e9a
test bl, 1
jne 0x402e9a
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xa70]
push ecx
push 0x407288
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.004055f0
test eax, eax
je 0x402e83
lea edx, [esp + 0x164]
push edx
call fcn.00402580
mov esi, eax
add esp, 4
cmp esi, 0xa
je 0x402e02
cmp esi, 0xb
je 0x402e02
cmp esi, 0xc
jne 0x402e77
mov eax, dword [esp + 0x18]
add dword [eax], 1
mov ecx, esi
lea edx, [esp + 0x164]
call fcn.00402960
test eax, eax
je 0x402e45
mov eax, dword [esp + 0x14]
add dword [eax], 1
cmp ebp, edi
je 0x402e77
cmp esi, 0xb
mov eax, 0x407290
jbe 0x402e35
mov eax, 0x407294
lea ecx, [esp + 0x66c]
push ecx
push eax
push str.TREAT___s_OK____s_n
jmp 0x402e66
cmp ebp, edi
je 0x402e77
cmp esi, 0xb
mov eax, 0x407290
jbe 0x402e58
mov eax, 0x407294
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.004055a0
lea eax, [esp + 0x164]
mov dword [esp + 0xe78], 0xffffffff
call fcn.004055a0
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402c14
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x402ec5
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.004058f0
add esp, 0xe68
ret