Function at 0x4c5ff0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a8fed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x68
call fcn.00584a5c
add esp, 4
mov dword [esp + 0x20], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x174], edi
je 0x4c6035
mov ecx, eax
call fcn.00458bf0
mov edi, eax
mov ecx, edi
mov dword [esp + 0x174], 0xffffffff
call fcn.00458d30
mov eax, dword [0x663cf4]
lea ecx, [edi + 0x58]
push eax
push 0x638fa8
push ecx
call fcn.0058148b
mov ebx, dword [esi + 0x14]
lea ebp, [esi + 0xc]
add esp, 0xc
mov ecx, ebp
lea edx, [ebx + 1]
push 0xffffffffffffffff
push edx
call fcn.00458660
mov eax, dword [ebp + 4]
push 0x68
mov dword [eax + ebx*4], edi
call fcn.00584a5c
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x174], 1
je 0x4c609f
mov ecx, eax
call fcn.00458bf0
mov edi, eax
jmp 0x4c60a1
xor edi, edi
mov ecx, edi
mov dword [esp + 0x174], 0xffffffff
mov dword [edi + 0x64], 2
call fcn.00458d30
mov ecx, dword [0x663cf0]
lea edx, [edi + 0x58]
push ecx
push 0x638fa8
push edx
call fcn.0058148b
mov ebx, dword [ebp + 8]
add esp, 0xc
mov ecx, ebp
lea eax, [ebx + 1]
push 0xffffffffffffffff
push eax
call fcn.00458660
mov ecx, dword [ebp + 4]
mov dword [ecx + ebx*4], edi
mov al, byte [esi + 4]
test al, al
je 0x4c637a
mov edx, dword [0x65ec1c]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push eax
push str._sq_.dt
push ecx
mov dword [esp + 0x180], 2
call fcn.0058148b
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
je 0x4c6366
lea ecx, [esp + 0x58]
push 0x5f
push ecx
call fcn.0056c5b0
mov edi, eax
add esp, 8
test edi, edi
je 0x4c634b
movsx edx, byte [edi + 1]
inc edi
push edx
call fcn.0056ccfc
add esp, 4
test eax, eax
je 0x4c634b
push edi
lea ecx, [esp + 0x18]
call fcn.0058872e
mov eax, dword [esp + 0x14]
push 0x2e
push eax
mov byte [esp + 0x17c], 3
call fcn.0056c5f0
add esp, 8
test eax, eax
je 0x4c633a
mov byte [eax], 0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0056c858
mov edi, eax
add esp, 4
cmp edi, 2
jle 0x4c633a
push 0x68
call fcn.00584a5c
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x174], 4
je 0x4c61d9
mov ecx, eax
call fcn.00458bf0
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x4c61e5
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov byte [esp + 0x174], 3
mov dword [esi + 0x64], edi
call fcn.00458d30
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ebx, edx
xor edi, edi
mov dword [esp + 0x28], ebx
inc ebx
cmp ebx, edi
jne 0x4c6229
cmp eax, edi
je 0x4c621e
push eax
mov dword [esp + 0x1c], edx
call fcn.00584a85
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x4c632c
cmp eax, edi
jne 0x4c6261
lea edi, [ebx*4]
push edi
call fcn.00584a5c
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x4c632c
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x4c6291
cmp edx, ebx
jge 0x4c6281
mov ecx, ebx
sub ecx, edx
lea edx, [eax + edx*4]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp + 8], ebx
jmp 0x4c632c
jle 0x4c6289
sub edx, ebx
mov dword [esp + 0x18], edx
mov dword [ebp + 8], ebx
jmp 0x4c632c
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x4c62bb
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4c62af
mov eax, 4
jmp 0x4c62bb
cmp eax, 0x400
jle 0x4c62bb
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x24], eax
jl 0x4c62c9
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
call fcn.00584a5c
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], eax
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.004e87c0
mov eax, dword [ebp + 4]
push eax
call fcn.00584a85
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
add esp, 4
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x28]
mov dword [eax + ecx*4], esi
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 2
call fcn.005886c0
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4c613d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov dword [esp + 0x174], 0xffffffff
call fcn.005886c0
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret