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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a361
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.0040a110
lea edx, [ebp - 0x3b8]
lea ecx, [ebp - 0x400]
mov dword [ebp - 4], 0
call fcn.0042e220
mov byte [ebp - 4], 2
cmp dword [ebp - 0x3a4], 8
jb 0x421a20
push dword [ebp - 0x3b8]
call fcn.0044d639
add esp, 4
xor eax, eax
push eax
push 0x47abfc
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.0040a110
mov byte [ebp - 4], 3
cmp dword [ebp - 0x3ec], 8
mov eax, dword [ebp - 0x400]
jae 0x421a7e
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 0x421bc4
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x421f83
cmp dword [ebp - 0x3ec], 8
mov eax, dword [ebp - 0x400]
jae 0x421acc
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 0x421b2f
cmp dword [ebp - 0x3ec], 8
mov eax, dword [ebp - 0x400]
jae 0x421b09
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 0x421f83
lea edx, [ebp - 0x3b0]
lea ecx, [ebp - 0x3d0]
call fcn.0042e080
mov esi, dword [ebp - 0x3bc]
mov edx, dword [ebp - 0x3d0]
mov ecx, edx
cmp esi, 8
jae 0x421b59
lea ecx, [ebp - 0x3d0]
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421b60
sub ecx, edi
sar ecx, 1
cmp esi, 8
jae 0x421b7a
lea edx, [ebp - 0x3d0]
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x47abfc
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 0x421f83
push dword [ebp - 0x3d0]
call fcn.0044d639
add esp, 4
jmp 0x421f83
cmp dword [ebp - 0x3ec], 8
mov eax, dword [ebp - 0x400]
jae 0x421bd9
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 0x421f83
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 0x47abfc
push dword [ebp - 0x404]
mov dword [ebp - 0x418], 0x80
call edi
test eax, eax
jne 0x421c7a
cmp dword [ebp - 0x41c], 1
jne 0x421c7a
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.0044ec00
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 0x421f75
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
push str.TUU2011
push dword [ebp - 0x404]
call esi
test eax, eax
jne 0x421d96
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x3a0]
push eax
push 0
push 0
push 0x47abfc
push dword [ebp - 0x408]
mov dword [ebp - 0x414], 0x208
call edi
test eax, eax
jne 0x421d83
lea eax, [ebp - 0x3a0]
push eax
lea ecx, [ebp - 0x3d0]
call fcn.0040a210
cmp dword [eax + 0x10], 0
lea ecx, [ebp - 0x3d0]
setne bl
call fcn.0040a2d0
test bl, bl
je 0x421d83
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 0x421d83
cmp dword [ebp - 0x410], 1
jne 0x421d83
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.0044ec00
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 0x421d83
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x3e8]
call fcn.00409270
push dword [ebp - 0x408]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x421e5c
lea eax, [ebp - 0x408]
push eax
push 0x20019
push 0
push str.TUU2010
push dword [ebp - 0x404]
call esi
test eax, eax
jne 0x421e56
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x3a0]
push eax
push 0
push 0
push 0x47abfc
push dword [ebp - 0x408]
mov dword [ebp - 0x410], 0x208
call edi
test eax, eax
jne 0x421d83
lea eax, [ebp - 0x3a0]
push eax
lea ecx, [ebp - 0x3d0]
call fcn.0040a210
cmp dword [eax + 0x10], 0
lea ecx, [ebp - 0x3d0]
setne bl
call fcn.0040a2d0
test bl, bl
je 0x421d83
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 0x421d83
cmp dword [ebp - 0x414], 1
jmp 0x421d35
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3d8], 0
je 0x421eea
mov esi, dword [ebp - 0x3d4]
mov edx, dword [ebp - 0x3e8]
mov ecx, edx
cmp esi, 8
jae 0x421e82
lea ecx, [ebp - 0x3e8]
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421e85
sub ecx, ebx
sar ecx, 1
cmp esi, 8
jae 0x421e9f
lea edx, [ebp - 0x3e8]
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x47abfc
push dword [ebp - 0x404]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x421f7b
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 0x421f7b
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x421f7b
lea edx, [ebp - 0x3b0]
lea ecx, [ebp - 0x3d0]
call fcn.0042e080
mov esi, dword [ebp - 0x3bc]
mov edx, dword [ebp - 0x3d0]
mov ecx, edx
cmp esi, 8
jae 0x421f29
lea ecx, [ebp - 0x3d0]
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421f30
sub ecx, ebx
sar ecx, 1
cmp esi, 8
jae 0x421f4a
lea edx, [ebp - 0x3d0]
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x47abfc
push dword [ebp - 0x404]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x3d0]
call fcn.0040a2d0
jmp 0x421f7b
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x404]
call edi
cmp dword [ebp - 0x3d4], 8
jb 0x421f9a
push dword [ebp - 0x3e8]
call fcn.0044d639
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 0x421fce
push dword [ebp - 0x400]
call fcn.0044d639
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.0044c32d
mov esp, ebp
pop ebp
ret