Function at 0x4214a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x524
mov eax, dword [0x4d044c]
xor eax, esp
mov dword [esp + 0x520], eax
push ebx
push esi
xor ebx, ebx
lea ecx, [esp + 0x24]
push edi
mov byte [esp + 0x28], bl
call fcn.00430fb0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x28], bl
jne 0x421631
xor eax, eax
lea esi, [esp + 0x128]
mov edx, 0x400
mov word [esp + 0x128], ax
mov ecx, esi
call fcn.00430c90
test eax, eax
je 0x4215d8
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push 0x4c76c8
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421549
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x400
push eax
mov eax, esi
push eax
push ebx
push ebx
push 0x4c7738
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x10]
call edi
jmp 0x4215bf
lea esi, [esp + 0x128]
cmp eax, 2
jne 0x4215d4
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x42161e
push 0x200
mov eax, esi
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x42161e
mov eax, esi
push 0x200
push eax
call fcn.00490efd
add esp, 8
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 - 2]
cmp eax, 0x400
jae 0x421715
xor ecx, ecx
lea esi, [esp + 0x12a]
mov word [esp + eax + 0x128], cx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, esi
lea edx, [eax*2 + 2]
call fcn.00430bf0
test eax, eax
jne 0x42161e
lea eax, [esp + 0x10]
push eax
push 0x4c76c8
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x42161e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push 0x4c7738
push dword [esp + 0x24]
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
call edi
lea ecx, [esp + 0x28]
call fcn.00430fb0
cmp byte [esp + 0x28], bl
je 0x4216fe
push 0
push str.CLSIDA66B1D7A_A610_4e66_B8CF_C451D0932B1DGlobalInfo
push closesocket
mov byte [esp + 0xb4], bl
call fcn.0045e060
mov esi, eax
test esi, esi
je 0x421667
push 0x28
lea eax, [esp + 0xac]
push eax
push str.SysId
push esi
call fcn.0045e550
push esi
call edi
push 0
push str.SOFTWAREK7_ComputingK7TotalSecurityCommonInfoUpdates
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045e060
test eax, eax
je 0x42167f
push eax
call edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4216f9
push 0x4000
call fcn.00460a14
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4216f9
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.CLSIDA66B1D7A_A610_4e66_B8CF_C451D0932B1DGlobalInfo
push str.HKCR
push str.__s_s__r_n
push ebx
call esi
lea edi, [ebx + eax]
lea eax, [esp + 0x38]
push eax
push str.SysId
push str.__s___s__r_n
push edi
call esi
add edi, eax
push str._r_n_r_n
push edi
call esi
sub edi, ebx
mov edx, ebx
lea ecx, [eax + 1]
add ecx, edi
call fcn.004496e0
push 1
push ebx
call fcn.004609d1
add esp, 0x30
mov ebx, 1
mov ecx, dword [esp + 0x52c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004606ac
mov esp, ebp
pop ebp
ret
call fcn.004607de
int3