Function at 0x406c90
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x448da8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4563d0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563d0]
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 0x406f16
mov edx, 0x44d3f4
call fcn.004015c0
test eax, eax
je 0x406d39
mov ecx, 0x44d3f4
call fcn.00401690
jmp 0x406d44
push 0x44d3f8
push edi
call fcn.00405620
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x406d50
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.00418410
mov edx, dword [esp + 0x48]
add esp, 4
cmp dword [esp + 0x58], 8
jae 0x406d94
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 0x406da0
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, 0x44d438
jne 0x406dd2
mov edx, 0x44d440
mov eax, edx
lea ebp, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406dd7
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 0x406e08
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 0x406e10
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 0x406e5f
cmp esi, edi
je 0x406e64
call fcn.00422ffd
cmp ebp, dword [esp + 0x3c]
je 0x406eac
cmp esi, ebx
jne 0x406e73
call fcn.00422ffd
cmp ebp, dword [esi + 4]
jne 0x406e7d
call fcn.00422ffd
cmp byte [ebp + 0x28], bl
je 0x406e99
cmp ebp, dword [esi + 4]
jne 0x406e8c
call fcn.00422ffd
add ebp, 0xc
push ebp
lea esi, [esp + 0x24]
call fcn.00410de0
lea esi, [esp + 0x30]
call fcn.00415a60
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
jmp 0x406e50
xor ecx, ecx
mov eax, 0x1000
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00422540
mov esi, eax
add esp, 4
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x28]
call fcn.004210c0
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.00422ece
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x406f12
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x406f3c
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
push ecx
call fcn.00417520
mov edx, dword [esp + 0x28]
add esp, 4
push edx
call fcn.00422ece
add esp, 4
cmp dword [esp + 0x58], 8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
jb 0x406f5c
mov eax, dword [esp + 0x44]
push eax
call fcn.00422ece
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 0x406f7c
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.00422834
add esp, 0x58
ret