Function at 0x10051bbf
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10159d52
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.1012ba20
mov eax, dword [0x102406a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
neg esi
mov dword [ebp - 0x2030], eax
sbb esi, esi
mov dword [ebp - 0x201c], ebx
and esi, 0x100
cmp dword [ebp + 0x10], 5
push 0x33
jne 0x10051f19
mov ebx, esi
or ebx, 8
mov dword [ebp - 0x2034], ebx
call fcn.10010082
pop ecx
test eax, eax
je 0x10051c48
lea ecx, [ebp - 0x201c]
push ecx
push ebx
push 0
push str.SOFTWAREMicrosoftUpdates
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x10051c62
lea eax, [ebp - 0x201c]
push eax
push ebx
push 0
push str.SOFTWAREMicrosoftUpdates
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100520d0
and dword [ebp - 0x2024], eax
mov edi, 0x1000
mov eax, dword [ebp - 0x201c]
push 0x3f
mov dword [ebp - 0x2014], edi
mov dword [ebp - 0x2020], eax
call fcn.10010082
pop ecx
test eax, eax
je 0x10051cb7
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x2014]
push ecx
lea ecx, [ebp - 0x2010]
push ecx
push dword [ebp - 0x2024]
push dword [ebp - 0x2020]
call eax
jmp 0x10051cdd
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2024]
push dword [ebp - 0x2020]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100520c5
push esi
push dword [ebp - 0x2030]
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x201c]
call fcn.100520ea
add esp, 0x10
test al, al
jne 0x10051f0e
mov eax, dword [ebp - 0x201c]
and dword [ebp - 0x2028], 0
push 0x33
mov dword [ebp - 0x2020], eax
call fcn.10010082
pop ecx
test eax, eax
je 0x10051d43
lea ecx, [ebp - 0x2028]
push ecx
push ebx
push 0
lea ecx, [ebp - 0x2010]
push ecx
push dword [ebp - 0x2020]
call eax
jmp 0x10051d60
lea eax, [ebp - 0x2028]
push eax
push ebx
push 0
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2020]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10051f0e
and dword [ebp - 0x2020], eax
mov eax, dword [ebp - 0x2028]
push 0x3f
mov dword [ebp - 0x2014], edi
mov dword [ebp - 0x2018], eax
call fcn.10010082
pop ecx
test eax, eax
je 0x10051db0
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x2014]
push ecx
lea ecx, [ebp - 0x2010]
push ecx
push dword [ebp - 0x2020]
push dword [ebp - 0x2018]
call eax
jmp 0x10051dd6
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2020]
push dword [ebp - 0x2018]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10051f03
push esi
push dword [ebp - 0x2030]
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2028]
call fcn.100520ea
add esp, 0x10
test al, al
jne 0x10051ef8
mov eax, dword [ebp - 0x2028]
and dword [ebp - 0x202c], 0
push 0x33
mov dword [ebp - 0x2018], eax
call fcn.10010082
pop ecx
test eax, eax
je 0x10051e3c
lea ecx, [ebp - 0x202c]
push ecx
push ebx
push 0
lea ecx, [ebp - 0x2010]
push ecx
push dword [ebp - 0x2018]
call eax
jmp 0x10051e59
lea eax, [ebp - 0x202c]
push eax
push ebx
push 0
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2018]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10051ef8
xor ebx, ebx
mov eax, dword [ebp - 0x202c]
push 0x3f
mov dword [ebp - 0x2014], edi
mov dword [ebp - 0x2018], eax
call fcn.10010082
pop ecx
test eax, eax
je 0x10051ea0
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x2014]
push ecx
lea ecx, [ebp - 0x2010]
push ecx
push ebx
push dword [ebp - 0x2018]
call eax
jmp 0x10051ec1
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2010]
push eax
push ebx
push dword [ebp - 0x2018]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10051ee7
push esi
push dword [ebp - 0x2030]
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x202c]
call fcn.100520ea
add esp, 0x10
inc ebx
jmp 0x10051e63
push dword [ebp - 0x202c]
call fcn.10017c01
mov ebx, dword [ebp - 0x2034]
inc dword [ebp - 0x2020]
jmp 0x10051d6e
push dword [ebp - 0x2028]
call fcn.10017c01
inc dword [ebp - 0x2024]
jmp 0x10051c75
or esi, 8
call fcn.10010082
pop ecx
test eax, eax
je 0x10051f3d
lea ecx, [ebp - 0x201c]
push ecx
push esi
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_ServicingPackages
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x10051f56
lea eax, [ebp - 0x201c]
push eax
push esi
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_ServicingPackages
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100520d0
mov edi, 0x1000
mov esi, ebx
mov ebx, dword [ebp - 0x201c]
push 0x3f
mov dword [ebp - 0x2024], edi
call fcn.10010082
pop ecx
test eax, eax
je 0x10051f97
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x2024]
push ecx
lea ecx, [ebp - 0x2010]
push ecx
push esi
push ebx
call eax
jmp 0x10051fb3
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2010]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100520c5
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea eax, [ebp - 0x2010]
push str.Package_
push eax
call ebx
test eax, eax
je 0x100520bf
push str.for_KB
add eax, 0x10
push eax
call ebx
test eax, eax
je 0x100520bf
add eax, 0xc
lea ecx, [ebp - 0x2014]
push eax
call fcn.100088c7
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2014]
push ebx
push 0x1018f844
call fcn.100147fe
cmp eax, 0xffffffff
je 0x10052049
push eax
push ebx
lea eax, [ebp - 0x2034]
push eax
lea ecx, [ebp - 0x2014]
call fcn.1001f237
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2014]
push eax
call fcn.10010aef
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x2034]
lea ecx, [ecx - 0x10]
call fcn.100078bc
call fcn.10007945
push eax
lea ecx, [ebp - 0x2018]
call fcn.10008bfd
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2018]
push dword [ebp - 0x2014]
push str.KB_s
push eax
call fcn.10014838
add esp, 0xc
lea ecx, [ebp - 0x2014]
call fcn.10015e63
mov ecx, eax
call fcn.1001c22f
mov ecx, dword [ebp - 0x2030]
lea eax, [ebp - 0x2014]
push eax
call fcn.10010737
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x2018]
lea ecx, [ecx - 0x10]
call fcn.100078bc
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
call fcn.100078bc
inc esi
jmp 0x10051f65
push dword [ebp - 0x201c]
call fcn.10017c01
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1012b632
leave
ret