Function at 0x4d8478
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd54
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2ac], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ed0
xor eax, eax
push ebp
push 0x4d88d8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x2ac]
mov ecx, 0x4d88f0
mov edx, dword [ebp - 4]
call fcn.00404d2c
mov eax, dword [ebp - 0x2ac]
call fcn.00404ee0
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
setne al
jmp 0x4d8899
mov eax, dword [0x580cd8]
cmp byte [eax], 2
je 0x4d88a1
mov eax, dword [0x581040]
mov eax, dword [eax]
call fcn.0048d8b8
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x130]
mov ecx, 0x104
call fcn.00404c90
mov eax, dword [ebp - 0x15c]
cmp eax, 0x10
je 0x4d8553
cmp eax, 2
je 0x4d8553
cmp eax, 4
je 0x4d8553
cmp eax, 0x80
je 0x4d8553
cmp eax, 0x100
je 0x4d8553
cmp eax, 0x13
je 0x4d8553
cmp eax, 0x20
je 0x4d8553
cmp eax, 0x16
jne 0x4d8883
mov eax, dword [ebp - 0x10]
mov edx, 0x4d8900
call fcn.00404e2c
je 0x4d8883
mov eax, dword [ebp - 0x10]
mov edx, 0x4d890c
call fcn.00404e2c
je 0x4d8883
cmp dword [ebp + 8], 1
jne 0x4d86fe
mov eax, dword [ebp + 0xc]
call fcn.004d0190
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
mov edx, dword [0x580bb0]
mov dl, byte [edx + 0x14]
mov byte [eax + 0xc], dl
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x13
mov edx, 0x4d8918
call fcn.00404a74
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
mov dword [eax + 0xe], 6
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x1f
mov edx, 0x4d8928
call fcn.00404a74
push dword [ebp - 4]
push 0x4d8940
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x3b
mov edx, 3
call fcn.00404da0
push dword [ebp - 4]
push 0x4d8940
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x2f
mov edx, 3
call fcn.00404da0
inc dword [ebp - 0x1c]
push dword [ebp - 4]
push 0x4d8940
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404da0
mov eax, dword [ebp - 0x14]
call fcn.004099b4
test al, al
je 0x4d86ed
xor eax, eax
push ebp
push 0x4d86d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x2a8]
call fcn.00402f40
mov edx, 1
lea eax, [ebp - 0x2a8]
call fcn.004035ec
call fcn.00402944
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x4b
push eax
lea eax, [ebp - 0x2a8]
call fcn.0040328c
call fcn.00402944
pop edx
mov dword [edx], eax
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
mov eax, dword [eax + 0x4b]
mov edx, dword [0x581294]
add dword [edx], eax
lea eax, [ebp - 0x2a8]
call fcn.004030b0
call fcn.00402944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d86ed
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004d4158
cmp dword [ebp + 8], 2
jne 0x4d8883
mov eax, dword [ebp + 0xc]
call fcn.004d0190
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
mov edx, dword [0x580bb0]
mov dl, byte [edx + 0x14]
mov byte [eax + 0xc], dl
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x13
mov edx, 0x4d8918
call fcn.00404a74
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x1f
mov edx, 0x4d894c
call fcn.00404a74
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
mov dword [eax + 0xe], 9
push dword [ebp - 4]
push 0x4d8940
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x47
mov edx, 3
call fcn.00404da0
push dword [ebp - 4]
push 0x4d8940
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x2f
mov edx, 3
call fcn.00404da0
inc dword [ebp - 0x1c]
push dword [ebp - 4]
push 0x4d8940
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404da0
mov eax, dword [ebp - 0x14]
call fcn.004099b4
test al, al
je 0x4d8872
xor eax, eax
push ebp
push 0x4d8857
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x2a8]
call fcn.00402f40
mov edx, 1
lea eax, [ebp - 0x2a8]
call fcn.004035ec
call fcn.00402944
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
add eax, 0x4b
push eax
lea eax, [ebp - 0x2a8]
call fcn.0040328c
call fcn.00402944
pop edx
mov dword [edx], eax
mov edx, ebx
mov eax, dword [ebp + 0xc]
call fcn.004d01a4
mov eax, dword [eax + 0x4b]
mov edx, dword [0x581294]
add dword [edx], eax
lea eax, [ebp - 0x2a8]
call fcn.004030b0
call fcn.00402944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d8872
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004d4158
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d84f0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d88df
lea eax, [ebp - 0x2ac]
call fcn.00404a20
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 4]
call fcn.00404a20
ret