Function at 0x100a65b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022c924
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x102db080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x44], ebx
test esi, esi
je 0x100a6603
cmp dword [ebp + 0x10], ebx
jbe 0x100a6603
xor eax, eax
mov word [esi], ax
jmp 0x100a663d
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], vtable.std::exception.0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], str.invalid_param
xorps xmm0, xmm0
mov byte [ebp - 0x30], 1
push eax
movq qword [ebp - 0x3c], xmm0
call sub.VCRUNTIME140.dll___std_exception_copy
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], vtable.std::exception.0
push eax
call sub.VCRUNTIME140.dll___std_exception_destroy
add esp, 0xc
test edi, edi
jne 0x100a667b
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], vtable.std::exception.0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], str.invalid_param
xorps xmm0, xmm0
mov byte [ebp - 0x30], 1
push eax
movq qword [ebp - 0x3c], xmm0
call sub.VCRUNTIME140.dll___std_exception_copy
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], vtable.std::exception.0
push eax
call sub.VCRUNTIME140.dll___std_exception_destroy
add esp, 0xc
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0
mov dword [ebp - 0xe0], 0x102b2a5c
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x30], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t_____bool_]
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xdc]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [ebp - 0xdc], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 4
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 3
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.1004eb30
add esp, 8
push edi
push eax
call fcn.1004eb30
add esp, 8
push str._is1
push eax
call fcn.1004eb30
xor edi, edi
add esp, 8
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xdc]
call fcn.10080510
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push ecx
push 0x20219
push edi
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
cmove edi, dword [ebp - 0x30]
xor ecx, ecx
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
cmp eax, 7
jbe 0x100a67d3
mov edx, dword [ebp - 0x2c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100a67c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a67c6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100b9c1b
mov ecx, dword [ebp - 0x30]
add esp, 8
test ecx, ecx
jne 0x100a682b
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push ecx
push str.Inno_Setup:_Selected_Components
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a682b
mov eax, dword [ebp - 0x44]
cmp eax, 1
je 0x100a6806
cmp eax, 2
jne 0x100a682b
test esi, esi
je 0x100a6826
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100a6821
test al, 1
jne 0x100a682b
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x100a6826
jmp 0x100a682b
xor eax, eax
mov word [esi], ax
mov ebx, 1
test edi, edi
je 0x100a6836
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xdc]
call fcn.100819c0
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x100a692e
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b9f43
mov esp, ebp
pop ebp
ret