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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546388
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, ecx
push 0x200
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x29c], 0
call fcn.004fc6be
mov edi, eax
push 0x200
mov dword [ebp - 0x2ac], edi
call fcn.004fc6be
push 0x200
mov dword [ebp - 0x2a0], eax
call fcn.004fc6be
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, dword [ebx + 0x20c]
jle 0x4c20e9
mov dword [ebx + 0x20c], eax
inc dword [ebx + 0x210]
push edi
push esi
call fcn.004c1f20
add esp, 8
test eax, eax
je 0x4c23f9
mov eax, dword [ebp - 0x2a0]
push eax
push esi
call fcn.004c1e00
add esp, 8
test eax, eax
je 0x4c23f9
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2120
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [ebp - 0x2a0]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2140
sub eax, edx
sar eax, 1
mov edi, eax
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2170
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00402c70
xor esi, esi
mov dword [ebp - 4], esi
sub ebx, edi
push ebx
push edi
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x48]
call fcn.004c1d80
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x48]
call fcn.00402fc0
mov byte [ebp - 4], 0
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jb 0x4c21c5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004808a0
add esp, 4
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], ebx
jae 0x4c21e0
lea eax, [ebp - 0x48]
mov edi, dword [ebp - 0x2a8]
mov edx, edi
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x4c21f0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4c2204
sub eax, edx
sar eax, 1
lea edx, [ebp - 0x298]
mov dword [ebp - 0x2b4], eax
mov eax, dword [ebp - 0x2a0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2a4], eax
cmp eax, 0xffffffff
je 0x4c23c9
lea esp, [esp]
mov ebx, 1
push ebx
lea ecx, [ebp - 0x26c]
push 0x57668c
push ecx
call fcn.00505d55
add esp, 0xc
test eax, eax
je 0x4c235b
test byte [ebp - 0x298], 0x10
je 0x4c2379
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x2ac]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4c2290
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00402c70
push ebx
push 0x57667c
lea ecx, [ebp - 0x2c]
call fcn.004c1c00
lea eax, [ebp - 0x26c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4c22c0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004c1c00
mov edi, dword [ebp - 0x2a8]
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4c22f0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.004c1c00
mov eax, dword [ebp - 0x2c]
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jae 0x4c2319
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
mov ecx, dword [ebp - 0x2b0]
push eax
call fcn.004c2060
mov edi, eax
mov dword [ebp - 0x29c], edi
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], ebx
jb 0x4c2347
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004808a0
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
cmp edi, esi
jne 0x4c23b7
mov ecx, dword [ebp - 0x2a4]
lea eax, [ebp - 0x298]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4c2240
jmp 0x4c23b7
cmp dword [ebp - 0x2b4], esi
jne 0x4c235b
mov edx, dword [ebp - 0x2ac]
mov edi, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x26c]
push ecx
push edx
push 0x576680
push edi
call fcn.00478550
add dword [edi + 0x214], ebx
add esp, 0x10
cmp dword [edi + 0x218], esi
je 0x4c235b
mov dword [ebp - 0x29c], ebx
mov edx, dword [ebp - 0x2a4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], ebx
jb 0x4c23e1
mov eax, dword [ebp - 0x48]
push eax
call fcn.004808a0
add esp, 4
mov edi, dword [ebp - 0x2ac]
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
jmp 0x4c243f
lea edx, [ebp - 0x298]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2a4], eax
cmp eax, 0xffffffff
je 0x4c243f
push esi
push 0x56e1b8
push ebx
call fcn.00478550
mov eax, 1
add dword [ebx + 0x214], eax
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp - 0x2a4]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.004808a0
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.004808a0
mov edx, dword [ebp - 0x2a8]
push edx
call fcn.004808a0
mov eax, dword [ebp - 0x29c]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 8