Function at 0x4182b6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x467cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4947b8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x4947b8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [edi + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x1c], edi
je 0x41877e
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x88], eax
cmp dword [ecx + 0x14], 8
jb 0x418326
mov ecx, dword [ecx]
mov al, byte [esi + 0x4d]
push 0x2001f
push ecx
xor ecx, ecx
test al, al
sete cl
add ecx, 0x80000001
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040c7f9
test eax, eax
jne 0x418426
and dword [esp + 0x40], eax
mov dword [esp + 0x44], 0xf
mov byte [esp + 0x30], al
push str.protocol_handler_scheme
lea edx, [esp + 0x24]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8c], 1
call fcn.00426f39
pop ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00407ded
lea ecx, [esp + 0x48]
call fcn.00407e25
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call dword [eax + 0xb4]
mov byte [esp + 0x88], 2
cmp dword [esp + 0x44], 0x10
lea ecx, [esp + 0x30]
cmovae ecx, dword [esp + 0x30]
cmp dword [eax + 0x14], 8
jb 0x4183b9
mov eax, dword [eax]
push ecx
push eax
lea eax, [esi + 0x160]
push str.HKCU_S_:protocol_handler_scheme___s
push eax
call fcn.00408e53
add esp, 0x10
lea ecx, [esp + 0x48]
push 0
push 1
mov byte [esp + 0x90], 1
call fcn.004095c3
cmp dword [esp + 0x40], 0
je 0x418415
lea edx, [esp + 0x30]
lea ecx, [esp + 0x48]
call fcn.004297c4
push eax
mov ecx, esi
mov byte [esp + 0x8c], 3
call fcn.004187a1
push 0
push 1
lea ecx, [esp + 0x50]
call fcn.004095c3
lea ecx, [esp + 0x30]
mov byte [esp + 0x88], 0
call fcn.00407e25
push edi
mov edx, str.SOFTWAREClasses_
lea ecx, [esp + 0x4c]
call fcn.0040a9eb
pop ecx
mov ecx, eax
mov byte [esp + 0x88], 4
cmp dword [ecx + 0x14], 8
jb 0x418448
mov ecx, dword [ecx]
mov al, byte [esi + 0x4d]
xor edx, edx
test al, al
sete dl
push 0
push 0
push ecx
lea ecx, [esp + 0x1c]
add edx, 0x80000001
call fcn.00426fc0
add esp, 0xc
push 0
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x90], 6
call fcn.004095c3
lea eax, [esp + 0x30]
push str.failed_to_set_value_for_protocol
push eax
call fcn.004299b0
pop ecx
pop ecx
mov edi, eax
push 1
push str.URL:_Roblox_Protocol
push 0x477da8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 7
call fcn.0040c605
cmp dword [edi + 0x14], 0x10
jb 0x4184b6
mov edi, dword [edi]
mov edx, edi
mov ecx, eax
call fcn.00426e1d
lea ecx, [esp + 0x30]
mov byte [esp + 0x88], 6
call fcn.00407e25
lea eax, [esp + 0x30]
push str.failed_to_set_value_for_protocol
push eax
call fcn.004299b0
pop ecx
pop ecx
mov edi, eax
push 1
push 0x477da8
push str.URL_Protocol
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 8
call fcn.0040c605
cmp dword [edi + 0x14], 0x10
jb 0x418508
mov edi, dword [edi]
mov edx, edi
mov ecx, eax
call fcn.00426e1d
lea ecx, [esp + 0x30]
mov byte [esp + 0x88], 6
call fcn.00407e25
cmp dword [ebx + 0x14], 8
jb 0x41852c
mov eax, dword [ebx]
jmp 0x41852e
mov eax, ebx
mov edx, dword [esp + 0x10]
push 0
push eax
push str.DefaultIcon
lea ecx, [esp + 0x3c]
call fcn.00426fc0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp dword [esp + 0x30], 0
je 0x418559
push dword [esp + 0x30]
call edi
cmp dword [ebx + 0x14], 8
jb 0x418561
mov ebx, dword [ebx]
push ebx
lea eax, [esp + 0x64]
push str.__s____1
push eax
call fcn.00429b41
add esp, 0xc
mov byte [esp + 0x88], 9
cmp dword [esp + 0x74], 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x60]
cmovae eax, dword [esp + 0x60]
push 0
push eax
push str.shellopencommand
lea ecx, [esp + 0x3c]
call fcn.00426fc0
add esp, 0xc
cmp dword [esp + 0x30], 0
je 0x4185af
push dword [esp + 0x30]
call edi
mov ebx, dword [esp + 0x1c]
cmp dword [ebx + 0x14], 8
jb 0x4185bd
mov eax, dword [ebx]
jmp 0x4185bf
mov eax, ebx
push 1
push eax
push str.protocol_handler_scheme
lea ecx, [esp + 0x2c]
call fcn.0040c605
mov edx, str.Failed_to_set_protocol_handler_scheme_key_value
mov ecx, eax
call fcn.00426e1d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
test al, al
je 0x4186f7
push ebx
mov edx, str.SOFTWAREMicrosoftInternet_ExplorerProtocolExecute_
lea ecx, [esp + 0x4c]
call fcn.0040a9eb
pop ecx
mov ecx, eax
mov byte [esp + 0x88], 0xa
cmp dword [ecx + 0x14], 8
jb 0x418610
mov ecx, dword [ecx]
mov al, byte [esi + 0x4d]
xor edx, edx
test al, al
sete dl
push 0
push 0
push ecx
lea ecx, [esp + 0x3c]
add edx, 0x80000001
call fcn.00426fc0
mov ebx, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, dword [ebx]
je 0x41866b
test eax, eax
je 0x418647
push eax
call edi
and dword [esp + 0x10], 0
and dword [esp + 0x14], 0
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
and dword [ebx], 0
and dword [ebx + 4], 0
and dword [ebx + 8], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x30], 0
je 0x41867d
push dword [esp + 0x30]
call edi
and dword [esp + 0x30], 0
and dword [esp + 0x34], 0
push 0
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x90], 9
call fcn.004095c3
lea eax, [esp + 0x48]
push str.Failed_to_set_Protocol_WarnOnOpen_Key
push eax
call fcn.004299b0
pop ecx
pop ecx
mov ebx, eax
push 4
lea eax, [esp + 0x30]
push eax
push 4
push 0
mov byte [esp + 0x98], 0xb
and dword [esp + 0x3c], 0
push str.WarnOnOpen
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebx + 0x14], 0x10
jb 0x4186d9
mov ebx, dword [ebx]
mov edx, ebx
mov ecx, eax
call fcn.00426e1d
lea ecx, [esp + 0x48]
mov byte [esp + 0x88], 9
call fcn.00407e25
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x90]
test al, al
je 0x41874d
push ebx
mov edx, str.SOFTWAREMicrosoftInternet_ExplorerProtocolExecute_
lea ecx, [esp + 0x4c]
call fcn.0040a9eb
pop ecx
mov byte [esp + 0x88], 0xc
cmp dword [eax + 0x14], 8
jb 0x418725
mov eax, dword [eax]
xor edx, edx
cmp byte [esi + 0x4d], dl
push eax
sete dl
lea ecx, [esi + 0x160]
add edx, 0x80000001
call fcn.004270a2
pop ecx
push 0
push 1
lea ecx, [esp + 0x50]
call fcn.004095c3
push 0
push 1
lea ecx, [esp + 0x68]
call fcn.004095c3
cmp dword [esp + 0x10], 0
je 0x41876c
push dword [esp + 0x10]
call edi
and dword [esp + 0x10], 0
and dword [esp + 0x14], 0
cmp dword [esp + 0x20], 0
je 0x41877e
push dword [esp + 0x20]
call edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004492e4
mov esp, ebp
pop ebp
ret 0xc