Function at 0x454960
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6cc8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push ebx
push str.CInstallIntelligent::SetRegValue_key:__s_value:_s
push 0x515488
call fcn.0048d1f0
add esp, 0x10
mov dword [ebp + 8], 0
mov dword [ebp - 4], 0
mov esi, 1
mov eax, dword [0x515c64]
mov edi, esi
test eax, eax
jne 0x4549e7
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4549de
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515c64], eax
jmp 0x4549e3
mov eax, dword [0x515c64]
test eax, eax
je 0x4549eb
push 0
call eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4549f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x454ada
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x454a30
mov eax, dword [ebp + 8]
sub ecx, edx
sar ecx, 1
xor esi, esi
test eax, eax
je 0x454a61
add ecx, ecx
push ecx
push ebx
push 2
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, edi
cmove esi, eax
mov eax, dword [ebp + 8]
test esi, esi
jne 0x454a82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CInstallIntelligent::SetRegValue__SetValue__ws__ErrorCode_:__d
push 0x515488
call fcn.0048d1f0
mov eax, dword [ebp + 8]
add esp, 0x10
mov ebx, dword [ebp + 0x10]
cmp ebx, 1
jne 0x454ac6
xor edi, edi
test eax, eax
je 0x454aa6
push str.DelegateExecute
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
mov eax, ebx
cmove edi, eax
mov eax, dword [ebp + 8]
test edi, edi
jne 0x454ac6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CInstallIntelligent::SetRegValue__Delete_DelegateExecute_Error_:__d
push 0x515488
call fcn.0048d1f0
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x454ad1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], 0
jmp 0x454af7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CInstallIntelligent::SetRegValue_Open__s_Error:_d
push 0x515488
call fcn.0048d1f0
mov ebx, dword [ebp + 0x10]
add esp, 0x10
mov eax, dword [0x515c64]
test eax, eax
jne 0x454b2b
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x454b22
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515c64], eax
jmp 0x454b27
mov eax, dword [0x515c64]
test eax, eax
je 0x454b2f
push 1
call eax
cmp ebx, 1
jne 0x454b42
test esi, esi
je 0x454b3e
test edi, edi
je 0x454b3e
jmp 0x454b49
xor ebx, ebx
jmp 0x454b49
xor ebx, ebx
test esi, esi
setne bl
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x454b57
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
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