Function at 0x4799d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73cb76
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x268
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov byte [ebp - 0x254], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 1
push eax
mov edx, str.InstallerProducts
mov ecx, SysReAllocString
call fcn.00462620
mov ecx, dword [ebp - 0x264]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x268]
add esp, 4
sub ecx, esi
xor edi, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x274], eax
je 0x479c28
mov eax, esi
mov dword [ebp - 0x25c], esi
nop dword [eax]
cmp byte [ebp - 0x254], 0
jne 0x479e15
push eax
mov edx, str.InstallerProducts_
lea ecx, [ebp - 0x250]
call fcn.00466bb0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x479afe
mov ecx, eax
call fcn.0044bf40
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x228], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x250]
call fcn.0044bf40
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x258]
push ecx
push 1
lea eax, [ebp - 0x238]
mov dword [ebp - 0x258], 0
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x479be8
push 0x208
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x270], 1
push eax
call fcn.0070dcd0
add esp, 0xc
mov dword [ebp - 0x26c], 0x104
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x270]
push eax
push 0
push 0x7ec718
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x479be8
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x220]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x479bca
test dx, dx
je 0x479bc6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x479bca
add eax, 4
add ecx, 4
test dx, dx
jne 0x479ba4
xor eax, eax
jmp 0x479bcf
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x254]
test eax, eax
movzx ecx, cl
mov eax, 1
cmove ecx, eax
mov dword [ebp - 0x254], ecx
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x479bf9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x25c]
inc edi
add eax, 0x18
mov dword [ebp - 0x25c], eax
cmp edi, dword [ebp - 0x274]
jb 0x479aa0
cmp byte [ebp - 0x254], 0
jne 0x479e15
mov esi, dword [ebp - 0x268]
mov edi, dword [ebp - 0x264]
cmp esi, edi
je 0x479c40
mov ecx, esi
call fcn.0044bf40
add esi, 0x18
cmp esi, edi
jne 0x479c32
mov eax, dword [ebp - 0x268]
mov edx, str.SoftwareMicrosoftInstallerProducts
mov dword [ebp - 0x264], eax
mov ecx, reloc.WS2_32.dll_accept
lea eax, [ebp - 0x268]
push eax
call fcn.00462620
mov ecx, dword [ebp - 0x264]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x268]
add esp, 4
sub ecx, esi
mov dword [ebp - 0x25c], esi
imul ecx
xor edi, edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x274], eax
je 0x479e15
nop dword [eax + eax]
cmp byte [ebp - 0x254], 0
jne 0x479e15
push esi
mov edx, str.SoftwareMicrosoftInstallerProducts_
lea ecx, [ebp - 0x250]
call fcn.00466bb0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x479cfe
mov ecx, eax
call fcn.0044bf40
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x228], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x250]
call fcn.0044bf40
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x258]
push ecx
push 1
lea eax, [ebp - 0x238]
mov dword [ebp - 0x258], 0
cmovae eax, dword [ebp - 0x238]
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x479de8
push 0x208
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x270], 1
push eax
call fcn.0070dcd0
add esp, 0xc
mov dword [ebp - 0x26c], 0x104
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x270]
push eax
push 0
push 0x7ec7f8
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x479de8
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x220]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x479dca
test dx, dx
je 0x479dc6
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x479dca
add ecx, 4
add eax, 4
test dx, dx
jne 0x479da4
xor ecx, ecx
jmp 0x479dcf
sbb ecx, ecx
or ecx, 1
mov eax, dword [ebp - 0x254]
test ecx, ecx
movzx eax, al
mov ecx, 1
cmove eax, ecx
mov byte [ebp - 0x254], al
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x479df9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x25c]
inc edi
add esi, 0x18
mov dword [ebp - 0x25c], esi
cmp edi, dword [ebp - 0x274]
jb 0x479ca0
lea ecx, [ebp - 0x268]
call fcn.004635a0
lea ecx, [ebp - 0x238]
call fcn.0044bf40
mov al, byte [ebp - 0x254]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc