Function at 0x465170
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483f90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x554
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0xa0]
push eax
mov eax, dword [ebp + 0xc]
push ecx
xor ebx, ebx
push edx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.0044a370
lea ecx, [ebp - 0xa0]
push str.unKnown
push ecx
call fcn.0047fde0
add esp, 0x18
test eax, eax
je 0x465516
cmp dword [ebp - 0x14], ebx
je 0x465516
lea edi, [ebp - 0xa0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x20], eax
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x14]
mov dword [ebp + 0x14], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x460]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [ebp - 0x560]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
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 - 0x460]
push ecx
call fcn.0047c0d3
lea edx, [ebp - 0x460]
lea eax, [ebp - 0x560]
push edx
push str._s.
push eax
call fcn.0047a8f8
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x10
lea ecx, [ebp - 0x260]
lea edx, [ebp - 0x560]
push ecx
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x46538f
test byte [ebp - 0x260], 0x10
jne 0x46536a
cmp byte [ebp - 0x234], 0x2e
je 0x46536a
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x234]
inc edx
push eax
push ecx
mov dword [ebp - 0x18], edx
call fcn.0047fde0
add esp, 8
test eax, eax
je 0x46536a
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x234]
push edx
push eax
push ecx
mov byte [ebp - 0x120], 0
mov dword [ebp - 0x14], 0
call fcn.004650c0
add esp, 0xc
cmp eax, 1
jne 0x4652f0
mov ecx, dword [ebp - 0x20]
inc ecx
inc ebx
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0x14
jg 0x46538f
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x120]
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x234]
push eax
push ecx
push edx
call fcn.0044a370
lea eax, [ebp - 0xa0]
lea ecx, [ebp - 0x120]
push eax
push ecx
call fcn.0047fde0
add esp, 0x18
test eax, eax
jne 0x46535c
lea edx, [ebp - 0x234]
inc ebx
push edx
call fcn.004246a0
add esp, 4
test eax, eax
jle 0x465346
add dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x100000
jle 0x465357
inc ebx
mov dword [ebp - 0x1c], 0
cmp ebx, 0x64
je 0x46538f
mov eax, dword [ebp + 0x14]
inc eax
cmp eax, 0x400
mov dword [ebp + 0x14], eax
je 0x46538f
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x465279
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
jmp 0x465279
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x260]
push ecx
push 0x4914d0
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x46547a
test byte [ebp - 0x260], 0x10
je 0x4654f1
cmp byte [ebp - 0x234], 0x2e
je 0x4654f1
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x2e0]
inc eax
push edx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x360]
lea ecx, [ebp - 0x120]
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x234]
push ecx
push edx
push eax
mov byte [ebp - 0x120], 0
mov dword [ebp - 0x14], 0
call fcn.00465de0
add esp, 0x14
lea ecx, [ebp - 0xa0]
lea edx, [ebp - 0x120]
push ecx
push edx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x465428
add ebx, 2
cmp ebx, 0x64
jg 0x46547a
lea eax, [ebp - 0xa0]
lea ecx, [ebp - 0x360]
push eax
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x46544a
add ebx, 2
cmp ebx, 0x64
jg 0x46547a
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x2e0]
push edx
push eax
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x46546c
add ebx, 2
cmp ebx, 0x64
jg 0x46547a
mov eax, dword [ebp + 0x14]
inc eax
cmp eax, 0x96
mov dword [ebp + 0x14], eax
jne 0x4654f1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x18]
push str.c:endpcache
mov dword [ecx], ebx
mov dword [edx], eax
call fcn.0047c0d3
add esp, 4
jmp 0x465543
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4653a6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
jmp 0x4653a6
mov edi, str.unKnown
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [ebp + 0x18]
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x1c]
mov dword [eax], ebx
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