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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov dword [ebp - 0x164], ecx
cmp dword [ebp + 0xc], 0
jne 0x401ff9
xor al, al
jmp 0x4023f3
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov word [ebp - 0x154], ax
mov ecx, dword [ebp - 0x154]
and ecx, 0xffff
add ecx, 4
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x158], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x158]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x408074
mov ecx, dword [ebp - 0x158]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
jne 0x40209a
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor al, al
jmp 0x4023f3
mov edx, dword [ebp - 0x148]
and edx, 0x10
test edx, edx
je 0x402161
push 0x408078
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x40215c
push 0x40807c
lea ecx, [ebp - 0x11c]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x40215c
cmp dword [ebp - 8], 0
jne 0x4020fb
push 0xc
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
jmp 0x402115
push 0xc
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x11c]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx], eax
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 4]
mov byte [eax + 4], 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
jmp 0x4021eb
mov edx, dword [ebp - 0x148]
and edx, 2
test edx, edx
jne 0x4021eb
cmp dword [ebp - 8], 0
jne 0x40218a
push 0xc
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x4021a4
push 0xc
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x11c]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
add eax, 1
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx], eax
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 4]
mov byte [eax + 4], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40209a
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 8], 0
jne 0x402239
push str.Empty
push 0xffffffffffffffff
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [ebp - 4], 0
jmp 0x402398
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x40224a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x402398
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x154]
and edx, 0xffff
lea eax, [eax + edx + 5]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jne 0x402290
jmp 0x402398
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x15c]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x15c]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax + 4]
test ecx, ecx
je 0x402306
push 0x408088
mov edx, dword [ebp - 0x15c]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
mov eax, dword [ebp - 0x15c]
push eax
push 0
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x164]
call fcn.004019dc
push eax
mov ecx, dword [ebp - 0x164]
call fcn.00401fdd
jmp 0x402383
mov dword [ebp - 0x160], 0
lea ecx, [ebp - 0x160]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x164]
call fcn.00401a93
and eax, 0xff
test eax, eax
je 0x40234f
mov ecx, dword [ebp - 0x160]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x164]
call fcn.00401ac2
jmp 0x402383
mov edx, dword [ebp - 0x15c]
push edx
mov ecx, dword [ebp - 0x164]
call fcn.004017d4
and eax, 0xff
test eax, eax
je 0x402383
push 1
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x164]
call fcn.004019dc
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x402241
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14c], 0
cmp dword [ebp - 4], 0
je 0x4023e1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 4], ecx
jmp 0x4023a8
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret 8