Function at 0x100a6950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022c9ac
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
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 edi, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x48], edi
test esi, esi
je 0x100a69a6
cmp dword [ebp + 0x10], edi
jbe 0x100a69a6
xor ecx, ecx
mov word [esi], cx
jmp 0x100a69e3
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.std::exception.0
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], str.invalid_param
xorps xmm0, xmm0
mov byte [ebp - 0x34], 1
push eax
movq qword [ebp - 0x40], xmm0
call sub.VCRUNTIME140.dll___std_exception_copy
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.std::exception.0
push eax
call sub.VCRUNTIME140.dll___std_exception_destroy
mov eax, dword [ebp - 0x30]
add esp, 0xc
test eax, eax
jne 0x100a6a21
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.std::exception.0
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], str.invalid_param
xorps xmm0, xmm0
mov byte [ebp - 0x34], 1
push eax
movq qword [ebp - 0x40], xmm0
call sub.VCRUNTIME140.dll___std_exception_copy
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.std::exception.0
push eax
call sub.VCRUNTIME140.dll___std_exception_destroy
add esp, 0xc
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0
mov dword [ebp - 0xf0], 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 - 0xec]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x34], 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 - 0xf0]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xf4], eax
lea ecx, [ebp - 0xec]
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 - 0xec], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 4
lea eax, [ebp - 0xf0]
mov byte [ebp - 4], 3
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.1004eb30
add esp, 8
push dword [ebp - 0x30]
push eax
call fcn.1004eb30
add esp, 8
push str._is1
push eax
call fcn.1004eb30
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xec]
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], 0
push ecx
push 0x20219
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x100a6b4e
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x200
xor eax, eax
mov byte [ebp - 4], 4
test ecx, ecx
cmovne eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
cmp ecx, 7
jbe 0x100a6b9b
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100a6b8e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a6b8e
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 eax, dword [ebp - 0x34]
add esp, 8
test eax, eax
jne 0x100a6ca8
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push 0
push str.Inno_Setup:_App_Path
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a6ca8
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x100a6bdd
cmp eax, 2
jne 0x100a6ca8
test esi, esi
je 0x100a6c04
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100a6bff
test al, 1
jne 0x100a6ca8
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x100a6c04
jmp 0x100a6ca8
xor eax, eax
mov word [esi], ax
mov ecx, esi
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a6c20
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.100895c0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x50], 0
push eax
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x58], xmm0
call fcn.100ae1f0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
cmp dword [ebp - 0x38], 3
mov eax, 1
cmove edi, eax
cmp ecx, 7
jbe 0x100a6ca8
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100a6c9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a6c9e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100b9c1b
add esp, 8
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x100a6cb6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xf4], eax
lea ecx, [ebp - 0xec]
call fcn.100819c0
lea ecx, [ebp - 0xe8]
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 - 0xa0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x100a6db0
mov eax, edi
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