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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x17dc
call fcn.004282c0
mov eax, dword [0x5522f8]
xor eax, esp
mov dword [esp + 0x17d8], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [esp + 0x1c], eax
xor esi, esi
push edi
xor eax, eax
mov dword [esp + 0x2c], edx
mov edi, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0xbb0]
push ecx
push eax
mov dword [esp + 0x24], ecx
xor ebx, ebx
mov dword [esp + 0x1c], esi
call fcn.004f5d20
add esp, 8
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xbb4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4c1c61
test byte [esp + 0x30], 0x10
mov ecx, dword [ebp + 0x18]
jne 0x4c1a48
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4c19ef
push ecx
lea ecx, [esp + 0x60]
mov edx, eax
push ecx
lea ecx, [esp + 0x288]
call fcn.004f51f0
add esp, 8
jmp 0x4c1a06
push 1
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x288]
push eax
call fcn.004f5990
add esp, 0xc
lea ecx, [esp + 0x280]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c1a10
sub ecx, edx
lea esi, [ecx + 1]
test edi, edi
je 0x4c1a3c
cmp esi, dword [ebp + 8]
ja 0x4c1a69
push esi
lea eax, [esp + 0x284]
push eax
push edi
call fcn.00432810
add esp, 0xc
add edi, esi
sub dword [ebp + 8], esi
mov eax, dword [esp + 0x10]
inc ebx
add dword [esp + 0x14], esi
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4c1a50
cmp ebx, ecx
jae 0x4c1a71
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4c1a71
mov eax, dword [esp + 0x10]
jmp 0x4c19c4
mov dword [esp + 0x18], 1
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x10], 0
mov eax, dword [esp + 0x18]
je 0x4c1c5b
test eax, eax
jne 0x4c1c5b
push dword [esp + 0x1c]
lea eax, [esp + 0x594]
push eax
call fcn.004f5eb0
add esp, 8
lea ecx, [esp + 0x590]
call fcn.004f5710
mov esi, eax
test esi, esi
je 0x4c1aba
inc esi
jmp 0x4c1ac1
lea esi, [esp + 0x590]
push 0x535d54
push esi
mov dword [esp + 0x2c], esi
call fcn.004f5eb0
lea eax, [esp + 0x598]
push eax
lea eax, [esp + 0x11d4]
push eax
call fcn.004f5d20
add esp, 0x10
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x11cc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4c1c51
nop dword [eax + eax]
test byte [esp + 0x30], 0x10
je 0x4c1c26
push 1
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x288]
push eax
call fcn.004f5990
lea eax, [esp + 0x28c]
push 0x533930
push eax
call fcn.004f5ed0
add esp, 0x14
test eax, eax
je 0x4c1c22
lea eax, [esp + 0x280]
push 0x535e60
push eax
call fcn.004f5ed0
add esp, 8
test eax, eax
je 0x4c1c22
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004f5710
push eax
push 0
lea edx, [esp + 0x28c]
mov ecx, esi
call fcn.004c3fb0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 1
test eax, eax
je 0x4c1bb6
lea ecx, [esp + 0x284]
mov edx, eax
push ecx
lea ecx, [esp + 0x8a8]
call fcn.004f5190
mov ecx, 0x5c
mov word [esp + eax + 0x8a8], cx
jmp 0x4c1bce
push 0x533a70
lea edx, [esp + 0x288]
lea ecx, [esp + 0x8a8]
call fcn.004f5190
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x30]
mov esi, dword [ebp + 8]
add esp, 8
mov ecx, eax
sub eax, ebx
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [esp + 0x8a0]
push ecx
push eax
push 1
lea eax, [esp + 0x59c]
mov ecx, edi
push eax
push esi
call fcn.004c1950
mov ecx, eax
add esp, 0x14
test ecx, ecx
js 0x4c1c3f
mov eax, dword [esp + 0x28]
test edi, edi
je 0x4c1c18
add edi, eax
sub esi, eax
mov dword [ebp + 8], esi
mov esi, dword [esp + 0x24]
add ebx, ecx
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4c1c47
mov eax, dword [esp + 0x10]
jmp 0x4c1b10
mov dword [esp + 0x18], 1
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x4c1c63
mov esi, dword [esp + 0x14]
jmp 0x4c1c63
xor eax, eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4c1c71
test eax, eax
jne 0x4c1c71
mov dword [ecx], esi
or ecx, 0xffffffff
test eax, eax
pop edi
cmovne ebx, ecx
mov ecx, dword [esp + 0x17e0]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00427655
mov esp, ebp
pop ebp
ret