Function at 0x4c47c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a738d
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.00582ecc
add esp, 4
mov dword [esp + 0x20], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x174], edi
je 0x4c4805
mov ecx, eax
call fcn.00458570
mov edi, eax
mov ecx, edi
mov dword [esp + 0x174], 0xffffffff
call fcn.004586b0
mov eax, dword [0x661b5c]
lea ecx, [edi + 0x58]
push eax
push 0x636fa0
push ecx
call fcn.0057f8fb
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.004580e0
mov eax, dword [ebp + 4]
push 0x68
mov dword [eax + ebx*4], edi
call fcn.00582ecc
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x174], 1
je 0x4c486f
mov ecx, eax
call fcn.00458570
mov edi, eax
jmp 0x4c4871
xor edi, edi
mov ecx, edi
mov dword [esp + 0x174], 0xffffffff
mov dword [edi + 0x64], 2
call fcn.004586b0
mov ecx, dword [0x661b58]
lea edx, [edi + 0x58]
push ecx
push 0x636fa0
push edx
call fcn.0057f8fb
mov ebx, dword [ebp + 8]
add esp, 0xc
mov ecx, ebp
lea eax, [ebx + 1]
push 0xffffffffffffffff
push eax
call fcn.004580e0
mov ecx, dword [ebp + 4]
mov dword [ecx + ebx*4], edi
mov al, byte [esi + 4]
test al, al
je 0x4c4b4a
mov edx, dword [0x65ca8c]
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.0057f8fb
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 0x4c4b36
lea ecx, [esp + 0x58]
push 0x5f
push ecx
call fcn.0056aa30
mov edi, eax
add esp, 8
test edi, edi
je 0x4c4b1b
movsx edx, byte [edi + 1]
inc edi
push edx
call fcn.0056b17c
add esp, 4
test eax, eax
je 0x4c4b1b
push edi
lea ecx, [esp + 0x18]
call fcn.00586ba1
mov eax, dword [esp + 0x14]
push 0x2e
push eax
mov byte [esp + 0x17c], 3
call fcn.0056aa70
add esp, 8
test eax, eax
je 0x4c4b0a
mov byte [eax], 0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0056acd8
mov edi, eax
add esp, 4
cmp edi, 2
jle 0x4c4b0a
push 0x68
call fcn.00582ecc
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x174], 4
je 0x4c49a9
mov ecx, eax
call fcn.00458570
mov esi, eax
mov dword [esp + 0x1c], esi
jmp 0x4c49b5
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.004586b0
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 0x4c49f9
cmp eax, edi
je 0x4c49ee
push eax
mov dword [esp + 0x1c], edx
call fcn.00582ef5
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x4c4afc
cmp eax, edi
jne 0x4c4a31
lea edi, [ebx*4]
push edi
call fcn.00582ecc
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 0x4c4afc
mov ecx, dword [ebp + 0xc]
cmp ebx, ecx
jg 0x4c4a61
cmp edx, ebx
jge 0x4c4a51
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 0x4c4afc
jle 0x4c4a59
sub edx, ebx
mov dword [esp + 0x18], edx
mov dword [ebp + 8], ebx
jmp 0x4c4afc
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x4c4a8b
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4c4a7f
mov eax, 4
jmp 0x4c4a8b
cmp eax, 0x400
jle 0x4c4a8b
mov eax, 0x400
add eax, ecx
cmp ebx, eax
mov dword [esp + 0x24], eax
jl 0x4c4a99
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
push ecx
call fcn.00582ecc
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.00417d90
mov eax, dword [ebp + 4]
push eax
call fcn.00582ef5
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.00586b33
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4c490d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov dword [esp + 0x174], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret