Function at 0x4271bf
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x5c
mov eax, 0x461def
call fcn.00450dc6
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x64], ebx
lea edi, [ebp - 0x64]
lea esi, [ebp - 0x44]
call fcn.00405ccc
test eax, eax
je 0x4271f5
cmp dword [ebp - 0x44], 6
jae 0x4271f5
xor eax, eax
jmp 0x427391
mov dword [ebp - 0x40], ebx
push 2
pop esi
mov dword [ebp - 0x50], esi
lea eax, [ebp - 0x40]
push eax
push 0x2001b
push ebx
push str.SOFTWAREPC_Connectivity_Solution
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x427296
cmp dword [ebp - 0x40], ebx
je 0x427296
mov byte [ebp - 0x3c], bl
lea edi, [ebp - 0x3b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x60], 0x14
mov dword [ebp - 0x48], ebx
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
mov edi, str.SearchOrderVal
push edi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42728a
cmp dword [ebp - 0x48], 4
jne 0x42728a
mov ah, byte [ebp - 0x39]
movzx eax, ax
movzx ecx, byte [ebp - 0x3a]
or eax, ecx
shl eax, 0x10
xor ecx, ecx
mov ch, byte [ebp - 0x3b]
movzx ecx, cx
or eax, ecx
movzx ecx, byte [ebp - 0x3c]
or eax, ecx
mov dword [ebp - 0x50], eax
push edi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], ebx
cmp dword [ebp - 0x50], esi
je 0x4271ee
mov dword [ebp - 0x4c], ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionDriverSearching
lea esi, [ebp - 0x48]
call fcn.004043af
mov byte [ebp - 4], 1
push str.SearchOrderConfig
lea esi, [ebp - 0x44]
call fcn.004043af
mov byte [ebp - 4], 2
lea eax, [ebp - 0x4c]
push eax
push 0x2011b
push ebx
push dword [ebp - 0x48]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x427373
cmp dword [ebp - 0x4c], ebx
je 0x427373
mov byte [ebp - 0x28], bl
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x5c], 0x14
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x427367
cmp dword [ebp - 0x58], 4
jne 0x427367
xor eax, eax
mov ah, byte [ebp - 0x25]
movzx eax, ax
movzx ecx, byte [ebp - 0x26]
or eax, ecx
shl eax, 0x10
xor ecx, ecx
mov ch, byte [ebp - 0x27]
movzx ecx, cx
or eax, ecx
movzx ecx, byte [ebp - 0x28]
or eax, ecx
cmp eax, 2
jne 0x427367
cmp dword [ebp - 0x50], eax
je 0x427367
push 4
lea eax, [ebp - 0x50]
push eax
push 4
push ebx
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 1
push dword [ebp - 0x44]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov byte [ebp - 4], bl
push dword [ebp - 0x48]
call esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
call fcn.00450e22
ret