Function at 0x10019589
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10049305
call fcn.100464e0
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x100196e5
mov ecx, dword [ebp + 0x14]
call fcn.1001a820
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0x10], esi
jle 0x100196e9
mov eax, dword [ebp + 0xc]
mov esi, 0x208
mov dword [ebp + 0xc], eax
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
and dword [ebp - 0x34], 0
xor eax, eax
lea edi, [ebp - 0x30]
dec ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x1001960e
dec ecx
je 0x100195f8
dec ecx
dec ecx
jne 0x100196e5
push 4
pop edi
push edi
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], edi
jmp 0x10019622
push esi
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], 2
jmp 0x10019622
push esi
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], 1
xor edi, edi
cmp dword [ebp - 0x30], edi
je 0x100196e5
push dword [ebp - 0x2c]
push edi
push dword [ebp - 0x30]
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push dword [ebp - 0x30]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x10019670
cmp dword [ebp - 0x30], edi
mov dword [ebp - 0x24], eax
je 0x10019670
push dword [ebp - 0x30]
call sub.MFC42u.DLL_operatordelete
pop ecx
mov dword [ebp - 0x30], edi
mov al, byte [ebp + 0xf]
push edi
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_]
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push ebx
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__::assign_unsigned_short_int_const___unsigned_int_]
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], edi
call fcn.1001a5d3
mov ecx, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
push 1
lea ecx, [ebp - 0x20]
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_]
inc dword [ebp - 0x10]
add dword [ebp + 0xc], 8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jge 0x100196e9
mov eax, dword [ebp + 0xc]
jmp 0x100195c3
xor eax, eax
jmp 0x100196ec
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10