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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2cc8
call fcn.004f18a0
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea edx, [ebp - 0x2cb8]
push edx
push 0x108
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Products
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x2cbc], eax
mov dword [ebp - 0x2cc0], ecx
mov dword [ebp - 0x2cb8], edi
call esi
test eax, eax
jne 0x4cb45b
push 0x7fe
lea ecx, [ebp - 0x2c92]
push edi
push ecx
mov dword [ebp - 0x2ca0], edi
mov word [ebp - 0x2c94], ax
call fcn.004e7d90
push 0x7fe
lea eax, [ebp - 0x1c92]
xor edx, edx
push edi
push eax
mov word [ebp - 0x1c94], dx
call fcn.004e7d90
push 0x206
lea edx, [ebp - 0x892]
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0x2c98], edi
mov word [ebp - 0x894], cx
call fcn.004e7d90
push 0x400
lea eax, [ebp - 0x1094]
push edi
push eax
call fcn.004e7d90
mov edx, dword [ebp - 0x2cb8]
add esp, 0x30
push 0x400
lea ecx, [ebp - 0x1094]
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4cb44e
jmp 0x4caf26
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x800
lea eax, [ebp - 0x1c94]
push edi
push eax
call fcn.004e7d90
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x1094]
push ecx
lea edx, [ebp - 0x1c94]
push str.SoftwareMicrosoftWindowsCurrentVersionInstallerUserDataS_1_5_18Products_s
push edx
call ebx
add esp, 0x18
lea eax, [ebp - 0x2cac]
push eax
push 0x101
push edi
lea ecx, [ebp - 0x1c94]
push ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x2cac], edi
call esi
test eax, eax
jne 0x4cb40b
push 0x3fe
lea eax, [ebp - 0x2092]
xor edx, edx
push edi
push eax
mov word [ebp - 0x2094], dx
call fcn.004e7d90
lea ecx, [ebp - 0x1c94]
push ecx
lea edx, [ebp - 0x2094]
push str._sInstallProperties
push edx
call ebx
add esp, 0x18
lea eax, [ebp - 0x2cb0]
push eax
push 0x101
push edi
lea ecx, [ebp - 0x2094]
push ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x2cb0], edi
call esi
test eax, eax
jne 0x4cb3fe
mov ecx, dword [ebp - 0x2cb0]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x2c98]
push edx
lea eax, [ebp - 0x2cc4]
push eax
push edi
push edi
push str.SystemComponent
push ecx
mov dword [ebp - 0x2cc4], edi
mov dword [ebp - 0x2c98], 4
call esi
test eax, eax
jne 0x4cb043
mov eax, 1
cmp dword [ebp - 0x2cc4], eax
jne 0x4cb043
mov edx, dword [ebp - 0x2cac]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [ebp - 0x2ca0], eax
push edx
call esi
mov eax, dword [ebp - 0x2cb0]
push eax
call esi
jmp 0x4cb411
push 0x208
lea ecx, [ebp - 0x894]
push edi
push ecx
mov dword [ebp - 0x2c98], 0x208
call fcn.004e7d90
mov ecx, dword [ebp - 0x2cb0]
add esp, 0xc
lea edx, [ebp - 0x2c98]
push edx
lea eax, [ebp - 0x894]
push eax
push edi
push edi
push str.DisplayName
push ecx
call esi
test eax, eax
jne 0x4cb3f1
cmp dword [ebp - 0x2c98], edi
jbe 0x4cb3f1
push 0x3fe
lea eax, [ebp - 0xc92]
xor edx, edx
push edi
push eax
mov word [ebp - 0xc94], dx
call fcn.004e7d90
lea ecx, [ebp - 0x1c94]
push ecx
lea edx, [ebp - 0xc94]
push str._sPatches
push edx
call ebx
add esp, 0x18
lea eax, [ebp - 0x2ca4]
push eax
push 0x108
push edi
lea ecx, [ebp - 0xc94]
push ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x2ca4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cb3f1
push 0x3fe
lea eax, [ebp - 0x1492]
xor edx, edx
push edi
push eax
mov dword [ebp - 0x2ca8], edi
mov word [ebp - 0x1494], dx
call fcn.004e7d90
mov edx, dword [ebp - 0x2ca4]
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x1494]
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4cb3e4
lea ebx, [ebx]
push 0x3fe
lea ecx, [ebp - 0x2492]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x2c9c], edi
mov word [ebp - 0x2494], ax
call fcn.004e7d90
lea edx, [ebp - 0x1494]
push edx
lea eax, [ebp - 0xc94]
push eax
lea ecx, [ebp - 0x2494]
push str._s_s
push ecx
call ebx
add esp, 0x1c
lea edx, [ebp - 0x2c9c]
push edx
push 0x101
push edi
lea eax, [ebp - 0x2494]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4cb3b6
mov eax, dword [ebp - 0x2c9c]
lea ecx, [ebp - 0x2c98]
push ecx
lea edx, [ebp - 0x2cb4]
push edx
push edi
push edi
push str.State
push eax
mov dword [ebp - 0x2cb4], edi
mov dword [ebp - 0x2c98], 4
call esi
test eax, eax
jne 0x4cb1fa
cmp dword [ebp - 0x2cb4], 2
jne 0x4cb1fa
mov ecx, dword [ebp - 0x2c9c]
inc dword [ebp - 0x2ca8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4cb3bc
push 0x206
lea eax, [ebp - 0x68a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x68c], dx
call fcn.004e7d90
mov eax, dword [ebp - 0x2c9c]
add esp, 0xc
lea ecx, [ebp - 0x2c98]
push ecx
lea edx, [ebp - 0x68c]
push edx
push edi
push edi
push str.DisplayName
push eax
mov dword [ebp - 0x2c98], 0x208
call esi
lea ecx, [ebp - 0x68c]
mov edi, eax
lea eax, [ecx + 2]
jmp 0x4cb250
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4cb250
sub ecx, eax
sar ecx, 1
jne 0x4cb27b
mov ecx, dword [ebp - 0x2c9c]
inc dword [ebp - 0x2ca8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
jmp 0x4cb3bc
test edi, edi
jne 0x4cb3a7
cmp dword [ebp - 0x2c98], edi
jbe 0x4cb3a7
xor edx, edx
push 0x3e
push edx
lea eax, [ebp - 0x82]
push eax
mov word [ebp - 0x84], dx
call fcn.004e7d90
mov eax, dword [ebp - 0x2cb0]
add esp, 0xc
lea ecx, [ebp - 0x2c98]
push ecx
lea edx, [ebp - 0x84]
push edx
push 0
push 0
push str.Publisher
mov edi, 0x40
push eax
mov dword [ebp - 0x2c98], edi
call esi
xor ecx, ecx
push 0x3e
push ecx
lea edx, [ebp - 0x42]
push edx
mov word [ebp - 0x44], cx
call fcn.004e7d90
mov edx, dword [ebp - 0x2c9c]
add esp, 0xc
lea eax, [ebp - 0x2c98]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push str.Installed
push edx
mov dword [ebp - 0x2c98], edi
call esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x28a]
push ecx
mov word [ebp - 0x28c], ax
call fcn.004e7d90
mov ecx, dword [ebp - 0x2c9c]
add esp, 0xc
lea edx, [ebp - 0x2c98]
push edx
lea eax, [ebp - 0x28c]
push eax
push 0
push 0
push str.MoreInfoURL
push ecx
mov dword [ebp - 0x2c98], 0x208
call esi
lea edx, [ebp - 0x28c]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x68c]
push edx
lea eax, [ebp - 0x2c94]
push str._s_t_t_s_t_s_t_t_t_t_t_s_t
push eax
call ebx
mov esi, dword [ebp - 0x2cc0]
mov ebx, dword [ebp - 0x2cbc]
push 0x25c
lea edi, [ebp - 0x2c94]
call fcn.004c0b90
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
mov ecx, dword [ebp - 0x2c9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc dword [ebp - 0x2ca8]
mov eax, dword [ebp - 0x2ca8]
mov ecx, dword [ebp - 0x2ca4]
push 0x400
lea edx, [ebp - 0x1494]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4cb140
mov edx, dword [ebp - 0x2ca4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2cb0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2cac]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x2ca0]
push 0x400
lea edx, [ebp - 0x1094]
push edi
push edx
call fcn.004e7d90
mov ecx, dword [ebp - 0x2ca0]
mov edx, dword [ebp - 0x2cb8]
add esp, 0xc
push 0x400
lea eax, [ebp - 0x1094]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4caf20
mov eax, dword [ebp - 0x2cb8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [0x536cd4]
cmp dword [esi + 0x2c], edi
jle 0x4cb7cc
push 0x3fe
lea edx, [ebp - 0x482]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x484], cx
call fcn.004e7d90
mov ebx, dword [esi + 0x20]
add esp, 0xc
mov dword [ebp - 0x2ca4], ebx
mov dword [ebp - 0x2cb4], edi
cmp dword [esi + 0x2c], edi
jle 0x4cb7cc
jmp 0x4cb4aa
mov ebx, dword [ebp - 0x2ca4]
xor edi, edi
push 0x208
lea eax, [ebp - 0x484]
push edi
push eax
call fcn.004e7d90
mov ecx, dword [ebx + 0x14]
lea edx, [ebp - 0x2cac]
push edx
add ecx, ebx
mov dword [ebx + 0x20], ecx
push 0x30
push ebx
mov dword [ebp - 0x2c98], edi
mov dword [ebp - 0x2c9c], edi
mov dword [ebp - 0x2ca0], edi
mov dword [ebp - 0x2cac], edi
call dword [0x539384]
mov eax, dword [ebp - 0x2cac]
push eax
lea ecx, [ebp - 0x2ca0]
push ecx
call dword [0x5393b0]
mov edx, dword [ebp - 0x2ca0]
push edx
push 0x30
push ebx
call dword [0x539388]
lea eax, [ebp - 0x2c9c]
push eax
push 0x28
push ebx
call dword [0x539384]
mov ecx, dword [ebp - 0x2c9c]
push ecx
lea edx, [ebp - 0x2c98]
push edx
call dword [0x5393b0]
mov eax, dword [ebp - 0x2c98]
add esp, 0x40
push eax
push 0x28
push ebx
call dword [0x539388]
mov ecx, dword [ebp - 0x2ca0]
push 0xf
push str.Security_Update
push ecx
call fcn.004e4207
add esp, 0x18
test eax, eax
jne 0x4cb57a
movzx ecx, word [eax + 0x528f8c]
mov word [ebp + eax - 0x484], cx
add eax, 2
cmp cx, di
jne 0x4cb561
jmp 0x4cb5d7
mov edx, dword [ebp - 0x2ca0]
push 6
push 0x528fc4
push edx
call fcn.004e4207
add esp, 0xc
test eax, eax
jne 0x4cb5b9
jmp 0x4cb5a0
movzx ecx, word [eax + 0x528fd4]
mov word [ebp + eax - 0x484], cx
add eax, 2
cmp cx, di
jne 0x4cb5a0
jmp 0x4cb5d7
xor eax, eax
jmp 0x4cb5c0
movzx ecx, word [eax + str.Microsoft_Windows]
mov word [ebp + eax - 0x484], cx
add eax, 2
cmp cx, di
jne 0x4cb5c0
mov edx, dword [ebp - 0x2c98]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4cb5e2
sub eax, esi
sar eax, 1
dec eax
push eax
push edx
lea eax, [ebp - 0x484]
push eax
call fcn.004e4f1c
lea edi, [ebp - 0x484]
add esp, 0xc
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4cb610
mov ecx, 0xd
mov esi, str.__t_tMicrosoft_Corporation_t
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x2c9c]
push ecx
lea edx, [ebp - 0x2c98]
push edx
call dword [0x5393b8]
mov eax, dword [ebp - 0x2cac]
push eax
lea ecx, [ebp - 0x2ca0]
push ecx
call dword [0x5393b8]
lea edx, [ebp - 0x2c9c]
push edx
push 0x38
push ebx
call dword [0x539384]
mov eax, dword [ebp - 0x2c9c]
push eax
lea ecx, [ebp - 0x2c98]
push ecx
call dword [0x5393b0]
mov edx, dword [ebp - 0x2c98]
push edx
push 0x38
push ebx
call dword [0x539388]
mov eax, dword [ebp - 0x2c98]
add esp, 0x30
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cb690
lea edi, [ebp - 0x484]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4cb6a6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x484]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
jmp 0x4cb6d0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4cb6d0
mov ecx, dword [str._t_t_t_t]
mov edx, dword [0x527694]
mov dword [eax], ecx
mov cx, word [0x527698]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x2c9c]
mov word [eax + 8], cx
push edx
lea eax, [ebp - 0x2c98]
push eax
call dword [0x5393b8]
lea ecx, [ebp - 0x2c9c]
push ecx
push 0x48
push ebx
call dword [0x539384]
mov edx, dword [ebp - 0x2c9c]
push edx
lea eax, [ebp - 0x2c98]
push eax
call dword [0x5393b0]
mov ecx, dword [ebp - 0x2c98]
push ecx
push 0x48
push ebx
call dword [0x539388]
mov edx, dword [ebp - 0x2c98]
mov eax, edx
add esp, 0x28
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cb750
sub eax, esi
sar eax, 1
dec eax
push eax
push edx
lea edx, [ebp - 0x484]
push edx
call fcn.004e4f1c
mov eax, dword [ebp - 0x2c9c]
push eax
lea ecx, [ebp - 0x2c98]
push ecx
call dword [0x5393b8]
mov esi, dword [ebp - 0x2cc0]
mov ebx, dword [ebp - 0x2cbc]
push 0x25c
lea edi, [ebp - 0x484]
call fcn.004c0b90
mov eax, dword [ebp - 0x2ca4]
add eax, dword [eax + 0x10]
mov edx, dword [0x536cd4]
mov dword [ebp - 0x2ca4], eax
mov eax, dword [ebp - 0x2cb4]
inc eax
add esp, 0x18
mov dword [ebp - 0x2cb4], eax
cmp eax, dword [edx + 0x2c]
jl 0x4cb4a2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret