Function at 0x479cc0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x24c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x260]
cmp eax, esi
jne 0x479cf9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24c
ret 4
lea ebp, [ebx + 4]
push 0xb
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [ebx + 0xf], 0
repne scasb al, byte es:[edi]
mov eax, dword [ebx + 0x14bc]
mov dword [ebx + 0x14b8], esi
not ecx
dec ecx
cmp eax, 1
mov dword [esp + 0x14], ecx
jg 0x479d9e
lea eax, [eax + eax*2 + 0x183]
shl eax, 4
push eax
call fcn.004c2e90
add esp, 4
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x479d9e
mov esi, dword [ebx + 0x14b4]
test esi, esi
je 0x479d86
mov ecx, dword [ebx + 0x14b8]
test ecx, ecx
jle 0x479d73
lea ecx, [ecx + ecx*2]
mov edi, eax
shl ecx, 4
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x14b4]
push eax
call fcn.004c2eb0
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [ebx + 0x14bc]
mov dword [ebx + 0x14b4], eax
add ecx, 0x81
mov dword [ebx + 0x14bc], ecx
push ebp
push ebp
push 0x5965b8
push str._shistorydownloads_s_s_________________________________________.dat
lea ecx, [esp + 0x168]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
lea edx, [esp + 0x18]
lea eax, [esp + 0x158]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x479f0e
cmp byte [esp + 0x44], 0x2e
je 0x479eef
test byte [esp + 0x18], 0x10
jne 0x479eef
mov ecx, dword [ebx + 0x14b8]
mov eax, dword [ebx + 0x14bc]
inc ecx
cmp ecx, eax
jl 0x479e74
lea edx, [eax + eax*2 + 0x183]
shl edx, 4
push edx
call fcn.004c2e90
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x479cea
mov esi, dword [ebx + 0x14b4]
test esi, esi
je 0x479e5d
mov eax, dword [ebx + 0x14b8]
test eax, eax
jle 0x479e4e
lea ecx, [eax + eax*2]
mov edi, ebp
shl ecx, 4
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x14b4]
push ecx
call fcn.004c2eb0
add esp, 4
mov eax, dword [ebx + 0x14bc]
mov dword [ebx + 0x14b4], ebp
add eax, 0x81
mov dword [ebx + 0x14bc], eax
mov eax, dword [ebx + 0x14b8]
mov ebp, dword [ebx + 0x14b4]
lea edx, [eax + eax*2]
shl edx, 4
add ebp, edx
je 0x479eef
lea eax, [esp + 0x44]
test eax, eax
je 0x479eef
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [esp + esi + 0x45]
push ecx
call edi
lea edx, [esp + esi + 0x4e]
mov dword [ebp + 4], eax
push edx
call edi
lea esi, [esp + esi + 0x55]
lea edi, [ebp + 0xc]
mov ecx, 8
mov dword [ebp + 8], eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebp + 0x2c], 0
mov dword [ebp], 0
mov ebp, dword [ebp + 4]
add esp, 8
cmp ebp, 0x7b2
jl 0x479eef
cmp ebp, 0x7f6
jg 0x479eef
cmp eax, 1
jl 0x479eef
cmp eax, 0xc
jg 0x479eef
inc dword [ebx + 0x14b8]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x479de0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24c
ret 4