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

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x20006
push 0
push 0
push closesocket
mov dword [esp + 0x24], 0
call ebp
test eax, eax
jne 0x4b1586
lea ecx, [esp + 0x10]
push ecx
push str.CLSID20D04FE0_3AEA_1069_A2D8_08002B30309D_shell_findcommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.CLSID20D04FE0_3AEA_1069_A2D8_08002B30309D_shell_findcommand
push closesocket
call ebp
test eax, eax
je 0x4b15bd
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x104
ret
lea ecx, [esp + 0x94]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x94]
lea eax, [esp + 0x14]
push edx
push str._sExplorer.exe
push eax
call fcn.004f175f
lea ecx, [esp + 0x20]
push ecx
call fcn.004fa6c0
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ebx, eax
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 2
push eax
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
push 0x20006
push 0
push 0
push closesocket
call ebp
test eax, eax
jne 0x4b1654
lea eax, [esp + 0x10]
push eax
push str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [esp + 0x10]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push str.CLSID871C5380_42A0_1069_A2EA_08002B30309D_shellOpenHomePageCommand
push closesocket
call ebp
test eax, eax
je 0x4b1685
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x104
ret
lea eax, [esp + 0x94]
lea ecx, [esp + 0x14]
push eax
push str._sProgram_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa2], 0
mov byte [esp + 0x20], 0
call fcn.004f175f
lea edx, [esp + 0x20]
push edx
call fcn.004fa6c0
add esp, 0x10
mov ebx, eax
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 2
push eax
push eax
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call esi
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
push 0
push closesocket
call ebp
test eax, eax
jne 0x4b1718
lea ecx, [esp + 0x10]
push ecx
push str.CLSID20D04FE0_3AEA_1069_A2D8_08002B30309D_shellManagecommand
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x10]
push edx
call esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.CLSID20D04FE0_3AEA_1069_A2D8_08002B30309D_shellManagecommand
push closesocket
call ebp
test eax, eax
je 0x4b1749
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x104
ret
push str._windir__system32mmc.exe__s__windir__system32compmgmt.msc
call fcn.004fa6c0
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebp, eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebp
push 2
push eax
push eax
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret