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

Disassembly:
mov eax, 0x174c
call fcn.004c79b0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1c], ebp
mov edi, dword [ebp + 0x14]
mov esi, dword [edi]
cmp esi, edi
je 0x4b4b24
mov eax, esi
mov esi, dword [esi]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebp + 0x18]
add esp, 4
dec ecx
cmp esi, edi
mov dword [ebp + 0x18], ecx
jne 0x4b4afd
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x2c], edx
jmp 0x4b4b32
mov edx, dword [esp + 0x2c]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x281]
mov byte [esp + 0x280], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, ebx
stosb byte es:[edi], al
jne 0x4b4b66
lea eax, [esp + 0x280]
push 0x100
push eax
mov ecx, ebp
call fcn.004b2f20
jmp 0x4b4b7f
cmp edx, 1
jne 0x4b4b7f
lea ecx, [esp + 0x280]
push 0x100
push ecx
mov ecx, ebp
call fcn.004b2db0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x381]
mov byte [esp + 0x380], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x280]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x384]
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerUserData_sProducts
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x10
mov esi, 0x5687ec
lea edi, [esp + 0x144]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x380]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b5323
mov ecx, 0x40
lea edi, [esp + 0x17d]
mov byte [esp + 0x17c], bl
mov edx, dword [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x34]
push ebx
lea ecx, [esp + 0x18c]
push eax
push ecx
push ebx
push edx
xor esi, esi
mov dword [esp + 0x48], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4b52b0
lea edi, [esp + 0x17c]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x30], esi
lea edx, [esp + 0x588]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x588]
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5687d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x28], 0x104
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x18]
mov ecx, ebp
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
push eax
push 0x20019
lea ecx, [esp + 0x590]
push ebx
push ecx
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b5283
mov ecx, 0x40
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
mov edx, dword [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ecx
push ebx
push ebx
push 0x568704
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], 4
call esi
test eax, eax
jne 0x4b4d25
cmp dword [esp + 0x10], ebx
jbe 0x4b4d25
cmp byte [esp + 0x34], 1
jne 0x4b4d25
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ecx
push ebx
push ebx
push 0x5687c8
push edx
mov dword [esp + 0x28], 0x104
call esi
test eax, eax
jne 0x4b4d75
cmp dword [esp + 0x10], ebx
jbe 0x4b4d75
lea eax, [esp + 0x34]
push 0x5687b8
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4b4d75
mov ecx, dword [esp + 0x14]
push ecx
call sym.SoftManager.exe__RegCloseKey360_4
jmp 0x4b5283
mov ecx, 0x434
xor eax, eax
lea edi, [esp + 0x68c]
mov dword [esp + 0x1758], ebx
mov dword [esp + 0x1750], ebx
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push edx
push eax
push ebx
push ebx
push str.WindowsInstaller
push ecx
xor ebp, ebp
mov dword [esp + 0x28], 4
call esi
test eax, eax
jne 0x4b4dcc
cmp dword [esp + 0x10], ebx
jbe 0x4b4dcc
mov al, byte [esp + 0x34]
xor edx, edx
cmp al, 1
sete dl
mov ebp, edx
lea eax, [esp + 0x17c]
lea ecx, [esp + 0x380]
push eax
push ecx
lea edx, [esp + 0x694]
push 0x5601b4
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x790]
lea ecx, [esp + 0x17c]
push eax
push ecx
mov ecx, edi
call fcn.004b29f0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x34]
push edx
push eax
push ebx
push ebx
push 0x5687ac
push ecx
mov dword [esp + 0x28], 0x104
mov byte [esp + 0x4c], bl
call esi
test eax, eax
jne 0x4b4e6d
cmp dword [esp + 0x10], ebx
jbe 0x4b4e6d
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x894]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x34], bl
jne 0x4b4e82
mov ecx, dword [esp + 0x14]
push ecx
call sym.SoftManager.exe__RegCloseKey360_4
jmp 0x4b5283
lea edx, [esp + 0x894]
push edx
call fcn.004b3450
add esp, 4
lea eax, [esp + 0x894]
lea ecx, [esp + 0x894]
push 0x562af8
push 0x5687a8
push eax
push ecx
mov ecx, edi
call fcn.004b2680
push 0x562af8
lea edx, [esp + 0x898]
push 0x560528
lea eax, [esp + 0x89c]
push edx
push eax
mov ecx, edi
call fcn.004b2680
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea ecx, [esp + 0x34]
push ecx
push 0x568790
call edi
add esp, 8
test eax, eax
je 0x4b4f15
lea edx, [esp + 0x34]
push edx
push 0x56877c
call edi
add esp, 8
test eax, eax
je 0x4b4f15
cmp dword [esp + 0x20], ebx
je 0x4b4f15
mov eax, dword [esp + 0x14]
push eax
call sym.SoftManager.exe__RegCloseKey360_4
jmp 0x4b5283
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
push ebx
push 0x56876c
push eax
mov dword [esp + 0x28], 0x104
mov byte [esp + 0x4c], bl
call esi
test eax, eax
jne 0x4b4f71
cmp dword [esp + 0x10], ebx
jbe 0x4b4f71
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp ebp, ebx
je 0x4b52e0
mov edi, 0x56875c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa9c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x26
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xaa0]
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, [esp + 0x794]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcat]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea ecx, [esp + 0xa9c]
lea edx, [esp + 0x894]
push ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.004b23a0
mov edx, dword [esp + 0x14]
mov dword [esp + 0xba0], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push ecx
push ebx
push ebx
push 0x56874c
push edx
mov dword [esp + 0x28], 0x104
mov byte [esp + 0x4c], bl
call esi
test eax, eax
jne 0x4b503f
cmp dword [esp + 0x10], ebx
jbe 0x4b503f
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x998]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
push ebx
push 0x568740
push eax
mov dword [esp + 0x28], 0x104
mov byte [esp + 0x4c], bl
call esi
test eax, eax
jne 0x4b509b
cmp dword [esp + 0x10], ebx
jbe 0x4b509b
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xba4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
push ebx
push 0x568734
push eax
mov dword [esp + 0x28], 0x104
mov byte [esp + 0x4c], bl
call esi
test eax, eax
jne 0x4b50f7
cmp dword [esp + 0x10], ebx
jbe 0x4b50f7
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xca8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
push ebx
push 0x568724
push eax
mov dword [esp + 0x28], 0x104
mov byte [esp + 0x4c], bl
call esi
test eax, eax
jne 0x4b514d
cmp dword [esp + 0x10], ebx
jbe 0x4b514d
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xdac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x485]
mov byte [esp + 0x484], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x790]
lea edx, [esp + 0x138]
stosb byte es:[edi], al
push ecx
push edx
lea eax, [esp + 0x48c]
push 0x5601b4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [esp + 0x2c]
add esp, 0x10
mov ecx, edi
mov dword [esp + 0x24], ebx
mov esi, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004b2360
test eax, eax
je 0x4b51aa
mov esi, SysReAllocString
lea ecx, [esp + 0x24]
lea edx, [esp + 0x484]
push ecx
push 0x20019
push ebx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b5220
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x13c4]
push eax
push ecx
push ebx
push ebx
mov esi, 0x228
push 0x568714
push edx
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b5212
cmp dword [esp + 0x20], esi
jne 0x4b5212
cmp dword [esp + 0x13c4], esi
jne 0x4b5212
lea eax, [esp + 0x68c]
mov ecx, edi
push eax
call fcn.004b2490
mov ecx, dword [esp + 0x24]
push ecx
call sym.SoftManager.exe__RegCloseKey360_4
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x14]
push edx
call sym.SoftManager.exe__RegCloseKey360_4
mov al, byte [esp + 0x894]
mov dword [esp + 0x14], ebx
cmp al, bl
je 0x4b5283
mov ebp, dword [esp + 0x1c]
push 0x10d8
mov esi, dword [ebp + 0x14]
mov edi, dword [esi + 4]
call sub.MFC42.DLL_operatornew
add esp, 4
cmp esi, ebx
mov ecx, esi
jne 0x4b5258
mov ecx, eax
cmp edi, ebx
mov dword [eax], ecx
jne 0x4b5260
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
lea edi, [eax + 8]
cmp edi, ebx
mov dword [ecx], eax
je 0x4b5280
mov ecx, 0x434
lea esi, [esp + 0x68c]
rep movsd dword es:[edi], dword [esi]
inc dword [ebp + 0x18]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea edx, [esp + 0x34]
push ebx
lea eax, [esp + 0x18c]
push edx
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4b4c3d
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push edx
call sym.SoftManager.exe__RegCloseKey360_4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
inc eax
cmp eax, 2
mov dword [esp + 0x2c], eax
jl 0x4b4b2e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x174c
ret
cmp byte [esp + 0x34], bl
jne 0x4b4fc3
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea eax, [esp + 0x790]
push 0x562218
push eax
call esi
test eax, eax
je 0x4b4f06
lea ecx, [esp + 0x790]
push 0x562214
push ecx
call esi
test eax, eax
je 0x4b4f06
jmp 0x4b4f79
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x174c
ret