Function at 0x4f0d50
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 0x4f0fec
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.004dedb8
test al, al
je 0x4f0e5d
xor eax, eax
push ebp
push 0x4f0e4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0047abb4
mov eax, dword [edi + 0x4fc]
mov edx, dword [ebp - 4]
call fcn.004dec34
mov eax, dword [edi + 0x4fc]
call fcn.004deb4c
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4f0e41
inc ebx
xor esi, esi
mov eax, dword [edi + 0x4fc]
mov edx, esi
call fcn.004dec64
lea edx, [ebp - 0xc]
call fcn.004de8dc
lea eax, [ebp - 0x260]
mov edx, dword [ebp - 0xc]
call fcn.00404624
mov eax, dword [ebp - 0x260]
call fcn.004a9c78
test al, al
je 0x4f0e3d
sub al, 0xc
je 0x4f0e3d
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 0x4f0dfa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f0f08
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x264]
mov ecx, 0x4f1000
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 0x4f0efb
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.004a9c78
test al, al
je 0x4f0ee4
sub al, 0xc
je 0x4f0ee4
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 0x4f0e8f
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 0x4f0f8c
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, 0x4f100c
call fcn.00404e14
jne 0x4f0f6f
lea eax, [ebp - 0xc]
mov ecx, 4
mov edx, 1
call fcn.00404ee4
mov eax, dword [0x502568]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.004dfd1c
mov eax, dword [0x502568]
mov eax, dword [eax]
mov dl, 1
call fcn.004dfcf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0ff3
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