Function at 0x406be0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x449258
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563c4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
mov byte [esp + 0x74], 2
push str.SoftwareIntelICCInst
push 0x80000002
mov dword [esp + 0x30], 0x1000
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x406e66
mov edx, 0x44d40c
call fcn.004015c0
test eax, eax
je 0x406c89
mov ecx, 0x44d40c
call fcn.00401690
jmp 0x406c94
push 0x44d410
push edi
call fcn.00405570
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x406ca0
mov edx, dword [esp + 0x14]
sub ecx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar ecx, 1
add ecx, ecx
push ecx
push eax
push 1
push ebx
push str.InstallPath
push edx
call esi
lea eax, [esp + 0x40]
push eax
call fcn.00418300
mov edx, dword [esp + 0x48]
add esp, 4
cmp dword [esp + 0x58], 8
jae 0x406ce4
lea edx, [esp + 0x44]
mov eax, edx
lea ebp, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406cf0
sub eax, ebp
sar eax, 1
lea ecx, [eax + eax]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push ebx
push str.Version
push edx
call esi
cmp dword [edi + 0x34], ebx
mov edx, 0x44d450
jne 0x406d22
mov edx, 0x44d458
mov eax, edx
lea ebp, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406d27
mov ecx, dword [esp + 0x14]
sub eax, ebp
sar eax, 1
add eax, eax
push eax
push edx
push 1
push ebx
push str.Reboot
push ecx
call esi
cmp dword [edi + 0x38], ebx
mov edx, str.success
je 0x406d58
mov edx, str.failure
mov eax, edx
lea ebp, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406d60
mov ecx, dword [esp + 0x14]
sub eax, ebp
sar eax, 1
add eax, eax
push eax
push edx
push 1
push ebx
push str.Install
push ecx
call esi
mov edx, dword [edi + 0x24c]
mov eax, dword [edx]
add edi, 0x248
mov esi, edi
mov ebp, eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebp
lea esp, [esp]
cmp esi, ebx
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
je 0x406daf
cmp esi, edi
je 0x406db4
call fcn.004228be
cmp ebp, dword [esp + 0x3c]
je 0x406dfc
cmp esi, ebx
jne 0x406dc3
call fcn.004228be
cmp ebp, dword [esi + 4]
jne 0x406dcd
call fcn.004228be
cmp byte [ebp + 0x28], bl
je 0x406de9
cmp ebp, dword [esi + 4]
jne 0x406ddc
call fcn.004228be
add ebp, 0xc
push ebp
lea esi, [esp + 0x24]
call fcn.00410ce0
lea esi, [esp + 0x30]
call fcn.004159f0
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
jmp 0x406da0
xor ecx, ecx
mov eax, 0x1000
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042260a
mov esi, eax
add esp, 4
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x28]
call fcn.00421020
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
add esp, 8
lea edx, [ecx + ecx]
push edx
push esi
push 7
push ebx
push str.InstallConfig
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call fcn.00422b32
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x406e62
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x406e8c
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
push ecx
call fcn.00417420
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x58], 8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
jb 0x406eac
mov eax, dword [esp + 0x44]
push eax
call fcn.00422b32
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
je 0x406ecc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00422b23
add esp, 0x58
ret