Function at 0x422cb6
Capabilities:
Set registry value

Disassembly:
push 0x6c
mov eax, 0x43c3b3
call fcn.00437f7e
mov esi, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], edi
cmp dword [edi + 0x10], ecx
je 0x42307a
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], ecx
cmp dword [eax + 0x14], 7
jbe 0x422cef
mov eax, dword [eax]
push 0x2001f
push eax
xor eax, eax
lea ecx, [ebp - 0x78]
cmp byte [esi + 0x4d], al
sete al
add eax, 0x80000001
push eax
call fcn.00405965
test eax, eax
jne 0x422dca
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push str.protocol_handler_scheme
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0041c366
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004027c9
lea ecx, [ebp - 0x40]
call fcn.004027a6
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, esi
call dword [eax + 0xb0]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
cmova ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 7
jbe 0x422d74
mov eax, dword [eax]
push ecx
push eax
lea eax, [esi + 0x150]
push str.HKCU_S_:protocol_handler_scheme___s
push eax
call fcn.004026dd
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402ab8
cmp dword [ebp - 0x18], 0
je 0x422dbb
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0040eec0
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00423082
lea ecx, [ebp - 0x40]
call fcn.00402ab8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004027a6
mov edi, dword [ebp - 0x6c]
push edi
mov edx, str.SOFTWAREClasses_
lea ecx, [ebp - 0x40]
call fcn.0040c202
pop ecx
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 7
jbe 0x422de5
mov eax, dword [eax]
xor edx, edx
lea ecx, [ebp - 0x68]
cmp byte [esi + 0x4d], dl
push 0
sete dl
push 0
push eax
add edx, 0x80000001
call fcn.0041c3ee
add esp, 0xc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00402ab8
lea eax, [ebp - 0x28]
push str.failed_to_set_value_for_protocol
push eax
call fcn.0040f0b3
pop ecx
pop ecx
mov dword [ebp - 0x5c], eax
push 1
push str.URL:_Project_X_Protocol
push 0x43ff90
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.00405a63
mov ecx, eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x14], 0xf
jbe 0x422e47
mov eax, dword [eax]
mov edx, eax
call fcn.0041c241
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.004027a6
lea eax, [ebp - 0x28]
push str.failed_to_set_value_for_protocol
push eax
call fcn.0040f0b3
pop ecx
pop ecx
mov dword [ebp - 0x5c], eax
push 1
push 0x43ff90
push str.URL_Protocol
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 8
call fcn.00405a63
mov ecx, eax
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x14], 0xf
jbe 0x422e92
mov eax, dword [eax]
mov edx, eax
call fcn.0041c241
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.004027a6
cmp dword [ebx + 0x14], 7
mov eax, ebx
jbe 0x422eaf
mov eax, dword [ebx]
mov edx, dword [ebp - 0x68]
lea ecx, [ebp - 0x1c]
push 0
push eax
push str.DefaultIcon
call fcn.0041c3ee
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004058ae
cmp dword [ebx + 0x14], 7
jbe 0x422ed5
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x58]
push str.__s____1
push eax
call fcn.0040f235
mov byte [ebp - 4], 9
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 7
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x68]
cmova eax, dword [ebp - 0x58]
xor ebx, ebx
push ebx
push eax
push str.shellopencommand
call fcn.0041c3ee
add esp, 0x18
lea ecx, [ebp - 0x1c]
call fcn.004058ae
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x422f1c
mov eax, dword [edi]
push 1
push eax
push str.protocol_handler_scheme
lea ecx, [ebp - 0x78]
call fcn.00405a63
mov edx, str.Failed_to_set_protocol_handler_scheme_key_value
mov ecx, eax
call fcn.0041c241
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x90]
test al, al
je 0x42300f
push edi
mov edx, str.SOFTWAREMicrosoftInternet_ExplorerProtocolExecute_
lea ecx, [ebp - 0x40]
call fcn.0040c202
pop ecx
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 7
jbe 0x422f65
mov eax, dword [eax]
xor edx, edx
lea ecx, [ebp - 0x1c]
cmp byte [esi + 0x4d], dl
push ebx
sete dl
push ebx
push eax
add edx, 0x80000001
call fcn.0041c3ee
mov ecx, dword [ebp - 0x68]
mov edi, eax
add esp, 0xc
cmp ecx, dword [edi]
je 0x422fab
lea ecx, [ebp - 0x68]
call fcn.004058ae
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [edi]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x1c]
call fcn.004058ae
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00402ab8
lea eax, [ebp - 0x40]
push str.Failed_to_set_Protocol_WarnOnOpen_Key
push eax
call fcn.0040f0b3
pop ecx
pop ecx
mov edi, eax
push 4
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0xb
push eax
push 4
push ebx
push str.WarnOnOpen
push dword [ebp - 0x68]
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [edi + 0x14], 0xf
jbe 0x422ff7
mov edi, dword [edi]
mov edx, edi
mov ecx, eax
call fcn.0041c241
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.004027a6
mov edi, dword [ebp - 0x6c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
test al, al
je 0x42305b
push edi
mov edx, str.SOFTWAREMicrosoftInternet_ExplorerProtocolExecute_
lea ecx, [ebp - 0x40]
call fcn.0040c202
pop ecx
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 7
jbe 0x423038
mov eax, dword [eax]
xor edx, edx
lea ecx, [esi + 0x150]
cmp byte [esi + 0x4d], dl
push eax
sete dl
add edx, 0x80000001
call fcn.0041c4cf
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00402ab8
lea ecx, [ebp - 0x58]
call fcn.00402ab8
lea ecx, [ebp - 0x68]
call fcn.004058ae
cmp dword [ebp - 0x78], 0
je 0x42307a
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00437f2d
ret 0xc