Function at 0x4f0d58
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
lea eax, [ebp - 4]
call fcn.004050a4
xor eax, eax
push ebp
push 0x4f0ff4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
call fcn.004ded78
test al, al
je 0x4f0e65
xor eax, eax
push ebp
push 0x4f0e56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0047ab74
mov eax, dword [edi + 0x50c]
mov edx, dword [ebp - 4]
call fcn.004debf4
mov eax, dword [edi + 0x50c]
call fcn.004deb0c
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4f0e49
inc ebx
xor esi, esi
mov eax, dword [edi + 0x50c]
mov edx, esi
call fcn.004dec24
lea edx, [ebp - 0xc]
call fcn.004de89c
lea eax, [ebp - 0x260]
mov edx, dword [ebp - 0xc]
call fcn.00404624
mov eax, dword [ebp - 0x260]
call fcn.004a9bf4
test al, al
je 0x4f0e45
sub al, 0xc
je 0x4f0e45
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4f0e02
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f0f10
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x264]
mov ecx, 0x4f1008
mov edx, dword [ebp - 4]
call fcn.00404d68
mov eax, dword [ebp - 0x264]
call fcn.00404cec
push eax
call sub.kernel32.dll_FindFirstFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f0f03
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x230]
mov ecx, 0x104
call fcn.00404c54
lea eax, [ebp - 0x268]
mov edx, dword [ebp - 0xc]
call fcn.00404624
mov eax, dword [ebp - 0x268]
call fcn.004a9bf4
test al, al
je 0x4f0eec
sub al, 0xc
je 0x4f0eec
lea eax, [ebp - 0x26c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404d68
mov edx, dword [ebp - 0x26c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x25c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4f0e97
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4f0f94
lea edx, [ebp - 0x270]
mov eax, dword [ebp - 4]
call fcn.00476bc8
mov edx, dword [ebp - 0x270]
lea eax, [ebp - 0xc]
call fcn.00404c70
lea eax, [ebp - 0x274]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404e98
mov eax, dword [ebp - 0x274]
mov edx, 0x4f1014
call fcn.00404e14
jne 0x4f0f77
lea eax, [ebp - 0xc]
mov ecx, 4
mov edx, 1
call fcn.00404ee4
mov eax, dword [0x502564]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.004dfcdc
mov eax, dword [0x502564]
mov eax, dword [eax]
mov dl, 1
call fcn.004dfcb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0ffb
lea eax, [ebp - 0x274]
call fcn.00404aa8
lea eax, [ebp - 0x270]
call fcn.00404370
lea eax, [ebp - 0x26c]
call fcn.00404aa8
lea eax, [ebp - 0x268]
call fcn.00404370
lea eax, [ebp - 0x264]
call fcn.00404aa8
lea eax, [ebp - 0x260]
call fcn.00404370
lea eax, [ebp - 0xc]
call fcn.00404aa8
lea eax, [ebp - 4]
call fcn.00404aa8
ret