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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov dword [ebp - 0x26c], ecx
mov eax, dword [ebp - 0x26c]
mov dword [eax + 0x17c], 0
jmp 0x50e3ac
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ecx + 0x17c]
add edx, 1
mov eax, dword [ebp - 0x26c]
mov dword [eax + 0x17c], edx
mov ecx, dword [ebp - 0x26c]
cmp dword [ecx + 0x17c], 0x104
jae 0x50e3d4
mov edx, dword [ebp - 0x26c]
mov eax, dword [edx + 0x17c]
mov byte [ebp + eax - 0x114], 0
jmp 0x50e391
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x17c], 0
jmp 0x50e401
mov edx, dword [ebp - 0x26c]
mov eax, dword [edx + 0x17c]
add eax, 1
mov ecx, dword [ebp - 0x26c]
mov dword [ecx + 0x17c], eax
mov edx, dword [ebp - 0x26c]
cmp dword [edx + 0x17c], 0xe
jae 0x50e423
mov eax, dword [ebp - 0x26c]
mov ecx, dword [eax + 0x17c]
mov byte [ebp + ecx - 0x10], 0
jmp 0x50e3e6
push 0x104
lea edx, [ebp - 0x264]
push edx
call dword [sym.imp.MSVCRT.dll__getcwd]
add esp, 8
push eax
push 0x5b3d54
mov eax, dword [ebp - 0x26c]
add eax, 0x60
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, dword [ebp - 0x26c]
add ecx, 0x60
push ecx
mov ecx, dword [ebp - 0x26c]
add ecx, 0x580
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp dword [0x5b8508], 0
je 0x50e491
jmp 0x50e59c
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov ecx, dword [ebp - 0x140]
and ecx, 0x10
test ecx, ecx
jne 0x50e580
movsx edx, byte [ebp - 0x114]
test edx, edx
jne 0x50e4e1
jmp 0x50e59c
lea eax, [ebp - 0x114]
push eax
push 0x5b3d58
mov ecx, dword [ebp - 0x26c]
add ecx, 0x60
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp - 0x26c]
add edx, 0x60
push edx
mov ecx, dword [ebp - 0x26c]
add ecx, 0x540
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 0x5b3d5c
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
jne 0x50e557
mov ecx, dword [ebp - 0x120]
push ecx
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x26c]
call fcn.004f79e5
jmp 0x50e580
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x120]
push ecx
lea edx, [ebp - 0x114]
push edx
mov ecx, dword [ebp - 0x26c]
call fcn.004f79e5
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x50e483
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp dword [0x5b8508], 0
je 0x50e5ce
jmp 0x50e694
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov edx, dword [ebp - 0x140]
and edx, 0x10
cmp edx, 0x10
jne 0x50e678
push 0x5b3d60
lea eax, [ebp - 0x114]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x50e63b
push 0x5b3d64
lea ecx, [ebp - 0x114]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x50e63d
jmp 0x50e678
movsx edx, byte [ebp - 0x114]
test edx, edx
jne 0x50e64a
jmp 0x50e694
mov ecx, dword [ebp - 0x26c]
call fcn.0050e6b5
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
test eax, eax
jne 0x50e678
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x26c]
call fcn.0050e370
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x50e5c0
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0x5b3d68
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
mov esp, ebp
pop ebp
ret 4