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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x4c85a1
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c98
xor eax, eax
push ebp
push 0x4c8a5a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
mov ecx, 0x4c8a70
mov edx, dword [ebp - 4]
call fcn.00404af4
mov eax, dword [ebp - 0x15c]
call fcn.00404ca8
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4c8a0b
mov bl, 1
jmp 0x4c8a0b
mov eax, dword [0x4fc898]
cmp byte [eax], 1
je 0x4c8a13
mov eax, dword [0x4fcbc4]
mov eax, dword [eax]
call fcn.00489ae4
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x12c]
mov ecx, 0x104
call fcn.00404a58
mov eax, dword [ebp - 0x158]
cmp eax, 0x10
je 0x4c866d
cmp eax, 2
je 0x4c866d
cmp eax, 4
je 0x4c866d
cmp eax, 0x80
je 0x4c866d
cmp eax, 0x100
je 0x4c866d
cmp eax, 0x13
je 0x4c866d
cmp eax, 0x20
je 0x4c866d
cmp eax, 0x16
jne 0x4c872c
mov eax, dword [0x4fcbd8]
inc dword [eax]
mov eax, dword [0x4fcbd8]
mov eax, dword [eax]
mov ecx, 0xc8
cdq
idiv ecx
test edx, edx
jne 0x4c86b0
push dword [ebp - 4]
push 0x4c8a80
push dword [ebp - 0x10]
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.00404b68
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 0xc]
call fcn.00469d04
mov eax, dword [ebp - 0x10]
mov edx, 0x4c8a8c
call fcn.00404bf4
je 0x4c872c
mov eax, dword [ebp - 0x10]
mov edx, 0x4c8a98
call fcn.00404bf4
je 0x4c872c
push dword [ebp - 4]
push 0x4c8a80
push dword [ebp - 0x10]
lea eax, [ebp - 0x164]
mov edx, 3
call fcn.00404b68
mov eax, dword [ebp - 0x164]
call fcn.00409650
test al, al
je 0x4c872c
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 4]
push 0x4c8a80
push dword [ebp - 0x10]
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00404b68
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004c8598
lea edx, [ebp - 0x16c]
mov eax, dword [ebp - 0x10]
call fcn.00409954
mov eax, dword [ebp - 0x16c]
mov edx, 0x4c8aa4
call fcn.00404bf4
jne 0x4c89f5
push dword [ebp - 4]
push 0x4c8a80
push dword [ebp - 0x10]
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.00404b68
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x14]
call fcn.004c8388
cmp dword [ebp - 0x14], 0
je 0x4c89f5
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 0x14]
call fcn.00408c58
mov eax, dword [ebp - 0x174]
push eax
lea edx, [ebp - 0x178]
mov eax, 0x4c8ab4
call fcn.00408c58
mov eax, dword [ebp - 0x178]
pop edx
call fcn.00404dec
test eax, eax
jne 0x4c89f5
mov eax, dword [0x4fc61c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
call fcn.004beef8
test al, al
je 0x4c89f5
lea edx, [ebp - 0x17c]
mov eax, dword [ebp - 0x14]
call fcn.00409954
cmp dword [ebp - 0x17c], 0
jne 0x4c88f4
mov eax, dword [ebp - 0x14]
call fcn.00409650
test al, al
jne 0x4c89f5
mov edx, dword [ebp - 0x14]
mov eax, 0x4c8ac0
call fcn.00404dec
test eax, eax
jne 0x4c89f5
mov eax, dword [ebp + 8]
call fcn.0048b4ec
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.0048b500
mov edx, dword [0x4fc788]
mov dl, byte [edx + 0xe]
mov byte [eax + 0xc], dl
push dword [ebp - 4]
push 0x4c8a80
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.0048b500
add eax, 0xd
mov edx, 3
call fcn.00404b68
push dword [ebp - 4]
push 0x4c8a80
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.0048b500
add eax, 0x11
mov edx, 3
call fcn.00404b68
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.0048b500
add eax, 0x15
mov edx, dword [ebp - 0x14]
call fcn.0040483c
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.0048b500
add eax, 0x19
call fcn.004047e8
lea eax, [ebp - 0x180]
push eax
mov eax, dword [ebp + 8]
call fcn.0041b658
mov dword [ebp - 0x188], eax
mov byte [ebp - 0x184], 0
lea edx, [ebp - 0x188]
xor ecx, ecx
mov eax, 0x4c8acc
call fcn.0040a1dc
mov eax, dword [ebp - 0x180]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x22c]
mov edx, dword [ebp - 8]
call fcn.0044fcc8
mov eax, dword [eax + 8]
xor edx, edx
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x20]
jmp 0x4c89f5
mov edx, dword [ebp - 0x14]
mov eax, 0x4c8ac0
call fcn.00404dec
test eax, eax
jne 0x4c89f5
mov eax, dword [ebp - 0x14]
call fcn.004c8144
test al, al
jne 0x4c89f5
mov eax, dword [ebp + 8]
call fcn.0048b4ec
mov ebx, eax
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.0048b500
mov edx, dword [0x4fc788]
mov dl, byte [edx + 0xe]
mov byte [eax + 0xc], dl
push dword [ebp - 4]
push 0x4c8a80
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.0048b500
add eax, 0xd
mov edx, 3
call fcn.00404b68
push dword [ebp - 4]
push 0x4c8a80
push dword [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.0048b500
add eax, 0x11
mov edx, 3
call fcn.00404b68
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.0048b500
add eax, 0x15
mov edx, dword [ebp - 0x14]
call fcn.0040483c
mov edx, ebx
mov eax, dword [ebp + 8]
call fcn.0048b500
add eax, 0x19
call fcn.004047e8
lea eax, [ebp - 0x18c]
push eax
mov eax, dword [ebp + 8]
call fcn.0041b658
mov dword [ebp - 0x188], eax
mov byte [ebp - 0x184], 0
lea edx, [ebp - 0x188]
xor ecx, ecx
mov eax, 0x4c8acc
call fcn.0040a1dc
mov eax, dword [ebp - 0x18c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x22c]
mov edx, dword [ebp - 8]
call fcn.0044fcc8
mov eax, dword [eax + 8]
xor edx, edx
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x20]
lea eax, [ebp - 0x158]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4c860a
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 0x4c8a61
lea eax, [ebp - 0x18c]
call fcn.004047e8
lea eax, [ebp - 0x180]
mov edx, 0xa
call fcn.0040480c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040480c
lea eax, [ebp - 4]
call fcn.004047e8
ret