Function at 0x4ec27c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2e
push 0
push 0
dec ecx
jne 0x4ec284
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c7c
xor eax, eax
push ebp
push 0x4ec648
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
mov ecx, 0x4ec660
mov edx, dword [ebp - 4]
call fcn.00404ad8
mov eax, dword [ebp - 0x154]
call fcn.00404c8c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4ec2e5
mov al, 1
jmp 0x4ec604
xor eax, eax
jmp 0x4ec604
cmp byte [ebx + 0x3d4], 2
je 0x4ec60c
mov eax, dword [0x533210]
mov eax, dword [eax]
call fcn.0048e660
lea eax, [ebp - 8]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404a3c
mov eax, dword [ebp - 0x150]
cmp eax, 0x10
je 0x4ec34e
cmp eax, 2
je 0x4ec34e
cmp eax, 4
je 0x4ec34e
cmp eax, 0x80
je 0x4ec34e
cmp eax, 0x100
je 0x4ec34e
cmp eax, 0x12
je 0x4ec34e
cmp eax, 0x13
je 0x4ec34e
cmp eax, 0x20
jne 0x4ec3ea
push dword [ebp - 4]
push 0x4ec670
push dword [ebp - 8]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404b4c
mov edx, dword [ebp - 0x158]
mov eax, dword [ebx + 0x354]
call fcn.0046dddc
mov eax, dword [ebp - 8]
mov edx, 0x4ec67c
call fcn.00404bd8
je 0x4ec3ea
mov eax, dword [ebp - 8]
mov edx, 0x4ec688
call fcn.00404bd8
je 0x4ec3ea
push dword [ebp - 4]
push 0x4ec670
push dword [ebp - 8]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00404b4c
mov eax, dword [ebp - 0x15c]
call fcn.004e9d2c
test al, al
je 0x4ec3ea
push dword [ebp - 4]
push 0x4ec670
push dword [ebp - 8]
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.00404b4c
mov edx, dword [ebp - 0x160]
mov eax, ebx
call fcn.004ec27c
mov eax, dword [ebx + 0x330]
mov eax, dword [eax + 0x22c]
call fcn.00451fa0
mov edi, eax
dec edi
test edi, edi
jl 0x4ec5ee
inc edi
xor esi, esi
mov eax, dword [0x533210]
mov eax, dword [eax]
call fcn.0048e660
cmp byte [ebx + 0x3d4], 2
je 0x4ec5ee
mov eax, dword [ebx + 0x330]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.00451fd0
call fcn.0045192c
test al, al
je 0x4ec5e6
mov eax, dword [ebx + 0x330]
mov eax, dword [eax + 0x22c]
mov edx, esi
call fcn.00451fd0
mov edx, dword [eax + 0x24]
lea eax, [ebp - 0x10]
call fcn.00404864
mov edx, dword [ebp - 0x10]
mov eax, 0x4ec694
call fcn.00404dd0
test eax, eax
jle 0x4ec56c
lea eax, [ebp - 0x164]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00404cec
mov eax, dword [ebp - 0x164]
mov edx, 0x4ec6a0
call fcn.00404bd8
jne 0x4ec548
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404d2c
lea edx, [ebp - 0x168]
mov eax, dword [ebp - 8]
call fcn.00409a54
mov edx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x10]
call fcn.00404bd8
jne 0x4ec5e6
mov edx, dword [0x4eaa9c]
mov eax, 0xc
call fcn.004056d0
mov edi, eax
mov eax, edi
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404a3c
push dword [ebp - 4]
push 0x4ec670
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404a3c
push dword [ebp - 0x16c]
lea eax, [edi + 4]
mov edx, 3
call fcn.00404b4c
mov eax, dword [ebp - 0x130]
mov dword [edi + 8], eax
mov edx, edi
mov eax, dword [ebx + 0x3dc]
call fcn.0041a594
jmp 0x4ec5ee
lea edx, [ebp - 0x170]
mov eax, dword [ebp - 8]
call fcn.00409a54
mov edx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x10]
call fcn.00404bd8
je 0x4ec5ee
jmp 0x4ec5e6
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404bd8
jne 0x4ec5e6
mov edx, dword [0x4eaa9c]
mov eax, 0xc
call fcn.004056d0
mov edi, eax
mov eax, edi
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404a3c
push dword [ebp - 4]
push 0x4ec670
lea eax, [ebp - 0x174]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00404a3c
push dword [ebp - 0x174]
lea eax, [edi + 4]
mov edx, 3
call fcn.00404b4c
mov eax, dword [ebp - 0x130]
mov dword [edi + 8], eax
mov edx, edi
mov eax, dword [ebx + 0x3dc]
call fcn.0041a594
jmp 0x4ec5ee
inc esi
dec edi
jne 0x4ec409
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4ec2ec
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec64f
lea eax, [ebp - 0x174]
mov edx, 9
call fcn.004047f0
lea eax, [ebp - 0x10]
call fcn.004047cc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047f0
ret