Function at 0x40efe6
Capabilities:
Set registry value

Disassembly:
sub esp, 0x234
push ebx
push ebp
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [esp + 0x3c]
push ebx
push eax
mov esi, ecx
call fcn.0045b550
add esp, 0xc
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
push esi
call fcn.0040f47c
pop ecx
lea ecx, [esp + 0x20]
call fcn.00405606
push eax
push str._CreateCustomProtocol____subkey_to_chaeck__s
call fcn.0041c596
pop ecx
pop ecx
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x2c]
call fcn.00405606
push eax
mov edi, SysReAllocStringLen
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esi + 0x48], eax
test eax, eax
je 0x40f1ea
push str._RegopenKey_failed.So_We_are_creating_the_key
call fcn.0041c596
pop ecx
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea ecx, [esp + 0x3c]
call fcn.00405606
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [esi + 0x48], eax
test eax, eax
jne 0x40f21a
push str._Regcreatekey_success_creating_subkeys__values
call fcn.0041c596
pop ecx
mov ecx, esi
call fcn.00405606
push eax
push str.URL:_s_Protocol
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.0040e158
lea eax, [esp + 0x48]
push eax
call fcn.0045ea48
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 0x14
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x3c]
push eax
push 1
push ebx
push 0x497a60
push dword [esp + 0x28]
call edi
mov dword [esi + 0x48], eax
test eax, eax
jne 0x40f21a
push 4
push 0x49a004
push 1
push ebx
push str.URL_Protocol
push dword [esp + 0x28]
call edi
mov dword [esi + 0x48], eax
test eax, eax
jne 0x40f21a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [esp + 0x1c]
push eax
push str.DefaultIcon
push dword [esp + 0x1c]
call ebx
mov dword [esi + 0x48], eax
test eax, eax
jne 0x40f21a
lea ecx, [esi + 0x30]
call fcn.00405606
push eax
push 0x49b884
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.0040e158
lea eax, [esp + 0x48]
push eax
call fcn.0045ea48
add esp, 0x14
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x3c]
push eax
push 1
push 0
push 0x497a60
push dword [esp + 0x30]
call edi
mov dword [esi + 0x48], eax
test eax, eax
jne 0x40f21a
lea eax, [esp + 0x18]
push eax
push str.ShellOpencommand
push dword [esp + 0x1c]
call ebx
mov dword [esi + 0x48], eax
test eax, eax
jne 0x40f21a
lea ecx, [esi + 0x30]
call fcn.00405606
push eax
push str.__s___LaunchAppArgs____1_
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.0040e158
lea eax, [esp + 0x48]
push eax
call fcn.0045ea48
add esp, 0x14
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x3c]
push eax
push 1
push 0
push 0x497a60
push dword [esp + 0x2c]
call edi
mov dword [esi + 0x48], eax
jmp 0x40f21a
or dword [esi + 0x48], 0xffffffff
mov ecx, esi
call fcn.00405606
push eax
push str._s_Key_is_already_present.
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.0040e158
add esp, 0x10
lea eax, [esp + 0x38]
lea ecx, [esi + 0x4c]
push eax
call fcn.00406e5f
xor ebx, ebx
cmp dword [esi + 0x48], ebx
je 0x40f228
mov ecx, esi
call fcn.0040ef5d
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], ebx
je 0x40f23e
push dword [esp + 0x18]
call edi
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x1c], ebx
je 0x40f24e
push dword [esp + 0x1c]
call edi
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x14], ebx
je 0x40f25e
push dword [esp + 0x14]
call edi
mov dword [esp + 0x14], ebx
mov esi, dword [esi + 0x48]
lea ecx, [esp + 0x20]
call fcn.0040563f
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret