Function at 0x10001190
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1000be9f
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x1001201c]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push edi
mov eax, dword [0x1001201c]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14c], ebx
push str.SoftwareSAMSUNGSamsung_Easy_Printer_Manager
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov edi, 1
push 0x1000d2dc
mov ecx, esi
mov dword [esp + 0x150], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], edi
jae 0x10001215
lea eax, [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100012d4
push 0x103
lea edx, [esp + 0x41]
push ebx
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0x104
mov byte [esp + 0x48], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.InstalledVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100012c9
mov ecx, dword [esp + 0xc]
shr ecx, 1
push ecx
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___unsigned_int_]
mov eax, dword [esi + 0x14]
lea edi, [eax - 1]
cmp edi, eax
jbe 0x1000129f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x18], 8
jb 0x100012aa
mov eax, dword [esi + 4]
jmp 0x100012ad
lea eax, [esi + 4]
cmp word [eax + edi*2], bx
jne 0x100012c9
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov edx, dword [ecx]
mov eax, dword [esi + 0x14]
push edx
dec eax
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::erase_unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.1000b132
add esp, 0x144
ret