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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a321
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x4a5590]
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
push 0x15
xor eax, eax
push str.SoftwareTuneUpSetup
lea ecx, [ebp - 0x3b8]
mov dword [ebp - 0x3a4], 7
mov dword [ebp - 0x3a8], 0
mov word [ebp - 0x3b8], ax
call fcn.0040a100
lea edx, [ebp - 0x3b8]
lea ecx, [ebp - 0x400]
mov dword [ebp - 4], 0
call fcn.0042e1e0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x3a4], 8
jb 0x4219e0
push dword [ebp - 0x3b8]
call fcn.0044d5f9
add esp, 4
xor eax, eax
push eax
push 0x47ac50
lea ecx, [ebp - 0x3e8]
mov dword [ebp - 0x3a4], 7
mov dword [ebp - 0x3a8], 0
mov word [ebp - 0x3b8], ax
mov dword [ebp - 0x3d4], 7
mov dword [ebp - 0x3d8], eax
mov word [ebp - 0x3e8], ax
call fcn.0040a100
mov byte [ebp - 4], 3
cmp dword [ebp - 0x3ec], 8
mov eax, dword [ebp - 0x400]
jae 0x421a3e
lea eax, [ebp - 0x400]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x404]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x421b84
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x421f43
cmp dword [ebp - 0x3ec], 8
mov eax, dword [ebp - 0x400]
jae 0x421a8c
lea eax, [ebp - 0x400]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0
lea ecx, [ebp - 0x404]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x421aef
cmp dword [ebp - 0x3ec], 8
mov eax, dword [ebp - 0x400]
jae 0x421ac9
lea eax, [ebp - 0x400]
push 0
lea ecx, [ebp - 0x404]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push SysReAllocString
call esi
test eax, eax
jne 0x421f43
lea edx, [ebp - 0x3b0]
lea ecx, [ebp - 0x3d0]
call fcn.0042e040
mov esi, dword [ebp - 0x3bc]
mov edx, dword [ebp - 0x3d0]
mov ecx, edx
cmp esi, 8
jae 0x421b19
lea ecx, [ebp - 0x3d0]
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421b20
sub ecx, edi
sar ecx, 1
cmp esi, 8
jae 0x421b3a
lea edx, [ebp - 0x3d0]
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x47ac50
push dword [ebp - 0x404]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x404]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3bc], 8
jb 0x421f43
push dword [ebp - 0x3d0]
call fcn.0044d5f9
add esp, 4
jmp 0x421f43
cmp dword [ebp - 0x3ec], 8
mov eax, dword [ebp - 0x400]
jae 0x421b99
lea eax, [ebp - 0x400]
lea ecx, [ebp - 0x404]
push ecx
push 0x2001b
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x421f43
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push 0x47ac50
push dword [ebp - 0x404]
mov dword [ebp - 0x418], 0x80
call edi
test eax, eax
jne 0x421c3a
cmp dword [ebp - 0x41c], 1
jne 0x421c3a
mov eax, dword [ebp - 0x418]
shr eax, 1
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x98]
push 0x41
push eax
call fcn.0044ebc0
add esp, 0x10
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
setns al
test al, al
jne 0x421f35
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
push str.TUU2011
push dword [ebp - 0x404]
call esi
test eax, eax
jne 0x421d56
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x3a0]
push eax
push 0
push 0
push 0x47ac50
push dword [ebp - 0x408]
mov dword [ebp - 0x414], 0x208
call edi
test eax, eax
jne 0x421d43
lea eax, [ebp - 0x3a0]
push eax
lea ecx, [ebp - 0x3d0]
call fcn.0040a200
cmp dword [eax + 0x10], 0
lea ecx, [ebp - 0x3d0]
setne bl
call fcn.0040a2c0
test bl, bl
je 0x421d43
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
lea eax, [ebp - 0x3a0]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], 0x80
call edi
test eax, eax
jne 0x421d43
cmp dword [ebp - 0x410], 1
jne 0x421d43
mov eax, dword [ebp - 0x40c]
shr eax, 1
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x98]
push 0x41
push eax
call fcn.0044ebc0
add esp, 0x10
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x98]
push eax
mov eax, dword [sym.imp.ole32.dll_IIDFromString]
call eax
test eax, eax
js 0x421d43
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00409260
push dword [ebp - 0x408]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x421e1c
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
push str.TUU2010
push dword [ebp - 0x404]
call esi
test eax, eax
jne 0x421e16
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x3a0]
push eax
push 0
push 0
push 0x47ac50
push dword [ebp - 0x408]
mov dword [ebp - 0x410], 0x208
call edi
test eax, eax
jne 0x421d43
lea eax, [ebp - 0x3a0]
push eax
lea ecx, [ebp - 0x3d0]
call fcn.0040a200
cmp dword [eax + 0x10], 0
lea ecx, [ebp - 0x3d0]
setne bl
call fcn.0040a2c0
test bl, bl
je 0x421d43
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
lea eax, [ebp - 0x3a0]
push eax
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], 0x80
call edi
test eax, eax
jne 0x421d43
cmp dword [ebp - 0x414], 1
jmp 0x421cf5
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3d8], 0
je 0x421eaa
mov esi, dword [ebp - 0x3d4]
mov edx, dword [ebp - 0x3e8]
mov ecx, edx
cmp esi, 8
jae 0x421e42
lea ecx, [ebp - 0x3e8]
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421e45
sub ecx, ebx
sar ecx, 1
cmp esi, 8
jae 0x421e5f
lea edx, [ebp - 0x3e8]
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x47ac50
push dword [ebp - 0x404]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x421f3b
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.TUU2011
push dword [ebp - 0x404]
call esi
push str.TUU2010
push dword [ebp - 0x404]
call esi
jmp 0x421f3b
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x421f3b
lea edx, [ebp - 0x3b0]
lea ecx, [ebp - 0x3d0]
call fcn.0042e040
mov esi, dword [ebp - 0x3bc]
mov edx, dword [ebp - 0x3d0]
mov ecx, edx
cmp esi, 8
jae 0x421ee9
lea ecx, [ebp - 0x3d0]
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421ef0
sub ecx, ebx
sar ecx, 1
cmp esi, 8
jae 0x421f0a
lea edx, [ebp - 0x3d0]
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x47ac50
push dword [ebp - 0x404]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x3d0]
call fcn.0040a2c0
jmp 0x421f3b
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x404]
call edi
cmp dword [ebp - 0x3d4], 8
jb 0x421f5a
push dword [ebp - 0x3e8]
call fcn.0044d5f9
add esp, 4
xor eax, eax
cmp dword [ebp - 0x3ec], 8
mov dword [ebp - 0x3d4], 7
mov dword [ebp - 0x3d8], 0
mov word [ebp - 0x3e8], ax
jb 0x421f8e
push dword [ebp - 0x400]
call fcn.0044d5f9
add esp, 4
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.0044c2ed
mov esp, ebp
pop ebp
ret