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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x4ed2fd
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404728
xor eax, eax
push ebp
push 0x4ed7b6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
mov ecx, 0x4ed7cc
mov edx, dword [ebp - 4]
call fcn.00404584
mov eax, dword [ebp - 0x15c]
call fcn.00404738
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4ed767
mov bl, 1
jmp 0x4ed767
mov eax, dword [0x53a7c8]
cmp byte [eax], 1
je 0x4ed76f
mov eax, dword [0x53ab08]
mov eax, dword [eax]
call fcn.00490870
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.004044e8
mov eax, dword [ebp - 0x158]
cmp eax, 0x10
je 0x4ed3c9
cmp eax, 2
je 0x4ed3c9
cmp eax, 4
je 0x4ed3c9
cmp eax, 0x80
je 0x4ed3c9
cmp eax, 0x100
je 0x4ed3c9
cmp eax, 0x13
je 0x4ed3c9
cmp eax, 0x20
je 0x4ed3c9
cmp eax, 0x16
jne 0x4ed488
mov eax, dword [0x53ab30]
inc dword [eax]
mov eax, dword [0x53ab30]
mov eax, dword [eax]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x4ed40c
push dword [ebp - 4]
push 0x4ed7dc
push dword [ebp - 0x10]
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.004045f8
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 0xc]
call fcn.004707c4
mov eax, dword [ebp - 0x10]
mov edx, 0x4ed7e8
call fcn.00404684
je 0x4ed488
mov eax, dword [ebp - 0x10]
mov edx, 0x4ed7f4
call fcn.00404684
je 0x4ed488
push dword [ebp - 4]
push 0x4ed7dc
push dword [ebp - 0x10]
lea eax, [ebp - 0x164]
mov edx, 3
call fcn.004045f8
mov eax, dword [ebp - 0x164]
call fcn.004092ac
test al, al
je 0x4ed488
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
push 0x4ed7dc
push dword [ebp - 0x10]
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004045f8
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004ed2f4
lea edx, [ebp - 0x16c]
mov eax, dword [ebp - 0x10]
call fcn.0040955c
mov eax, dword [ebp - 0x16c]
mov edx, 0x4ed800
call fcn.00404684
jne 0x4ed751
push dword [ebp - 4]
push 0x4ed7dc
push dword [ebp - 0x10]
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.004045f8
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x14]
call fcn.004ed0e4
cmp dword [ebp - 0x14], 0
je 0x4ed751
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 0x14]
call fcn.004088b4
mov eax, dword [ebp - 0x174]
push eax
lea edx, [ebp - 0x178]
mov eax, 0x4ed810
call fcn.004088b4
mov eax, dword [ebp - 0x178]
pop edx
call fcn.0040487c
test eax, eax
jne 0x4ed751
mov eax, dword [0x53a530]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.004ad43c
test al, al
je 0x4ed751
lea edx, [ebp - 0x17c]
mov eax, dword [ebp - 0x14]
call fcn.0040955c
cmp dword [ebp - 0x17c], 0
jne 0x4ed650
mov eax, dword [ebp - 0x14]
call fcn.004092ac
test al, al
jne 0x4ed751
mov edx, dword [ebp - 0x14]
mov eax, 0x4ed81c
call fcn.0040487c
test eax, eax
jne 0x4ed751
mov eax, dword [ebp + 8]
call fcn.004add00
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004add14
mov edx, dword [0x53a6ac]
mov dl, byte [edx + 0xe]
mov byte [eax + 0xc], dl
push dword [ebp - 4]
push 0x4ed7dc
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004add14
add eax, 0xd
mov edx, 3
call fcn.004045f8
push dword [ebp - 4]
push 0x4ed7dc
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004add14
add eax, 0x11
mov edx, 3
call fcn.004045f8
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004add14
add eax, 0x15
mov edx, dword [ebp - 0x14]
call fcn.004042cc
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004add14
add eax, 0x19
call fcn.00404278
lea eax, [ebp - 0x180]
push eax
mov eax, dword [ebp + 8]
call fcn.0041da20
mov dword [ebp - 0x188], eax
mov byte [ebp - 0x184], 0
lea edx, [ebp - 0x188]
xor ecx, ecx
mov eax, 0x4ed828
call fcn.00409de4
mov eax, dword [ebp - 0x180]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x22c]
mov edx, dword [ebp - 8]
call fcn.00450c68
mov eax, dword [eax + 8]
xor edx, edx
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x4ed751
mov edx, dword [ebp - 0x14]
mov eax, 0x4ed81c
call fcn.0040487c
test eax, eax
jne 0x4ed751
mov eax, dword [ebp - 0x14]
call fcn.004ecea0
test al, al
jne 0x4ed751
mov eax, dword [ebp + 8]
call fcn.004add00
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004add14
mov edx, dword [0x53a6ac]
mov dl, byte [edx + 0xe]
mov byte [eax + 0xc], dl
push dword [ebp - 4]
push 0x4ed7dc
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004add14
add eax, 0xd
mov edx, 3
call fcn.004045f8
push dword [ebp - 4]
push 0x4ed7dc
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004add14
add eax, 0x11
mov edx, 3
call fcn.004045f8
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004add14
add eax, 0x15
mov edx, dword [ebp - 0x14]
call fcn.004042cc
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.004add14
add eax, 0x19
call fcn.00404278
lea eax, [ebp - 0x18c]
push eax
mov eax, dword [ebp + 8]
call fcn.0041da20
mov dword [ebp - 0x188], eax
mov byte [ebp - 0x184], 0
lea edx, [ebp - 0x188]
xor ecx, ecx
mov eax, 0x4ed828
call fcn.00409de4
mov eax, dword [ebp - 0x18c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x22c]
mov edx, dword [ebp - 8]
call fcn.00450c68
mov eax, dword [eax + 8]
xor edx, edx
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x20]
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4ed366
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed7bd
lea eax, [ebp - 0x18c]
call fcn.00404278
lea eax, [ebp - 0x180]
mov edx, 0xa
call fcn.0040429c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040429c
lea eax, [ebp - 4]
call fcn.00404278
ret