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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x17c
mov dword [esp], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
call sub.msvcrt.dll_strlen
mov ebp, eax
add eax, 3
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
je 0x4dc908
mov ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
lea eax, [ebp + 1]
mov byte [ebx + ebp], 0x5c
mov byte [ebx + ebp + 1], 0x2a
mov byte [ebx + ebp + 2], 0
mov dword [esp], ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
sub esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x4dc990
mov dword [esp], ebx
call fcn.004f1ae0
mov dword [esp + 0x28], 0
jmp 0x4dc7c0
lea esi, [esp + 0x5c]
mov edi, 0x501b5c
mov ecx, 3
repe cmpsb byte [esi], byte es:[edi]
je 0x4dc7a0
lea esi, [esp + 0x5c]
mov edi, 0x501b5f
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
jne 0x4dc8c0
lea esi, [esi]
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
sub esp, 8
test eax, eax
je 0x4dc970
lea esi, [esp + 0x5c]
mov edx, dword [esi]
add esi, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4dc7c4
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [esi + 2]
mov ecx, eax
cmove esi, edx
add cl, al
lea eax, [esp + 0x5c]
sbb esi, 3
sub esi, eax
lea edi, [ebp + esi]
lea eax, [edi + 2]
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x4dc8f8
mov eax, dword [esp + 0x10]
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x5c]
mov byte [ebx + ebp], 0x5c
mov dword [esp + 8], esi
lea esi, [edi + 1]
mov dword [esp + 4], ecx
add eax, ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov byte [ebx + edi + 1], 0
mov eax, dword [esp + 0x30]
test al, 0x10
jne 0x4dc771
test eax, 0x8a0
je 0x4dc8b0
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov eax, dword [esp + 0x190]
mov ecx, dword [eax]
lea eax, [esi + edx]
add eax, edi
cmp ecx, eax
jbe 0x4dc920
mov eax, dword [esp + 0x1c]
add edx, edi
mov dword [esp + 4], ebx
mov dword [esp], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x20]
add dword [esp + 0x28], 1
mov eax, dword [edi]
lea eax, [esi + eax + 1]
mov dword [edi], eax
lea esi, [esi]
mov dword [esp], ebx
call fcn.004f1ae0
jmp 0x4dc7a0
mov eax, dword [esp + 0x194]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x190]
mov edx, esi
mov dword [esp], eax
mov eax, ebx
call fcn.004dc6e0
add dword [esp + 0x28], eax
mov eax, dword [esi]
test eax, eax
jne 0x4dc8b0
mov dword [esp], ebx
call fcn.004f1ae0
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
sub ecx, edi
mov dword [esp], edi
add ecx, 0x2000
mov dword [esp + 4], ecx
mov dword [esp + 0x2c], ecx
call sub.msvcrt.dll_realloc
test eax, eax
mov ecx, dword [esp + 0x2c]
je 0x4dc9d5
mov edi, dword [esp + 0x24]
add ecx, eax
mov dword [edi], eax
mov eax, dword [esp + 0x190]
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov edi, dword [edi]
mov edx, dword [eax]
lea eax, [esi + edx]
add eax, edi
cmp ecx, eax
jbe 0x4dc8b0
jmp 0x4dc886
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov eax, dword [esp + 0x28]
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [0x51ae28]
test edx, edx
jle 0x4dc908
mov eax, dword [esp + 0x10]
mov dword [esp + 4], str.Cannot_open_directory__s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.004dc5f0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
add esp, 0x17c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call fcn.004f1ae0
mov eax, dword [esp + 0x24]
mov dword [eax], 0
jmp 0x4dc8f0