Function at 0x4a9130
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x16ec
call fcn.004f23a0
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
mov esi, edx
push 0x400
lea edx, [ebp - 0xecc]
push ebx
push edx
mov dword [ebp - 0x16e8], esi
mov dword [ebp - 0x16d8], eax
mov dword [ebp - 0x16e4], ecx
mov dword [ebp - 0x16dc], ebx
mov dword [ebp - 0x16d0], ebx
call fcn.004e8ba0
add esp, 0xc
push 0x400
lea eax, [ebp - 0xecc]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4a9b51
push edi
mov ecx, dword [ebp - 0x16e4]
mov edx, dword [ecx]
cmp edx, dword [ebp + 0x10]
jae 0x4a9b50
push 0x800
lea eax, [ebp - 0x16cc]
push ebx
push eax
mov dword [ebp - 0x16d4], ebx
call fcn.004e8ba0
add esp, 0xc
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov word [ebp + eax - 0x16cc], cx
add eax, 2
cmp cx, bx
jne 0x4a91d0
lea eax, [ebp - 0xecc]
mov esi, eax
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a91f0
lea edi, [ebp - 0x16cc]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4a9206
mov edx, dword [ebp + 8]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x16d4]
push ecx
push edx
push ebx
lea eax, [ebp - 0x16cc]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a9b0d
mov eax, dword [ebp - 0x16d4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x16d0]
push ecx
lea edx, [ebp - 0x16e0]
push edx
push ebx
push ebx
push str.SystemComponent
push eax
mov dword [ebp - 0x16e0], ebx
mov dword [ebp - 0x16d0], 4
call esi
test eax, eax
jne 0x4a92a3
mov eax, 1
cmp dword [ebp - 0x16e0], eax
jne 0x4a92a3
mov ecx, dword [ebp - 0x16d4]
add dword [ebp - 0x16dc], eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a9b13
mov edi, 0x208
push edi
lea edx, [ebp - 0x4cc]
push ebx
push edx
mov dword [ebp - 0x16d0], edi
call fcn.004e8ba0
mov edx, dword [ebp - 0x16d4]
add esp, 0xc
lea eax, [ebp - 0x16d0]
push eax
lea ecx, [ebp - 0x4cc]
push ecx
push ebx
push ebx
push str.ParentDisplayName
push edx
call esi
test eax, eax
jne 0x4a92f9
mov eax, dword [ebp - 0x16d4]
inc dword [ebp - 0x16dc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a9b13
push edi
lea ecx, [ebp - 0x4cc]
push ebx
push ecx
mov dword [ebp - 0x16d0], edi
call fcn.004e8ba0
mov ecx, dword [ebp - 0x16d4]
add esp, 0xc
lea edx, [ebp - 0x16d0]
push edx
lea eax, [ebp - 0x4cc]
push eax
push ebx
push ebx
push str.Winet
push ecx
call esi
test eax, eax
jne 0x4a934a
mov edx, dword [ebp - 0x16d4]
inc dword [ebp - 0x16dc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a9b13
push edi
lea eax, [ebp - 0x4cc]
push ebx
push eax
mov dword [ebp - 0x16d0], edi
call fcn.004e8ba0
mov eax, dword [ebp - 0x16d4]
add esp, 0xc
lea ecx, [ebp - 0x16d0]
push ecx
lea edx, [ebp - 0x4cc]
push edx
push ebx
push ebx
push str.UninstallString
push eax
call esi
test eax, eax
je 0x4a93d4
push edi
lea ecx, [ebp - 0x4cc]
push ebx
push ecx
mov dword [ebp - 0x16d0], edi
call fcn.004e8ba0
mov ecx, dword [ebp - 0x16d4]
add esp, 0xc
lea edx, [ebp - 0x16d0]
push edx
lea eax, [ebp - 0x4cc]
push eax
push ebx
push ebx
push str.WindowsInstaller
push ecx
call esi
test eax, eax
je 0x4a93d4
mov edx, dword [ebp - 0x16d4]
inc dword [ebp - 0x16dc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a9b13
push 0xfe
lea ecx, [ebp - 0x2c2]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x2c4], ax
call fcn.004e8ba0
mov ecx, dword [ebp - 0x16d4]
add esp, 0xc
lea edx, [ebp - 0x16d0]
push edx
lea eax, [ebp - 0x2c4]
push eax
push ebx
push ebx
push str.DisplayName
push ecx
mov dword [ebp - 0x16d0], 0x100
call esi
lea eax, [ebp - 0x2c4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a9423
sub eax, edx
sar eax, 1
je 0x4a9b00
lea eax, [ebp - 0x2c4]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a9440
mov edi, dword [ebp - 0x16d8]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4a9456
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x16d8]
add edi, 0xfffffffe
jmp 0x4a9480
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4a9480
mov edx, dword [0x51ccdc]
xor eax, eax
lea ecx, [ebp - 0x16d0]
push ecx
mov dword [edi], edx
lea edx, [ebp - 0x44]
push edx
push ebx
push ebx
mov word [ebp - 0x44], ax
mov dword [ebp - 0x42], eax
mov dword [ebp - 0x3e], eax
mov dword [ebp - 0x3a], eax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0x16d4]
push str.DisplayVersion
push eax
mov dword [ebp - 0x16d0], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a9522
cmp dword [ebp - 0x16d0], ebx
jbe 0x4a9522
lea eax, [ebp - 0x44]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a94f0
mov edi, dword [ebp - 0x16d8]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4a9506
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x16d8]
lea edi, [esi - 2]
jmp 0x4a9530
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4a9530
mov ecx, dword [0x51ccdc]
push 0x7e
lea eax, [ebp - 0x142]
xor edx, edx
push ebx
push eax
mov dword [edi], ecx
mov word [ebp - 0x144], dx
call fcn.004e8ba0
mov eax, dword [ebp - 0x16d4]
add esp, 0xc
lea ecx, [ebp - 0x16d0]
push ecx
lea edx, [ebp - 0x144]
push edx
push ebx
push ebx
push str.Publisher
push eax
mov dword [ebp - 0x16d0], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a95d2
cmp dword [ebp - 0x16d0], ebx
jbe 0x4a95d2
lea eax, [ebp - 0x144]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a95a0
sub eax, edx
lea edi, [esi - 2]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4a95b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x16d8]
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4a95d5
mov ecx, dword [0x51ccdc]
xor eax, eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x16d0]
push eax
mov dword [edi], ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
xor edx, edx
push ebx
mov word [ebp - 0x24], dx
mov edx, dword [ebp - 0x16d4]
push str.InstallDate
push edx
mov dword [ebp - 0x16d0], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a9676
cmp dword [ebp - 0x16d0], ebx
jbe 0x4a9676
lea eax, [ebp - 0x24]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a9644
sub eax, edx
lea edi, [esi - 2]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4a9654
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x16d8]
lea edi, [esi - 2]
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4a9680
mov eax, dword [0x51ccdc]
push 0x1fe
lea edx, [ebp - 0x6ca]
xor ecx, ecx
push ebx
push edx
mov dword [edi], eax
mov word [ebp - 0x6cc], cx
call fcn.004e8ba0
mov edx, dword [ebp - 0x16d4]
add esp, 0xc
lea eax, [ebp - 0x16d0]
push eax
lea ecx, [ebp - 0x6cc]
push ecx
push ebx
push ebx
push str.UninstallString
push edx
mov dword [ebp - 0x16d0], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a9723
cmp dword [ebp - 0x16d0], ebx
jbe 0x4a9723
lea eax, [ebp - 0x6cc]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a96f1
sub eax, edx
lea edi, [esi - 2]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4a9701
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x16d8]
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4a9726
mov eax, dword [0x51ccdc]
push 0x7e
lea edx, [ebp - 0x1c2]
xor ecx, ecx
push ebx
push edx
mov dword [edi], eax
mov word [ebp - 0x1c4], cx
call fcn.004e8ba0
mov edx, dword [ebp - 0x16d4]
add esp, 0xc
lea eax, [ebp - 0x16d0]
push eax
lea ecx, [ebp - 0x1c4]
push ecx
push ebx
push ebx
push str.ProductID
push edx
mov dword [ebp - 0x16d0], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a97c6
cmp dword [ebp - 0x16d0], ebx
jbe 0x4a97c6
lea eax, [ebp - 0x1c4]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a9794
sub eax, edx
lea edi, [esi - 2]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4a97a4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x16d8]
lea edi, [esi - 2]
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4a97d0
mov eax, dword [0x51ccdc]
push 0x3e
lea edx, [ebp - 0x82]
xor ecx, ecx
push ebx
push edx
mov dword [edi], eax
mov word [ebp - 0x84], cx
call fcn.004e8ba0
mov edx, dword [ebp - 0x16d4]
add esp, 0xc
lea eax, [ebp - 0x16d0]
push eax
lea ecx, [ebp - 0x84]
push ecx
push ebx
push ebx
push str.RegCompany
push edx
mov dword [ebp - 0x16d0], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a9872
cmp dword [ebp - 0x16d0], ebx
jbe 0x4a9872
lea eax, [ebp - 0x84]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a9840
sub eax, edx
lea edi, [esi - 2]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4a9850
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x16d8]
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4a9875
mov eax, dword [0x51ccdc]
push 0x3e
lea edx, [ebp - 0xc2]
xor ecx, ecx
push ebx
push edx
mov dword [edi], eax
mov word [ebp - 0xc4], cx
call fcn.004e8ba0
mov edx, dword [ebp - 0x16d4]
add esp, 0xc
lea eax, [ebp - 0x16d0]
push eax
lea ecx, [ebp - 0xc4]
push ecx
push ebx
push ebx
push str.RegOwner
push edx
mov dword [ebp - 0x16d0], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a9915
cmp dword [ebp - 0x16d0], ebx
jbe 0x4a9915
lea eax, [ebp - 0xc4]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a98e3
sub eax, edx
lea edi, [esi - 2]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4a98f3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x16d8]
lea edi, [esi - 2]
jmp 0x4a9920
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4a9920
mov eax, dword [0x51ccdc]
push 0x1fe
lea edx, [ebp - 0x8ca]
xor ecx, ecx
push ebx
push edx
mov dword [edi], eax
mov word [ebp - 0x8cc], cx
call fcn.004e8ba0
mov edx, dword [ebp - 0x16d4]
add esp, 0xc
lea eax, [ebp - 0x16d0]
push eax
lea ecx, [ebp - 0x8cc]
push ecx
push ebx
push ebx
push str.URLInfoAbout
push edx
mov dword [ebp - 0x16d0], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a99c3
cmp dword [ebp - 0x16d0], ebx
jbe 0x4a99c3
lea eax, [ebp - 0x8cc]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a9991
sub eax, edx
lea edi, [esi - 2]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4a99a1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x16d8]
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4a99c6
mov eax, dword [0x51ccdc]
push 0x1fe
lea edx, [ebp - 0xaca]
xor ecx, ecx
push ebx
push edx
mov dword [edi], eax
mov word [ebp - 0xacc], cx
call fcn.004e8ba0
mov edx, dword [ebp - 0x16d4]
add esp, 0xc
lea eax, [ebp - 0x16d0]
push eax
lea ecx, [ebp - 0xacc]
push ecx
push ebx
push ebx
push str.URLUpdateInfo
push edx
mov dword [ebp - 0x16d0], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a9a72
cmp dword [ebp - 0x16d0], ebx
jbe 0x4a9a72
lea eax, [ebp - 0xacc]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a9a37
sub eax, edx
lea edi, [esi - 2]
jmp 0x4a9a50
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4a9a50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x16d8]
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4a9a75
mov eax, dword [0x51ccdc]
mov dword [edi], eax
lea eax, [esi - 2]
jmp 0x4a9a90
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4a9a90
mov ecx, dword [str.System]
mov dword [eax], ecx
mov edx, dword [0x51f6d4]
mov dword [eax + 4], edx
mov ecx, dword [0x51f6d8]
mov dword [eax + 8], ecx
mov dx, word [0x51f6dc]
mov word [eax + 0xc], dx
lea edi, [esi - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4a9ac4
mov eax, dword [0x51ccdc]
mov dword [edi], eax
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a9ae0
sub eax, edx
sar eax, 1
mov ecx, 1
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x16e4]
inc dword [eax]
mov edx, dword [ebp - 0x16d4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x16dc]
push 0x400
lea eax, [ebp - 0xecc]
push ebx
push eax
call fcn.004e8ba0
mov edx, dword [ebp - 0x16dc]
mov eax, dword [ebp - 0x16e8]
add esp, 0xc
push 0x400
lea ecx, [ebp - 0xecc]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4a91a0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret