Function at 0x40bf30
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1624
call fcn.00415e50
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
jne 0x40c15a
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bf60
sub ecx, edx
mov edx, str.SoftwareMicrosoftInternet_ExplorerMain
push ecx
push ebx
push str.Start_Page
push 1
mov ecx, SysReAllocString
call fcn.0040cc00
mov ecx, ebx
add esp, 0x10
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bf90
sub ecx, esi
mov edx, str.SoftwareMicrosoftInternet_ExplorerMain
push ecx
push ebx
push str.Start_Page
push 1
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040cc00
mov edx, ebx
add esp, 0x10
lea esi, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x40bfc0
sub edx, esi
mov ecx, SysReAllocString
push edx
push ebx
push str.Start_Page
push 1
mov edx, str.SoftwarePoliciesMicrosoftInternet_ExplorerMain
call fcn.0040cc00
mov esi, ebx
add esp, 0x10
lea edi, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x40bff0
sub esi, edi
mov edx, str.SoftwarePoliciesMicrosoftInternet_ExplorerMain
push esi
push ebx
push str.Start_Page
push 1
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040cc00
add esp, 0x10
mov dword [ebp - 0x1620], 1
lea eax, [ebp - 0x161c]
push 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.SoftwarePoliciesMicrosoftInternet_ExplorerControl_Panel
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40c0c2
push 4
lea eax, [ebp - 0x1620]
push eax
push 4
push 0
push str.HomePage
push dword [ebp - 0x161c]
call esi
push dword [ebp - 0x161c]
call edi
push 0
lea eax, [ebp - 0x161c]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push str.SoftwarePoliciesMicrosoftInternet_ExplorerControl_Panel
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c0c2
push 4
lea eax, [ebp - 0x1620]
push eax
push 4
push 0
push str.HomePage
push dword [ebp - 0x161c]
call esi
push dword [ebp - 0x161c]
call edi
push 0
lea eax, [ebp - 0x161c]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push str.SoftwarePoliciesMicrosoftInternet_ExplorerControl_Panel
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c15a
push 4
lea eax, [ebp - 0x1620]
push eax
push 4
push 0
push str.HomePage
push dword [ebp - 0x161c]
call esi
push dword [ebp - 0x161c]
call edi
push 0
lea eax, [ebp - 0x161c]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push str.SoftwarePoliciesMicrosoftInternet_ExplorerControl_Panel
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c15a
push 4
lea eax, [ebp - 0x1620]
push eax
push 4
push 0
push str.HomePage
push dword [ebp - 0x161c]
call esi
push dword [ebp - 0x161c]
call edi
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x160c], ax
lea eax, [ebp - 0x160a]
push eax
call fcn.00415320
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x60c], ax
lea eax, [ebp - 0x60a]
push eax
call fcn.00415320
push str._ProgramFiles_Internet_Exploreriexplore.exe
lea eax, [ebp - 0x60c]
push 0x200
push eax
call fcn.004138d3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00415320
add esp, 0x30
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea esi, [ebp - 0x160c]
mov dword [ebp - 0x1618], 0x10
xor edi, edi
mov dword [ebp - 0x1614], 0x10
mov dword [ebp - 0x1610], 0xb
lea esp, [esp]
lea eax, [ebp - 0x1624]
push eax
push dword [ebp + edi*4 - 0x1618]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40c242
push 0x400
push eax
push esi
call fcn.00415320
add esp, 0xc
push esi
push dword [ebp - 0x1624]
call ebx
inc edi
add esi, 0x400
cmp edi, 3
jl 0x40c210
lea eax, [ebp - 0xe0c]
push str.Windows
push eax
call fcn.004139fc
add esp, 8
test eax, eax
je 0x40c291
push str.Internet_ExplorerQuick_LaunchUser_PinnedStartMenuInternet_Expleror.lnk
push 0x200
push eax
call fcn.004138d3
lea eax, [ebp - 0xe0c]
push eax
lea eax, [ebp - 0xa0c]
push 0x200
push eax
call fcn.004138d3
add esp, 0x18
lea eax, [ebp - 0xa0c]
push str.StartMenu
push eax
call fcn.004139fc
add esp, 8
test eax, eax
je 0x40c2bc
push str.TaskBarIE
push 0x200
push eax
call fcn.004138d3
add esp, 0xc
lea esi, [ebp - 0x160c]
mov edi, 4
test esi, esi
je 0x40c2e8
push ecx
lea eax, [ebp - 0x60c]
mov edx, esi
push eax
push str.Internet_Expleror
lea ecx, [ebp - 0x20c]
call fcn.0040c310
add esp, 0xc
add esi, 0x400
dec edi
jne 0x40c2c7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411717
mov esp, ebp
pop ebp
ret 8