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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5728
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 0x515408
call fcn.0048c0f0
add esp, 0x10
mov dword [ebp + 8], 0
mov dword [ebp - 4], 0
mov esi, 1
mov eax, dword [0x515be4]
mov edi, esi
test eax, eax
jne 0x452887
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45287e
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515be4], eax
jmp 0x452883
mov eax, dword [0x515be4]
test eax, eax
je 0x45288b
push 0
call eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x452899
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 0x45297a
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4528d0
mov eax, dword [ebp + 8]
sub ecx, edx
sar ecx, 1
xor esi, esi
test eax, eax
je 0x452901
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 0x452922
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CInstallIntelligent::SetRegValue__SetValue__ws__ErrorCode_:__d
push 0x515408
call fcn.0048c0f0
mov eax, dword [ebp + 8]
add esp, 0x10
mov ebx, dword [ebp + 0x10]
cmp ebx, 1
jne 0x452966
xor edi, edi
test eax, eax
je 0x452946
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 0x452966
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CInstallIntelligent::SetRegValue__Delete_DelegateExecute_Error_:__d
push 0x515408
call fcn.0048c0f0
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x452971
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], 0
jmp 0x452997
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CInstallIntelligent::SetRegValue_Open__s_Error:_d
push 0x515408
call fcn.0048c0f0
mov ebx, dword [ebp + 0x10]
add esp, 0x10
mov eax, dword [0x515be4]
test eax, eax
jne 0x4529cb
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4529c2
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515be4], eax
jmp 0x4529c7
mov eax, dword [0x515be4]
test eax, eax
je 0x4529cf
push 1
call eax
cmp ebx, 1
jne 0x4529e2
test esi, esi
je 0x4529de
test edi, edi
je 0x4529de
jmp 0x4529e9
xor ebx, ebx
jmp 0x4529e9
xor ebx, ebx
test esi, esi
setne bl
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4529f7
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