Function at 0x421870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ea55
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x4218c8
mov eax, dword [edi]
mov dword [edi + 0x10], 0
xor ecx, ecx
mov word [eax], cx
mov esi, dword [edx]
mov esi, dword [esi]
cmp byte [esi + 0xd], cl
jne 0x4219b1
mov ecx, 0x3b
lea eax, [esi + 0x10]
mov word [ebp - 0x44], cx
mov ecx, dword [eax + 0x10]
cmp ecx, 0x7ffffffe
je 0x421abf
cmp dword [eax + 0x14], 7
jbe 0x421904
mov eax, dword [eax]
push 1
lea edx, [ebp - 0x44]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x40]
call fcn.00409a10
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.004099a0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x421966
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42195c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421ac4
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x42198c
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x421988
cmp esi, dword [eax + 8]
jne 0x421988
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x421978
mov esi, eax
jmp 0x4219a2
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4219a2
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x421996
cmp byte [esi + 0xd], 0
mov ecx, 0x3b
je 0x4218e6
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 7
lea ecx, [eax*2 + 2]
push ecx
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push 1
push 0
push str.ProductsInstalled
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete byte [ebp - 0x41]
test eax, eax
je 0x421a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40]
push str.RegSetValueEx_failed_with__i
push eax
call fcn.0041f5e0
mov esi, eax
add esp, 0xc
cmp edi, esi
je 0x421a30
mov ecx, edi
call fcn.004037b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x421a66
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421a5c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421aba
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x421a9c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421a92
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421ac4
push ecx
push edx
call fcn.00471b8b
add esp, 8
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00471b48
mov esp, ebp
pop ebp
ret
call fcn.00477334
call fcn.00401510
call fcn.00477334
int3