Function at 0x46a210
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a52c6
mov eax, dword fs:[0]
push eax
sub esp, 0x8d8
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x8d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x8ec]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8fc]
mov ecx, 0x1a
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
xor ebx, ebx
push ebx
lea edx, [esp + 0x68]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x46a292
xor eax, eax
jmp 0x46a814
push 0x206
lea ecx, [esp + 0x4da]
xor eax, eax
push ebx
push ecx
xor esi, esi
mov word [esp + 0x4e0], ax
call fcn.0048dc10
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x1c]
push ebx
push ebx
xor eax, eax
push ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x4e8]
push ecx
push ebx
push edx
mov dword [esp + 0x60], 0x208
call edi
test eax, eax
jne 0x46a54d
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x4e0]
push ecx
inc esi
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x54], 0x208
mov dword [esp + 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x46a51e
push 0x206
lea ecx, [esp + 0xca]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xd0], ax
call fcn.0048dc10
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4ce67c
mov dword [esp + 0x20], 4
call eax
mov edx, dword [0x4ce67c]
lea ebp, [eax + 0x10]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
mov dword [esp + 0x2c], ebp
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xc8]
push eax
push ebx
mov dword [esp + 0x900], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
push ebx
mov word [esp + 0xd4], cx
mov ecx, dword [esp + 0x54]
push str.DisplayName
push ecx
mov dword [esp + 0x38], 0x208
call esi
test eax, eax
jne 0x46a3fc
cmp dword [esp + 0x20], ebx
jbe 0x46a3fc
lea eax, [esp + 0xc4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46a3d4
sub eax, edx
sar eax, 1
lea edx, [esp + 0xc4]
mov ebx, eax
push edx
lea eax, [esp + 0x30]
call fcn.0046c7e0
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xc8]
push edx
push ebx
xor eax, eax
push ebx
mov word [esp + 0xd4], ax
mov eax, dword [esp + 0x54]
push str.UninstallString
push eax
mov dword [esp + 0x38], 0x208
call esi
test eax, eax
jne 0x46a468
cmp dword [esp + 0x20], ebx
jbe 0x46a468
lea eax, [esp + 0xc4]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46a440
sub eax, edx
sar eax, 1
lea ecx, [esp + 0xc4]
mov ebx, eax
push ecx
lea eax, [esp + 0x34]
call fcn.0046c7e0
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x30]
mov edi, ebp
mov dword [esp + 0x44], ebx
call fcn.0046a0d0
test eax, eax
je 0x46a4d6
push 0x4b804c
push ebp
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov ecx, eax
call fcn.0046ae20
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
call fcn.0046b710
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov esi, eax
lea edi, [esi + 8]
lea eax, [esp + 0x2c]
mov dword [esi], ecx
mov dword [esi + 4], edx
call fcn.0046aff0
add esi, 0xc
lea eax, [esp + 0x30]
mov edi, esi
call fcn.0046aff0
xor ebx, ebx
mov dword [esp + 0x8f4], 0xffffffff
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 0x46a501
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a51e
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x4e8]
push edx
push esi
push eax
call edi
test eax, eax
je 0x46a2f1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x4d2040], ebx
je 0x46a80f
lea edx, [esp + 0x1c]
push edx
push 0x20119
push ebx
lea eax, [esp + 0x68]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46a28b
push 0x206
lea edx, [esp + 0x6e2]
xor ecx, ecx
push ebx
push edx
xor esi, esi
mov word [esp + 0x6e8], cx
call fcn.0048dc10
add esp, 0xc
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x20]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x6f0]
push edx
push ebx
push eax
mov dword [esp + 0x5c], 0x208
call edi
test eax, eax
jne 0x46a804
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x6e8]
push edx
inc esi
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x50], 0x208
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x46a7d7
push 0x206
lea edx, [esp + 0x2d2]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x2d8], cx
call fcn.0048dc10
mov eax, dword [0x4ce67c]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x4ce67c
mov dword [esp + 0x34], 4
call edx
lea ebp, [eax + 0x10]
mov eax, dword [0x4ce67c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ce67c
mov dword [esp + 0x2c], ebp
call edx
xor edi, edi
add eax, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x2d0]
push edx
push edi
mov dword [esp + 0x900], 1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
push edi
mov word [esp + 0x2dc], ax
mov eax, dword [esp + 0x48]
push str.DisplayName
mov ebx, 0x208
push eax
mov dword [esp + 0x4c], ebx
call esi
test eax, eax
jne 0x46a6d6
cmp dword [esp + 0x34], edi
jbe 0x46a6d6
lea edx, [esp + 0x2cc]
lea edi, [esp + 0x2c]
call fcn.0046c880
mov ebp, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push edx
xor ecx, ecx
lea eax, [esp + 0x2d0]
push eax
push ecx
push ecx
mov word [esp + 0x2dc], cx
mov ecx, dword [esp + 0x48]
push str.UninstallString
push ecx
mov dword [esp + 0x4c], ebx
call esi
test eax, eax
jne 0x46a71d
cmp dword [esp + 0x34], eax
jbe 0x46a71d
lea edx, [esp + 0x2cc]
lea edi, [esp + 0x30]
call fcn.0046c880
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x30]
mov edi, ebp
mov dword [esp + 0x38], 0
call fcn.0046a0d0
test eax, eax
je 0x46a78d
push 0x4b804c
push ebp
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov ecx, eax
call fcn.0046ae20
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
call fcn.0046b710
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov esi, eax
lea edi, [esi + 8]
lea eax, [esp + 0x2c]
mov dword [esi], ecx
mov dword [esi + 4], edx
call fcn.0046aff0
add esi, 0xc
lea eax, [esp + 0x30]
mov edi, esi
call fcn.0046aff0
mov dword [esp + 0x8f4], 0xffffffff
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 0x46a7b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a7d5
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
xor ebx, ebx
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x20]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x6f0]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x46a5e4
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x8ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8d0]
xor ecx, esp
call fcn.0048b133
add esp, 0x8e4
ret 4