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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d72c8
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.0048d710
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 0x454c17
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x454c0e
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515c64], eax
jmp 0x454c13
mov eax, dword [0x515c64]
test eax, eax
je 0x454c1b
push 0
call eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x454c29
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 0x454d0a
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x454c60
mov eax, dword [ebp + 8]
sub ecx, edx
sar ecx, 1
xor esi, esi
test eax, eax
je 0x454c91
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 0x454cb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CInstallIntelligent::SetRegValue__SetValue__ws__ErrorCode_:__d
push 0x515488
call fcn.0048d710
mov eax, dword [ebp + 8]
add esp, 0x10
mov ebx, dword [ebp + 0x10]
cmp ebx, 1
jne 0x454cf6
xor edi, edi
test eax, eax
je 0x454cd6
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 0x454cf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CInstallIntelligent::SetRegValue__Delete_DelegateExecute_Error_:__d
push 0x515488
call fcn.0048d710
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x454d01
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], 0
jmp 0x454d27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CInstallIntelligent::SetRegValue_Open__s_Error:_d
push 0x515488
call fcn.0048d710
mov ebx, dword [ebp + 0x10]
add esp, 0x10
mov eax, dword [0x515c64]
test eax, eax
jne 0x454d5b
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x454d52
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515c64], eax
jmp 0x454d57
mov eax, dword [0x515c64]
test eax, eax
je 0x454d5f
push 1
call eax
cmp ebx, 1
jne 0x454d72
test esi, esi
je 0x454d6e
test edi, edi
je 0x454d6e
jmp 0x454d79
xor ebx, ebx
jmp 0x454d79
xor ebx, ebx
test esi, esi
setne bl
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x454d87
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