Function at 0x4be9f0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x554
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x364]
mov dword [esp + 0x2d0], 0x94
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x2d4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2d0]
xor ebp, ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x250]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x250]
push str.Program_FilesInternet_Explorer
push edx
lea eax, [esp + 0x158]
push 0x50e0ec
push eax
mov byte [esp + 0x263], 0
call fcn.004f175f
lea ecx, [esp + 0x160]
push ecx
call fcn.004f2beb
lea edx, [esp + 0x164]
lea eax, [esp + 0x378]
push edx
push str._s.
push eax
call fcn.004f175f
add esp, 0x20
lea ecx, [esp + 0x10]
lea edx, [esp + 0x364]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4beb98
mov ebx, dword [esp + 0x568]
test byte [esp + 0x10], 0x10
jne 0x4beb7a
cmp byte [esp + 0x3c], 0x2e
je 0x4beb7a
lea eax, [esp + 0x3c]
push str..txt
push eax
xor edi, edi
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4beaef
mov edi, 1
lea ecx, [esp + 0x3c]
push str..ini
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4beb0a
mov edi, 1
lea edx, [esp + 0x3c]
push str..inf
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4beb7a
test edi, edi
jne 0x4beb7a
lea eax, [esp + 0x3c]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [esp + 0x150]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 0x468]
push eax
push str._s_s
push edx
call fcn.004f175f
lea eax, [esp + 0x474]
push 0xff
push eax
push ebx
call fcn.004f27c0
add esp, 0x1c
inc ebp
add ebx, 0x100
cmp ebp, 0xf8
je 0x4beb98
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4beabc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x250]
push str.Program_FilesInternet_ExplorerPLUGINS
push edx
lea eax, [esp + 0x158]
push 0x50e0ec
push eax
call fcn.004f175f
lea ecx, [esp + 0x160]
push ecx
call fcn.004f2beb
lea edx, [esp + 0x164]
lea eax, [esp + 0x378]
push edx
push str._s.
push eax
call fcn.004f175f
add esp, 0x20
lea ecx, [esp + 0x10]
lea edx, [esp + 0x364]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4bed0b
mov eax, dword [esp + 0x568]
mov edi, ebp
shl edi, 8
add edi, eax
test byte [esp + 0x10], 0x10
jne 0x4beced
cmp byte [esp + 0x3c], 0x2e
je 0x4beced
lea eax, [esp + 0x3c]
push str..txt
push eax
xor esi, esi
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4bec47
mov esi, 1
lea ecx, [esp + 0x3c]
push str..ini
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4bec62
mov esi, 1
lea edx, [esp + 0x3c]
push str..inf
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4bec7d
mov esi, 1
lea eax, [esp + 0x3c]
push str..class
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4beced
test esi, esi
jne 0x4beced
lea ecx, [esp + 0x3c]
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [esp + 0x150]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [esp + 0x46c]
push str._s_s
push eax
call fcn.004f175f
lea ecx, [esp + 0x474]
push 0xff
push ecx
push edi
call fcn.004f27c0
add esp, 0x1c
inc ebp
add edi, 0x100
cmp ebp, 0xf8
je 0x4bed0b
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4bec14
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
or ebx, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x56c]
push str.c:endpcache
mov dword [eax], ebp
call fcn.004f2beb
add esp, 4
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret