Function at 0x4e6f50
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14c
test eax, eax
push ebx
je 0x4e718a
mov ebx, dword [esp + 0x15c]
test ebx, ebx
je 0x4e718a
push ebp
push esi
push edi
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
mov byte [esp + 0x17], 0
rep stosd dword es:[edi], eax
mov eax, 0x81c668
mov dword [esp + 0x18], 1
test eax, eax
je 0x4e6fdf
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, ebx
lea esi, [edi + 1]
push esi
call fcn.005dd330
mov eax, dword [ebx]
mov ecx, dword [0x809d38]
cmp eax, ecx
je 0x4e6fc8
mov dword [eax - 4], edi
mov edi, dword [ebx]
mov ecx, esi
mov edx, ecx
mov esi, 0x81c668
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x809d38]
mov eax, str.data_
test eax, eax
mov dword [esp + 0x10], edi
je 0x4e7059
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4e700e
inc ecx
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005dcfa0
mov edi, str.data_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x10]
lea esi, [ebp + 1]
push esi
call fcn.005dd330
mov edi, dword [esp + 0x10]
mov eax, dword [0x809d38]
cmp edi, eax
je 0x4e7040
mov dword [edi - 4], ebp
mov edi, dword [esp + 0x10]
mov ecx, esi
mov esi, str.data_
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov eax, dword [0x809d38]
xor ebp, ebp
cmp edi, eax
je 0x4e7081
mov ebp, dword [edi - 4]
test ebp, ebp
jne 0x4e7081
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x10]
push ebp
call fcn.004029d0
mov edi, dword [esp + 0x160]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x10]
lea edi, [esi + ebp]
lea eax, [edi + 1]
push eax
call fcn.005dd230
push edi
lea ecx, [esp + 0x14]
call fcn.004029d0
mov edx, dword [esp + 0x10]
lea ecx, [esi + 1]
mov esi, dword [esp + 0x160]
mov eax, ecx
lea edi, [edx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4e7172
mov edi, dword [esp + 0x164]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4e716b
lea eax, [esp + 0x48]
push 0
push eax
call fcn.005e6c50
add esp, 8
cmp eax, edi
je 0x4e711e
lea ecx, [esp + 0x1c]
push ecx
push ebp
call esi
mov dword [esp + 0x18], eax
jmp 0x4e70f5
lea edx, [esp + 0x48]
test edx, edx
je 0x4e7166
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
lea edi, [esi + 1]
push edi
call fcn.005dd330
mov eax, dword [ebx]
mov ecx, dword [0x809d38]
cmp eax, ecx
je 0x4e7150
mov dword [eax - 4], esi
mov ecx, edi
mov edi, dword [ebx]
mov eax, ecx
lea esi, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x17], 1
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
call fcn.005dd410
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
xor al, al
pop ebx
add esp, 0x14c
ret