Function at 0x4c36c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5114dd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], 0
push SysReAllocString
call edi
test eax, eax
jne 0x4c3766
mov edx, dword [ebp + 0xc]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c3710
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, esi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push 0
push dword [ebp - 0x10]
call ebx
push 0
push 0
push 1
push 0
push str.URL_Protocol
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x14]
push eax
push str.DefaultIcon
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4c377c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c3784
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x18]
push eax
push str.ShellOpenCommand
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4c37df
push dword [ebp - 0x10]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp + 0xc]
call fcn.0047d0b0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.0044f000
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push 0x5343d8
push eax
call fcn.0048c6a0
push 0x5343d8
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.0048bbf0
push 0x51c82c
push eax
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 3
push eax
call fcn.0048bbf0
add esp, 0x24
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.0048cea0
lea ecx, [ebp + 0x10]
call fcn.0044c000
lea ecx, [ebp - 0x1c]
call fcn.0044c000
lea ecx, [ebp - 0x20]
call fcn.0044c000
lea ecx, [ebp - 0x24]
call fcn.0044c000
lea ecx, [ebp + 0xc]
call fcn.0044f620
lea ecx, [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
call fcn.0044c020
push eax
push 1
push 0
push 0
push dword [ebp - 0x18]
call ebx
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x10]
push eax
push str.SOFTWAREMicrosoftInternet_ExplorerProtocolExecute
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4c38d8
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4c38d3
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.WarnOnOpen
push dword [ebp + 0x10]
call ebx
push dword [ebp + 0x10]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp + 0xc]
call fcn.0044c000
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc