Function at 0x4c4070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5147dd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x550144]
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 0x4c4116
mov edx, dword [ebp + 0xc]
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c40c0
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 0x4c412c
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 0x4c4134
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 0x4c418f
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.0047d240
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.0044f140
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push 0x538378
push eax
call fcn.0048cb80
push 0x538378
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.0048c0d0
push 0x51fa74
push eax
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 3
push eax
call fcn.0048c0d0
add esp, 0x24
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.0048d380
lea ecx, [ebp + 0x10]
call fcn.0044c080
lea ecx, [ebp - 0x1c]
call fcn.0044c080
lea ecx, [ebp - 0x20]
call fcn.0044c080
lea ecx, [ebp - 0x24]
call fcn.0044c080
lea ecx, [ebp + 0xc]
call fcn.0044f760
lea ecx, [ebp + 0xc]
lea eax, [eax*2 + 2]
push eax
call fcn.0044c0a0
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 0x4c4288
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 0x4c4283
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.0044c080
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