Function at 0x410226
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42f999
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x4441b4]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x41027b
xor al, al
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, 0x802
push esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x400
call fcn.0041a0b4
push esi
mov edi, eax
push ebx
push edi
call sub.MSVCR90.dll_memset
mov esi, dword [ebp + 0xc]
add esp, 0x10
cmp dword [esi + 0x18], 8
jb 0x4102ad
mov eax, dword [esi + 4]
jmp 0x4102b0
lea eax, [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push edi
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdq
cmp eax, ebx
jne 0x4102d1
cmp edx, ebx
je 0x4102fd
push esi
lea eax, [esp + 0x20]
push str.Query_registry_value_with_key:
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
lea ecx, [esp + 0x1c]
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_]
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
mov al, bl
jmp 0x410263
cmp dword [esp + 0x14], 4
jne 0x41036c
mov esi, dword [edi]
push 1
push 3
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int_]
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0xec], ebx
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x58]
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_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void_]
mov ecx, dword [ebp + 0x10]
push eax
mov byte [esp + 0xec], 1
call dword [0x433208]
lea ecx, [esp + 0x38]
mov byte [esp + 0xe8], 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_]
or dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void_]
jmp 0x410376
mov ecx, dword [ebp + 0x10]
push edi
call dword [0x433274]
mov bl, 1
jmp 0x4102ef