Function at 0x409370
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareLenovoAccess_ConnectionsOptions
mov edi, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], edi
call esi
test eax, eax
je 0x4093bf
xor edi, edi
jmp 0x409694
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareLenovoAccess_ConnectionsInstall
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x4093ea
xor edi, edi
jmp 0x409694
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov ebx, dword [esp + 0x1c]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
movzx edx, bl
push str.AllowPrfCreationThruFWN
and edx, edi
push ecx
mov dword [esp + 0x24], edx
call esi
mov ecx, dword [esp + 0x14]
push 4
lea eax, [esp + 0x10]
push eax
push 4
movzx edx, bl
push 0
shr edx, 1
push str.NoWarningMsgForUnencryptedNW
and edx, 1
push ecx
mov dword [esp + 0x24], edx
call esi
push 4
mov dl, bl
not dl
lea ecx, [esp + 0x10]
push ecx
movzx eax, dl
mov edx, dword [esp + 0x18]
push 4
push 0
shr eax, 4
push str.DefaultRoamingSelectionForProfile
and eax, 1
push edx
mov dword [esp + 0x24], eax
call esi
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
movzx eax, bl
push 0
shr eax, 2
push str.HideServicesMenu
and eax, 1
push edx
mov dword [esp + 0x24], eax
call esi
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
movzx eax, bl
push 0
shr eax, 5
push str.DisableLocationSwitchingFeatureChanges
and eax, 1
push edx
mov dword [esp + 0x24], eax
call esi
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x10]
push ecx
movzx eax, bl
push 4
push 0
shr eax, 6
and eax, 1
push str.DoSilentImportOfADDProfiles
mov dword [esp + 0x20], eax
push edx
call esi
push 4
lea edx, [esp + 0x10]
push edx
mov al, bl
not al
push 4
movzx ecx, al
mov eax, dword [esp + 0x1c]
push 0
push str.DefaultRoamingSelectionForNoSecWLANProfile
shr ecx, 7
push eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
mov ecx, ebx
shr ecx, 8
push str.DisableEthAdptWhenCableUnplugged
and ecx, 1
push eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
mov ecx, ebx
shr ecx, 9
push str.DefaultDisconnectWiredOrWLRadioWhenSwitched
and ecx, 1
push eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
mov ecx, ebx
shr ecx, 0x10
push str.DefaultPinterShare
and ecx, 1
push eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
mov ecx, ebx
shr ecx, 0x11
push str.DefaultICS
and ecx, 1
push eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
mov ecx, ebx
shr ecx, 0x12
push str.DefaultICF
and ecx, 1
push eax
mov dword [esp + 0x24], ecx
call esi
mov ecx, ebx
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
shr ecx, 0x13
push str.DefaultNetworkSecurity
and ecx, 1
push eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
mov ecx, ebx
shr ecx, 0x14
push str.DefaultStartApplications
and ecx, 1
push eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
mov ecx, ebx
shr ecx, 0x15
push str.DefaultSetPrinter
and ecx, 1
push eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
mov ecx, ebx
shr ecx, 0x16
push str.DefaultOverrideTCPIP
and ecx, 1
push eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
mov ecx, ebx
shr ecx, 0x17
push str.DefaultEnableVPN
and ecx, 1
push eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
mov ecx, ebx
shr ecx, 0x18
push str.DefaultOverrideHomepage
and ecx, 1
push eax
mov dword [esp + 0x24], ecx
call esi
shr ebx, 0x19
and ebx, 1
mov dword [esp + 0xc], ebx
push 4
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.DefaultOverrideProxyConfig
push edx
call esi
pop ebx
mov eax, dword [esp + 0xc]
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4096a5
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4096b0
push eax
call esi
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret