Function at 0x46b8c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a645c
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x49c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4ac]
xor ebx, ebx
push 0x206
lea edx, [esp + 0x8a]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x24], ebx
mov word [esp + 0x90], cx
call fcn.0048dc10
add esp, 0xc
lea eax, [ebx + 8]
cmp dword [0x4d2040], ebx
je 0x46b93c
mov eax, 0x108
lea ecx, [esp + 0x18]
push ecx
push eax
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionComponent_Based_ServicingPackages
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46bcd0
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x98]
push eax
push ebx
push ecx
mov dword [esp + 0x3c], 0x1000
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x46bcc5
lea esp, [esp]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x88]
call fcn.0046c8c0
push str.Package_for_KB
lea eax, [esp + 0x88]
mov dword [esp + 0x4a8], ebx
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x46bc62
push 0x4b826c
add esi, 0x1c
push esi
call edi
mov ebx, eax
mov ecx, ebx
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0xc
jg 0x46ba04
mov dword [esp + 0x4a4], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x46bc81
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x4a4], 1
movzx ebp, word [ebx]
xor ecx, ecx
mov word [ebx], cx
mov ecx, esi
call fcn.0046ae20
push esi
push 0x4b8270
lea edi, [esp + 0x28]
mov dword [esp + 0x30], eax
call fcn.0046afd0
mov word [ebx], bp
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
xor ebp, ebp
add esp, 8
mov ecx, 0x4ce67c
mov dword [esp + 0x14], ebp
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x14]
push ecx
push 1
push ebp
lea edx, [esp + 0x90]
mov byte [esp + 0x4b0], 2
mov eax, dword [esp + 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46bc12
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x58]
push eax
push ebp
push str.InstallTimeLow
mov esi, 4
push ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
call ebx
test eax, eax
jne 0x46bc07
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x54]
push ecx
push ebp
push str.InstallTimeHigh
push edx
call ebx
test eax, eax
jne 0x46bc07
mov eax, dword [esp + 0x14]
push ebp
push ebp
push ebp
push ebp
push str.InstallUser
push eax
call ebx
test eax, eax
jne 0x46bc07
cmp dword [esp + 0x50], esi
jne 0x46bc07
cmp dword [esp + 0x4c], esi
jne 0x46bc07
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x78]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx edx, word [esp + 0x6a]
movzx eax, word [esp + 0x66]
movzx ecx, word [esp + 0x64]
push edx
push eax
push ecx
push str._d__02d__02d
lea edi, [esp + 0x40]
call fcn.0046afd0
add esp, 0x10
lea esi, [esp + 0x54]
call fcn.0046b6d0
push 0x206
lea eax, [esp + 0x292]
xor edx, edx
push ebp
mov byte [esp + 0x4ac], 3
push eax
mov word [esp + 0x298], dx
call fcn.0048dc10
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x290]
push edx
push ebp
push ebp
push str.InstallName
push eax
mov dword [esp + 0x5c], 0x200
call ebx
test eax, eax
jne 0x46bbfe
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x20]
lea edi, [esp + 0x5c]
mov dword [esp + 0x54], esi
call fcn.0046aff0
push esi
push str.wusa.exe__uninstall__kb:_d
lea edi, [esp + 0x68]
call fcn.0046afd0
mov ebx, dword [esp + 0x50]
add esp, 8
lea ecx, [esp + 0x28]
push ecx
call fcn.0046b710
lea ebx, [esp + 0x54]
mov esi, eax
call fcn.0046b050
lea esi, [esp + 0x54]
call fcn.00471110
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x4a4], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46bc3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4a4], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46bc62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4a4], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46bc8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
inc eax
lea edx, [esp + 0x98]
push edx
push eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x3c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x46b990
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x49c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.0048b133
add esp, 0x494
ret 4