Function at 0x10013283
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100487d6
call fcn.100464e0
sub esp, 0x238
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x242]
mov word [ebp - 0x244], bx
rep stosd dword es:[edi], eax
mov esi, 0x104
mov dword [ebp - 4], ebx
stosw word es:[edi], ax
mov dword [ebp - 0x28], esi
call fcn.10012d4c
test eax, eax
jne 0x100132d4
call fcn.10012db9
test eax, eax
je 0x10013445
cmp byte [ebp + 0x14], bl
je 0x10013445
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
call fcn.10012e26
pop ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [ebp - 4], 2
push dword [ecx]
lea ecx, [ebp - 0x20]
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, 0x1005cd28
push edi
call esi
pop ecx
push eax
push edi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
push dword [ebp + 8]
call esi
pop ecx
push eax
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x1001335a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x14], ebx
push ecx
push 0xf003f
push ebx
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100133aa
lea ecx, [ebp - 0x10]
call fcn.1001487f
mov ecx, dword [ebp + 0x14]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x100133aa
lea eax, [ebp - 0x28]
mov dword [ebp + 0x14], ebx
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x100133cf
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
cmp dword [ebp - 0x10], ebx
je 0x100134d5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100134d5
cmp dword [ebp + 0x10], ebx
je 0x1001341f
lea eax, [ebp - 0x244]
push 0x103
push eax
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp dword [ebp - 0x10], ebx
je 0x100133ff
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
cmp dword [ebp - 0x10], ebx
je 0x10013417
push dword [ebp - 0x10]
call esi
push 1
pop eax
jmp 0x100134d7
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10013432
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
jmp 0x100134cb
lea eax, [ebp + 0x14]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100133b8
push 1
lea eax, [ebp + 8]
pop edi
mov dword [ebp + 8], esi
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x24], edi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100134c0
cmp dword [ebp + 0x10], ebx
je 0x100134c0
lea eax, [ebp - 0x244]
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
push dword [ebp + 0x14]
call esi
cmp dword [ebp - 0x10], ebx
je 0x100134bc
push dword [ebp - 0x10]
call esi
mov eax, edi
jmp 0x100134d7
push dword [ebp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
cmp dword [ebp - 0x10], ebx
je 0x100134d5
push dword [ebp - 0x10]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret