Function at 0x4975b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x57e21a
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push esi
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov esi, dword [esp + 0x19c]
mov dword [esp + 0x15c], 1
push 0x5d1aa8
mov ecx, esi
xor bl, bl
mov dword [esp + 0x10], 0
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__::operator_wchar_t_const__]
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x38]
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x15c], 2
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x49763b
lea eax, [esp + 0x38]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4976d1
lea edx, [esp + 0x180]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0x100
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x15c], 3
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x497688
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4976bf
cmp dword [esp + 0x10], 1
jne 0x4976bf
lea eax, [esp + 0x50]
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__::operator_wchar_t_const__]
mov bl, 1
mov byte [esp + 0x15c], 2
lea ecx, [esp + 0x18]
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 ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x15c], 1
lea ecx, [esp + 0x34]
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 byte [esp + 0x15c], 0
lea ecx, [esp + 0x164]
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 dword [esp + 0x15c], 0xffffffff
lea ecx, [esp + 0x180]
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 al, bl
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0051ed00
add esp, 0x154
ret 0x3c