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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a42d
mov eax, dword fs:[0]
push eax
mov eax, 0x1470
call fcn.00497d20
mov eax, dword [0x4cc99c]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x1468], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x146c], ecx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x1450]
mov dword [ebp - 0x1470], edx
mov dword [ebp - 0x1474], eax
call fcn.004022c0
mov edx, dword [ebp - 0x1450]
lea ecx, [ebp - 0x145c]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push edx
push SysReAllocString
mov dword [ebp - 4], ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x473771
mov edx, dword [ebp - 0x145c]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1460]
push eax
lea ecx, [ebp - 0x1410]
push ecx
push ebx
push edx
mov dword [ebp - 0x1460], 0x800
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
mov byte [ebp - 0x1449], bl
cmp esi, ebx
jne 0x473292
mov edi, edi
cmp esi, 0xea
je 0x473292
mov edx, dword [ebp - 0x1450]
xor eax, eax
mov word [ebp - 0x142c], ax
mov eax, edx
mov dword [ebp - 0x1418], 7
mov dword [ebp - 0x141c], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x473150
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x142c]
call fcn.004027c0
push 1
push 0x4adfcc
lea ecx, [ebp - 0x142c]
mov byte [ebp - 4], 1
call fcn.004026a0
lea eax, [ebp - 0x1410]
lea edx, [eax + 2]
jmp 0x473190
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x473190
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x1410]
push ecx
lea ecx, [ebp - 0x142c]
call fcn.004026a0
push 0x3fe
lea eax, [ebp - 0x40e]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x1458], 1
mov word [ebp - 0x410], dx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x142c]
add esp, 0xc
cmp dword [ebp - 0x1418], 8
mov dword [ebp - 0x1454], 0x400
jae 0x4731f9
lea eax, [ebp - 0x142c]
lea ecx, [ebp - 0x1454]
push ecx
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x1458]
push ecx
push str.UninstallString
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x146c]
push edx
push eax
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x4734d2
mov ecx, dword [ebp - 0x145c]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x1460]
push edx
lea eax, [ebp - 0x1410]
push eax
inc edi
push edi
push ecx
mov dword [ebp - 0x1460], 0x800
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp dword [ebp - 0x1418], 8
mov esi, eax
mov byte [ebp - 4], bl
jb 0x47328a
mov edx, dword [ebp - 0x142c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, ebx
je 0x473120
mov edi, 8
mov eax, dword [ebp - 0x145c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x1449], bl
jne 0x473741
mov edx, dword [ebp - 0x1450]
lea ecx, [ebp - 0x1458]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1454], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x473741
mov edx, dword [ebp - 0x1458]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1464]
push eax
lea ecx, [ebp - 0xc10]
push ecx
push ebx
push edx
mov dword [ebp - 0x1464], 0x800
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
mov byte [ebp - 0x1449], bl
cmp esi, ebx
jne 0x4736d4
jmp 0x473320
cmp esi, 0xea
je 0x4736d4
mov edx, dword [ebp - 0x1450]
xor eax, eax
mov word [ebp - 0x142c], ax
mov eax, edx
mov dword [ebp - 0x1418], 7
mov dword [ebp - 0x141c], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x473350
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x142c]
call fcn.004027c0
push 1
push 0x4adfcc
lea ecx, [ebp - 0x142c]
mov byte [ebp - 4], 3
call fcn.004026a0
lea eax, [ebp - 0xc10]
lea edx, [eax + 2]
jmp 0x473390
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x473390
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xc10]
push ecx
lea ecx, [ebp - 0x142c]
call fcn.004026a0
push 0x3fe
lea eax, [ebp - 0x40e]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x1478], 1
mov word [ebp - 0x410], dx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x142c]
add esp, 0xc
mov dword [ebp - 0x147c], 0x400
cmp dword [ebp - 0x1418], edi
jae 0x4733f8
lea eax, [ebp - 0x142c]
lea ecx, [ebp - 0x147c]
push ecx
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x1478]
push ecx
push str.UninstallString
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, dword [ebp - 0x146c]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x473430
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x410]
push esi
push edx
call dword [sym.imp.MSVCR100.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x473615
mov eax, dword [ebp - 0x1454]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1464]
push ecx
inc eax
lea edx, [ebp - 0xc10]
push edx
push eax
mov dword [ebp - 0x1454], eax
mov eax, dword [ebp - 0x1458]
push eax
mov dword [ebp - 0x1464], 0x800
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1418], edi
jb 0x4734ac
mov ecx, dword [ebp - 0x142c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x1418], 7
mov dword [ebp - 0x141c], ebx
mov word [ebp - 0x142c], dx
cmp esi, ebx
je 0x473320
jmp 0x4736d4
call fcn.004696f0
xor ecx, ecx
mov word [ebp - 0x1448], cx
mov ecx, eax
mov dword [ebp - 0x1434], 7
mov dword [ebp - 0x1438], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4734f5
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1448]
call fcn.004027c0
push 1
push 0x4b2700
lea ecx, [ebp - 0x1448]
mov byte [ebp - 4], 2
call fcn.004026a0
mov esi, dword [ebp - 0x1468]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x473532
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x1448]
call fcn.004026a0
mov ecx, dword [ebp - 0x1448]
mov edi, 8
cmp dword [ebp - 0x1434], edi
jae 0x473567
lea ecx, [ebp - 0x1448]
mov eax, dword [ebp - 0x142c]
cmp dword [ebp - 0x1418], edi
jae 0x47357b
lea eax, [ebp - 0x142c]
mov edx, dword [ebp - 0x1438]
add edx, edx
push edx
push ecx
push 1
push str.UninstallString
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 0x142c]
cmp dword [ebp - 0x1418], edi
jae 0x4735ac
lea eax, [ebp - 0x142c]
push eax
push str.uninstallctrl
push esi
call fcn.00460bc0
add esp, 0xc
mov byte [ebp - 0x1449], 1
cmp dword [ebp - 0x1434], edi
jb 0x4735d9
mov eax, dword [ebp - 0x1448]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1434], 7
mov dword [ebp - 0x1438], ebx
mov word [ebp - 0x1448], cx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1418], edi
jb 0x473297
mov edx, dword [ebp - 0x142c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x473297
call fcn.004696f0
push eax
lea ecx, [ebp - 0x1448]
call fcn.00402480
push 0x4b2700
lea ecx, [ebp - 0x1448]
mov byte [ebp - 4], 4
call fcn.00402500
mov esi, dword [ebp - 0x1468]
push esi
lea ecx, [ebp - 0x1448]
call fcn.00402500
mov ecx, dword [ebp - 0x1448]
cmp dword [ebp - 0x1434], edi
jae 0x473660
lea ecx, [ebp - 0x1448]
mov eax, dword [ebp - 0x142c]
cmp dword [ebp - 0x1418], edi
jae 0x473674
lea eax, [ebp - 0x142c]
mov edx, dword [ebp - 0x1438]
add edx, edx
push edx
push ecx
push 1
push str.UninstallString
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebp - 0x142c]
cmp dword [ebp - 0x1418], edi
jae 0x4736a5
lea eax, [ebp - 0x142c]
push eax
push str.uninstallctrl
push esi
call fcn.00460bc0
add esp, 0xc
lea ecx, [ebp - 0x1448]
mov byte [ebp - 0x1449], 1
call fcn.004024d0
lea ecx, [ebp - 0x142c]
mov byte [ebp - 4], bl
call fcn.004024d0
mov eax, dword [ebp - 0x1458]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x1449], bl
jne 0x473741
mov edx, dword [ebp - 0x1468]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1454], esp
push edx
call fcn.00402480
mov eax, dword [ebp - 0x1470]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x146c], esp
push eax
mov byte [ebp - 4], 5
call fcn.00402480
mov edx, dword [ebp - 0x1474]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1470], esp
push edx
mov byte [ebp - 4], 6
call fcn.00402480
mov byte [ebp - 4], bl
call fcn.00472de0
add esp, 0x54
mov eax, dword [ebp - 0x1450]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47376a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4737a9
mov ecx, dword [ebp - 0x145c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1450]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4737a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.00497792
mov esp, ebp
pop ebp
ret