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

Disassembly:
mov eax, 0x6c29f0
call fcn.00664608
sub esp, 0x2b0
cmp dword [ebp + 8], 0
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
jne 0x604ce5
mov ecx, 0x6ce190
mov eax, dword [esi + 0x44]
add eax, 0x20
cmp dword [eax + 0x14], 8
jb 0x604cf3
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x6c]
push 0x727188
push eax
call fcn.004577f2
add esp, 0x10
xor ebx, ebx
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 8
mov dword [ebp - 4], ebx
jb 0x604d17
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x2bc]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x604eb0
xor eax, eax
inc eax
mov dword [ebp - 0x1c], eax
push 0x2e
pop ecx
cmp word [ebp - 0x290], cx
jne 0x604d68
cmp word [ebp - 0x28e], 0
je 0x604f29
cmp word [ebp - 0x28e], cx
jne 0x604d68
cmp word [ebp - 0x28c], 0
je 0x604f29
test byte [ebp - 0x2bc], 4
jne 0x604f29
test byte [ebp - 0x2bc], 2
je 0x604dc9
mov ecx, dword [esi + 0x38]
cmp ecx, 2
je 0x604dc9
test ecx, ecx
jne 0x604dc1
push 0x79
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x34
call fcn.00599084
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00599ee6
pop ecx
pop ecx
cmp eax, 6
je 0x604db8
mov dword [esi + 0x38], 1
jmp 0x604f29
mov dword [esi + 0x38], 2
jmp 0x604dc9
cmp ecx, eax
je 0x604f29
lea eax, [ebp - 0x290]
push eax
push dword [ebp + 0xc]
call fcn.0047124a
test eax, eax
jne 0x604f29
mov dword [ebp - 0x34], ebx
lea ecx, [ebp - 0x34]
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x290]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 7
call fcn.00427ba3
xor eax, eax
inc eax
push eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x34]
push eax
sub esp, 0x18
mov eax, esp
push dword [ebp + 8]
push eax
call fcn.00428e6f
lea eax, [ebp - 0x54]
push eax
call fcn.004516a9
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x604e61
mov ecx, dword [ebp - 0x34]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, 0x1000
jb 0x604e58
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004279ae
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
test byte [ebp - 0x2bc], 0x10
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
je 0x604eca
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
jb 0x604e86
mov eax, dword [ebp - 0x54]
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00604cc3
test al, al
jne 0x604f1e
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x1c], bl
call fcn.00427afc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov bl, byte [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
call fcn.00427afc
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
cmp byte [esi + 0x58], al
jne 0x604ee2
mov ecx, dword [esi + 0x44]
call fcn.006a1af8
cmp eax, 0x3e8
jb 0x604ee2
mov byte [esi + 0x58], 1
mov al, byte [ebp - 0x2bc]
xor ecx, ecx
or ecx, dword [ebp - 0x29c]
and al, 2
movzx eax, al
push eax
mov eax, dword [ebp - 0x2a0]
or eax, ebx
push eax
push ecx
sub esp, 0x18
lea eax, [ebp - 0x54]
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00427a37
mov ecx, dword [esi + 0x44]
call fcn.006a0c24
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00427afc
lea eax, [ebp - 0x2bc]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
je 0x604ea4
xor eax, eax
inc eax
jmp 0x604d37