Function at 0x4ca660
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44c
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x98]
push eax
mov eax, dword [ebp + 8]
push ecx
xor ebx, ebx
push edx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004ca490
lea ecx, [ebp - 0x98]
push str.unKnown
push ecx
call fcn.004f61e0
add esp, 0x18
test eax, eax
je 0x4ca8a8
cmp dword [ebp - 0x18], ebx
je 0x4ca8a8
lea edi, [ebp - 0x98]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x458]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [ebp - 0x358]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x458]
push ecx
call fcn.004f2beb
lea edx, [ebp - 0x458]
lea eax, [ebp - 0x358]
push edx
push str._s.
push eax
call fcn.004f175f
add esp, 0x10
lea ecx, [ebp - 0x258]
lea edx, [ebp - 0x358]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ca80f
test byte [ebp - 0x258], 0x10
jne 0x4ca883
cmp byte [ebp - 0x22c], 0x2e
je 0x4ca883
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
push eax
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4ca883
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x118]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
push eax
xor edi, edi
push ecx
push edx
mov byte [ebp - 0x118], 0
mov dword [ebp - 0x18], edi
call fcn.004ca490
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x118]
push eax
push ecx
call fcn.004f61e0
add esp, 0x18
test eax, eax
jne 0x4ca875
lea edx, [ebp - 0x22c]
inc ebx
push edx
call fcn.004ab3c0
add esp, 4
cmp eax, edi
jle 0x4ca7fb
add dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x100000
jle 0x4ca80a
add ebx, 4
mov dword [ebp - 0x14], edi
cmp ebx, 0xf
jne 0x4ca875
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 0x14]
push str.c:endpcache
mov dword [edx], ebx
call fcn.004f2beb
add esp, 4
jmp 0x4ca8d0
mov eax, dword [ebp + 0x10]
inc eax
cmp eax, 0xfa
mov dword [ebp + 0x10], eax
je 0x4ca80f
lea ecx, [ebp - 0x258]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4ca761
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
jmp 0x4ca761
mov edi, str.unKnown
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0x10]
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 [ebp + 0x14]
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov ax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret