Function at 0x4cebe8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x4cebf1
add esp, 0xfffffbf0
mov eax, dword [ebp - 4]
mov eax, 0x5e3e7c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.004d57f0
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
xor eax, eax
xor edx, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x39], 0
mov byte [ebp - 0x3a], 0
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
mov word [ebp - 0x14], 8
test edi, edi
je 0x4cec54
push 0x1770
push 0
push edi
call fcn.004d2d9c
add esp, 0xc
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4cec7a
test byte [0x528c3d], 4
je 0x4cec7a
mov ecx, dword [ebp + 0x14]
push ecx
push 0x602bae
push 0x528c40
call fcn.004541dc
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4ceca0
test byte [0x528c3d], 4
je 0x4ceca0
mov edx, dword [ebp + 0x10]
push edx
push 0x602bc4
push 0x528c40
call fcn.004541dc
add esp, 0xc
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4ceccd
xor esi, esi
mov eax, dword [ebp + 0x14]
mov dl, byte [eax]
test dl, dl
je 0x4ceccd
movsx ecx, dl
cmp ecx, 0x2a
jne 0x4cecc9
mov dl, byte [eax + 1]
test dl, dl
jne 0x4cecc9
mov byte [eax], 0
mov dword [ebp - 0x44], esi
jmp 0x4ceccd
inc esi
inc eax
jmp 0x4cecac
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4cecfa
xor esi, esi
mov eax, dword [ebp + 0x10]
mov dl, byte [eax]
test dl, dl
je 0x4cecfa
movsx ecx, dl
cmp ecx, 0x2a
jne 0x4cecf6
mov dl, byte [eax + 1]
test dl, dl
jne 0x4cecf6
mov byte [eax], 0
mov dword [ebp - 0x40], esi
jmp 0x4cecfa
inc esi
inc eax
jmp 0x4cecd9
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4ced1f
push 0x602bdc
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004d30a0
add esp, 8
test eax, eax
jne 0x4ced1f
mov byte [ebp - 0x39], 1
xor eax, eax
mov dword [ebp + 0x14], eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4ced44
push 0x602be3
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004d30a0
add esp, 8
test eax, eax
jne 0x4ced44
mov byte [ebp - 0x3a], 1
xor eax, eax
mov dword [ebp + 0x14], eax
lea edx, [ebp - 0xc4]
push edx
call fcn.0040833c
pop ecx
push 1
call fcn.004ceb90
pop ecx
push 0x6144d6
push 0x602bea
lea ecx, [ebp - 0x20c4]
push ecx
call fcn.004d75f8
add esp, 0xc
lea eax, [ebp - 0x4414]
push eax
lea edx, [ebp - 0x20c4]
push edx
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, 0xffffffff
je 0x4cf27e
movsx eax, byte [ebp - 0x43e8]
cmp eax, 0x2e
je 0x4cf255
lea edx, [ebp - 0x43e8]
push edx
push 0x6144d6
push 0x602bef
lea ecx, [ebp - 0x20c4]
push ecx
call fcn.004d75f8
add esp, 0x10
lea eax, [ebp - 0x20c4]
push eax
push 0x602bf4
lea edx, [ebp - 0x40c4]
push edx
call fcn.004d75f8
add esp, 0xc
mov cl, byte [ebp - 0x39]
test cl, cl
je 0x4cee05
lea eax, [ebp - 0x20c4]
push eax
call fcn.004d70d8
pop ecx
lea edx, [ebp - 0x40c4]
push edx
call fcn.004d70d8
pop ecx
jmp 0x4cf255
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4cee16
lea eax, [ebp - 0x2c]
push eax
call fcn.00403e94
pop ecx
push 0x17
lea edx, [ebp - 0x20c4]
push edx
call fcn.00403dc0
add esp, 8
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00403e5c
pop ecx
test eax, eax
jne 0x4cee4c
push 0x13
lea eax, [ebp - 0x20c4]
push eax
call fcn.00403dc0
add esp, 8
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00403e5c
pop ecx
test eax, eax
je 0x4cf255
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404054
pop ecx
lea eax, [ebp - 0x41cc]
push 0x108
push eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004041b8
add esp, 0xc
mov ecx, dword [ebp - 0x41cc]
cmp ecx, 0x108
jne 0x4cf255
movsx eax, byte [ebp - 0x41c8]
cmp eax, 0x76
je 0x4ceea5
mov byte [ebp - 0x41c8], 0x20
mov byte [ebp - 0x41c7], 0x20
inc dword [ebp - 0x34]
mov edx, dword [ebp + 8]
dec edx
je 0x4ceeba
dec edx
je 0x4ceedc
jmp 0x4ceecc
movsx ecx, byte [ebp - 0x41c8]
cmp ecx, 0x76
jne 0x4cf255
jmp 0x4ceedc
movsx eax, byte [ebp - 0x41c8]
cmp eax, 0x76
je 0x4cf255
inc dword [ebp - 0x30]
mov ebx, 1
mov eax, 1
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4cef23
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4cef10
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x41c6]
push eax
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004d3138
add esp, 0xc
jmp 0x4cef23
lea eax, [ebp - 0x41c6]
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.004d30a0
add esp, 8
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4cef3b
movsx edx, byte [ebp - 0x41c8]
cmp edx, 0x76
jne 0x4cef3b
mov eax, 1
test eax, eax
jne 0x4cefee
mov byte [ebp - 0x41c8], 0x76
mov byte [ebp - 0x41c7], 0x20
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404054
pop ecx
lea eax, [ebp - 0x41cc]
push 0x108
push eax
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004042d0
add esp, 0xc
test byte [0x528c3d], 4
je 0x4cefcb
mov cl, byte [ebp - 0x4100]
test cl, cl
jne 0x4cefa9
test byte [0x528c3d], 4
je 0x4cefcb
call fcn.004cb348
push eax
push 0x602bfb
push 0x528c40
call fcn.004541dc
add esp, 0xc
jmp 0x4cefcb
test byte [0x528c3d], 4
je 0x4cefcb
lea eax, [ebp - 0x4100]
push eax
push 0x602c0d
push 0x528c40
call fcn.004541dc
add esp, 0xc
lea edx, [ebp - 0x40c4]
push edx
lea ecx, [ebp - 0x41c6]
push ecx
call fcn.004cb348
push eax
lea eax, [ebp - 0x4100]
push eax
call fcn.004cd1fc
add esp, 0x10
mov eax, 1
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4cf02d
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4cf01a
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x41c6]
push eax
push edx
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004d3138
add esp, 0xc
jmp 0x4cf02d
lea eax, [ebp - 0x41c6]
push eax
mov edx, dword [ebp + 0x14]
push edx
call fcn.004d30a0
add esp, 8
test eax, eax
jne 0x4cf082
test byte [0x528c3d], 4
je 0x4cf053
lea ecx, [ebp - 0x20c4]
push ecx
push 0x602c20
push 0x528c40
call fcn.004541dc
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call fcn.00403e94
pop ecx
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x20c4]
push edx
call fcn.004d70d8
pop ecx
lea ecx, [ebp - 0x40c4]
push ecx
call fcn.004d70d8
pop ecx
dec dword [ebp - 0x30]
dec dword [ebp - 0x34]
xor ebx, ebx
mov al, byte [ebp - 0x3a]
test al, al
je 0x4cf140
test byte [0x528c3d], 4
je 0x4cf0ad
push 0x602c43
push 0x602c2e
push 0x528c40
call fcn.004541dc
add esp, 0xc
lea edx, [ebp - 0x84]
push edx
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040454c
add esp, 8
test eax, eax
je 0x4cf140
lea eax, [ebp - 0xc4]
push eax
lea edx, [ebp - 0x84]
push edx
call fcn.004d30a0
add esp, 8
test eax, eax
je 0x4cf140
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00403e94
pop ecx
lea eax, [ebp - 0x20c4]
push eax
call fcn.004d70d8
pop ecx
lea edx, [ebp - 0x40c4]
push edx
call fcn.004d70d8
pop ecx
dec dword [ebp - 0x30]
dec dword [ebp - 0x34]
push pe_nt_image_headers32
lea ecx, [ebp - 0x20c4]
push ecx
call fcn.00405c58
add esp, 8
test eax, eax
je 0x4cf13e
push pe_nt_image_headers32
lea eax, [ebp - 0x40c4]
push eax
call fcn.00405c58
add esp, 8
test eax, eax
je 0x4cf13e
inc dword [ebp - 0x30]
inc dword [ebp - 0x34]
xor ebx, ebx
mov eax, dword [ebp - 0x30]
cmp eax, 0x16
jge 0x4cf255
test ebx, ebx
je 0x4cf255
test edi, edi
je 0x4cf255
inc dword [ebp - 0x38]
xor esi, esi
mov ebx, esi
shl ebx, 5
add ebx, esi
shl ebx, 3
add ebx, edi
mov eax, dword [ebx]
cmp eax, 0x108
jne 0x4cf234
lea edx, [ebp - 0x41c8]
push edx
lea ecx, [ebx + 4]
push ecx
call fcn.004d30a0
add esp, 8
test eax, eax
jle 0x4cf24b
push 0x108
push ebx
lea eax, [ebp - 0x42d4]
push eax
call fcn.004d2d2c
add esp, 0xc
lea edx, [ebp - 0x41cc]
push 0x108
push edx
push ebx
call fcn.004d2d2c
add esp, 0xc
inc esi
mov ebx, esi
shl ebx, 5
add ebx, esi
shl ebx, 3
add ebx, edi
mov eax, dword [ebx]
cmp eax, 0x108
je 0x4cf1ec
push 0x108
lea edx, [ebp - 0x42d4]
push edx
push ebx
call fcn.004d2d2c
add esp, 0xc
jmp 0x4cf255
push 0x108
push ebx
lea ecx, [ebp - 0x41cc]
push ecx
call fcn.004d2d2c
add esp, 0xc
lea eax, [ebp - 0x42d4]
push 0x108
push eax
push ebx
call fcn.004d2d2c
add esp, 0xc
push 0x108
lea edx, [ebp - 0x41cc]
push edx
lea ecx, [ebp - 0x42d4]
push ecx
call fcn.004d2d2c
add esp, 0xc
inc esi
jmp 0x4cf1c0
push 0x108
lea eax, [ebp - 0x41cc]
push eax
push ebx
call fcn.004d2d2c
add esp, 0xc
jmp 0x4cf255
inc esi
cmp esi, 0x16
jle 0x4cf161
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x4cf266
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00403e94
pop ecx
lea eax, [ebp - 0x4414]
push eax
mov edx, dword [ebp - 0x28]
push edx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4ced94
mov ecx, dword [ebp - 0x28]
push ecx
call sub.KERNEL32.dll_FindClose
mov word [ebp - 0x14], 0
jmp 0x4cf2ae
mov edx, dword [0x52909c]
mov ecx, dword [ebp - 0x34]
cmp edx, ecx
je 0x4cf2f5
test byte [0x528c3d], 4
je 0x4cf2db
push 0x602c64
push 0x602c50
push 0x528c40
call fcn.004541dc
add esp, 0xc
mov eax, dword [ebp - 0x34]
push 0
mov dword [0x52909c], eax
call fcn.004ceb90
pop ecx
push 1
call fcn.004a4fa8
pop ecx
jmp 0x4cf326
test byte [0x528c3d], 4
je 0x4cf315
push 0x602c76
push 0x602c65
push 0x528c40
call fcn.004541dc
add esp, 0xc
mov edx, dword [ebp - 0x34]
push 0
mov dword [0x52909c], edx
call fcn.004ceb90
pop ecx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x4420]
mov esi, dword [ebp - 0x441c]
mov ebx, dword [ebp - 0x4418]
pop ebp
ret