Function at 0x4d8930
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x550
mov edx, dword [ebp + 0x14]
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x9c]
push eax
mov eax, dword [ebp + 0x10]
push ecx
xor ebx, ebx
push edx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call fcn.004c7cd0
add esp, 0x10
lea ecx, [ebp - 0x9c]
push str.unKnown
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4d8c99
cmp dword [ebp - 0x14], ebx
je 0x4d8c99
lea edi, [ebp - 0x9c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x1c], eax
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x18]
mov dword [ebp + 0x18], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x45c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [ebp - 0x55c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x45c]
push ecx
call fcn.004f2beb
lea edx, [ebp - 0x45c]
lea eax, [ebp - 0x55c]
push edx
push str._s.
push eax
call fcn.004f175f
add esp, 0x10
lea ecx, [ebp - 0x25c]
lea edx, [ebp - 0x55c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4d8b60
test byte [ebp - 0x25c], 0x10
jne 0x4d8b3b
cmp byte [ebp - 0x230], 0x2e
je 0x4d8b3b
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x230]
push eax
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4d8b3b
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x230]
push eax
push ecx
push edi
mov byte [ebp - 0x11c], 0
mov dword [ebp - 0x14], 0
call fcn.004d8d20
add esp, 0x10
cmp eax, 1
jne 0x4d8aaf
mov ecx, dword [ebp + 0x18]
inc ecx
add ebx, 3
mov dword [ebp + 0x18], ecx
jmp 0x4d8abe
cmp eax, 2
jne 0x4d8abe
mov ecx, dword [ebp + 0x18]
inc ecx
add ebx, 4
mov dword [ebp + 0x18], ecx
cmp dword [ebp + 0x18], 5
jg 0x4d8b60
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x230]
push eax
push ecx
push edi
call fcn.004c7cd0
add esp, 0x10
lea edx, [ebp - 0x9c]
lea eax, [ebp - 0x11c]
push edx
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4d8b2c
lea ecx, [ebp - 0x230]
inc ebx
push ecx
call fcn.004ab3c0
add esp, 4
test eax, eax
jle 0x4d8b14
add dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x100000
jle 0x4d8b27
add ebx, 4
mov dword [ebp - 0x18], 0
cmp ebx, 0xf
je 0x4d8b60
mov edi, dword [ebp - 0x1c]
inc edi
cmp edi, 0xfa
mov dword [ebp - 0x1c], edi
je 0x4d8b63
lea edx, [ebp - 0x25c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4d8a37
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
jmp 0x4d8a37
mov edi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x25c]
push eax
push 0x50e1d4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4d8c6b
test byte [ebp - 0x25c], 0x10
je 0x4d8c46
cmp byte [ebp - 0x230], 0x2e
je 0x4d8c46
lea ecx, [ebp - 0x2dc]
lea edx, [ebp - 0x35c]
push ecx
lea eax, [ebp - 0x11c]
push edx
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x230]
push eax
push ecx
push edx
mov byte [ebp - 0x11c], 0
mov dword [ebp - 0x14], 0
call fcn.004c7ea0
add esp, 0x14
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x11c]
push eax
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4d8bf9
add ebx, 4
cmp ebx, 0xf
jg 0x4d8c6b
lea edx, [ebp - 0x9c]
lea eax, [ebp - 0x35c]
push edx
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4d8c1b
add ebx, 4
cmp ebx, 0xf
jg 0x4d8c6b
lea ecx, [ebp - 0x9c]
lea edx, [ebp - 0x2dc]
push ecx
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4d8c3d
add ebx, 4
cmp ebx, 0xf
jg 0x4d8c6b
inc edi
cmp edi, 0x15e
je 0x4d8c6b
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4d8b7e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
jmp 0x4d8b7e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push str.c:endpcache
mov dword [ecx], ebx
call fcn.004f2beb
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, str.unKnown
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [ebp + 0x1c]
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [eax], ebx
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret