Function at 0x4c4570
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a4
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
call fcn.004f266a
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push 0x200
call fcn.004f266a
add esp, 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004ae740
mov ecx, dword [ebp - 0x1c]
add esp, 4
add ecx, 0x100
lea edx, [ebp - 0x2b0]
push str.SoftwareMicrosoftWindowsShellNoRoamMUICache
push ecx
push str._s_s
push edx
call fcn.004f175f
add esp, 0x10
lea eax, [ebp - 0x1b0]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x2b0]
push ecx
push 0x20019
push esi
push edx
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x130], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4c4793
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x3b0]
push eax
lea edx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x2c]
push 0
push eax
push edi
push ecx
push edx
mov dword [ebp - 0x2c], 0x80
mov dword [ebp - 0x28], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x4c4793
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0x130], 0
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x130]
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]
cmp byte [ebp - 0x12f], 0x3a
jne 0x4c47cf
lea ecx, [ebp - 0x1b0]
lea edx, [ebp - 0x130]
push ecx
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4c46c2
mov ebx, 1
lea eax, [ebp - 0x130]
push str.Temp
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4c46df
mov ebx, 1
lea ecx, [ebp - 0x130]
push str._temp
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4c46fc
mov ebx, 1
lea edx, [ebp - 0x130]
push str.Application_Data
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4c4719
mov ebx, 1
lea eax, [ebp - 0x130]
push str.Internet_Explorer
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x4c4736
mov ebx, 1
lea ecx, [ebp - 0x130]
push str.Temporary_Internet_Files
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x4c4753
cmp ebx, 1
jne 0x4c47cf
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
mov ebx, edx
or ecx, 0xffffffff
shl ebx, 8
add ebx, edi
mov edi, dword [ebp - 0x18]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
cmp edx, 0x7f
mov dword [ebp - 0x14], edx
rep movsb byte es:[edi], byte [esi]
jle 0x4c47cf
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0x80
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
push edi
mov dword [edx], eax
call fcn.004f265f
mov ecx, dword [ebp - 0x1c]
add esp, 4
push ecx
call fcn.004f265f
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], eax
jmp 0x4c462d