Function at 0x45f8a0
Capabilities:
Get common file path
Get program files directory
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e0ec
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4914f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x42c], esi
call fcn.0042fa4e
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x45f8f9
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x420], eax
mov dword [ebp - 4], esi
call fcn.0042fa4e
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x45f928
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
push 0x47
push str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 1
call fcn.00403400
push esi
push 0x471d88
lea ecx, [ebp - 0x424]
call fcn.00403400
mov dword [ebp - 0x41c], esi
call fcn.0042fa4e
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x45f981
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x418], eax
mov byte [ebp - 4], 2
call fcn.0042fa4e
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x45f9b1
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x414], eax
push esi
push 0x26
lea ecx, [ebp - 0x410]
push ecx
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x418]
push str.__sInternet_ExplorerIEXPLORE.EXE___s
push eax
call fcn.00403af0
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x414]
push str.__sInternet_ExplorerIEXPLORE.EXE_
push edx
call fcn.00403af0
mov esi, dword [ebp - 0x424]
add esp, 0x1c
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [ebp - 0x420]
push 1
lea ecx, [ebp - 0x210]
push ecx
push ebx
push SysReAllocString
call fcn.0045bc30
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp eax, 1
jne 0x45fb1e
mov edi, dword [ebp - 0x418]
lea edx, [ebp - 0x210]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x45fa73
push 1
push edi
push esi
push ebx
push SysReAllocString
call fcn.0045f5e0
add esp, 0x14
mov edi, dword [ebp - 0x414]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fa99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fabf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fadf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45fb02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044665f
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x45fb8d
push edi
call fcn.0045f810
add esp, 4
test eax, eax
je 0x45fb63
mov edi, dword [ebp - 0x414]
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x45fa79
push 1
push edi
push esi
push ebx
push SysReAllocString
call fcn.0045f5e0
add esp, 0x14
jmp 0x45fa79
mov edx, dword [ebp - 0x418]
lea ecx, [ebp - 0x210]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x45fa73
mov eax, dword [ebp - 0x418]
push 1
push eax
jmp 0x45fa64
cmp eax, 3
jne 0x45fa73
mov edi, dword [ebp - 0x414]
lea ecx, [ebp - 0x210]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x45fa79
lea edx, [ebp - 0x42c]
push edx
lea eax, [ebp - 0x41c]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x45fa79
cmp dword [edi - 4], 1
mov dword [ebp - 0x428], edi
jle 0x45fc02
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x414]
call fcn.004019e0
mov edi, dword [ebp - 0x414]
mov edx, dword [ebp - 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x41c]
lea eax, [eax + eax + 1]
push eax
push edi
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45fa79