Function at 0x42a140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x629070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x48], 7
push eax
push 0x61c2f4
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.00401d10
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0
push eax
mov edx, str.LenovoInstallPath
mov ecx, str.SOFTWARELenovopcmanager
call fcn.0041b910
add esp, 4
test eax, eax
jne 0x42a373
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x60]
push eax
push 0xf003f
push 0
push str.SOFTWARELenovopcmanager
push closesocket
mov dword [ebp - 0x14], 1
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x42a203
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.InstalledSLB
push dword [ebp - 0x60]
call edi
test eax, eax
jne 0x42a203
push dword [ebp - 0x60]
call esi
xor eax, eax
mov dword [ebp - 0x30], 7
push eax
push 0x61c2f4
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00401d10
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
mov edx, str.SupplyID
mov ecx, str.SOFTWARELenovoSLBrowser_
call fcn.0041b910
add esp, 4
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x60]
push eax
push 0xf003f
push 0
push str.SOFTWARELenovopcmanager
push closesocket
call ebx
test eax, eax
jne 0x42a29f
mov edx, dword [ebp - 0x14]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a273
sub ecx, dword [ebp - 0x14]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push str.SLBChannel
push dword [ebp - 0x60]
call edi
test eax, eax
jne 0x42a29f
push dword [ebp - 0x60]
call esi
xor eax, eax
mov dword [ebp - 0x18], 7
push eax
push 0x61c2f4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00401d10
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
mov edx, str.Version
mov ecx, str.SOFTWARELenovoSLBrowser_
call fcn.0041b910
add esp, 4
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x18], 8
lea edi, [ebp - 0x2c]
cmovae edi, dword [ebp - 0x2c]
push eax
push 0xf003f
push 0
push str.SOFTWARELenovopcmanager
push closesocket
call ebx
test eax, eax
jne 0x42a335
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42a306
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push str.SLBVersion
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x42a335
push dword [ebp - 0x60]
call esi
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x42a34a
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00402170
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x42a373
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00402170
mov eax, dword [ebp - 0x48]
cmp eax, 8
jb 0x42a388
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00402170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004387fb
mov esp, ebp
pop ebp
ret