Function at 0x4972d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x57e176
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x62d414]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov eax, dword [0x62d414]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov dword [esp + 0x6c], 2
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x48]
xor bl, bl
mov dword [esp + 0xc], 0
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 + 0x6c], 3
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x497334
lea eax, [esp + 0x48]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [esp + 0xa4], 0
jbe 0x4973f4
test eax, eax
jne 0x4973f4
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x2c]
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 + 0x6c], 4
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x10]
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 + 0x6c], 5
cmp dword [esp + 0x24], 8
mov ecx, dword [esp + 0x10]
jae 0x4973a7
lea ecx, [esp + 0x10]
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x4973b6
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x20]
lea edx, [edx + edx + 2]
push edx
push ecx
push 1
push 0
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4973d6
mov bl, 1
mov byte [esp + 0x6c], 4
lea ecx, [esp + 0xc]
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 + 0x6c], 3
lea ecx, [esp + 0x28]
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 + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x6c], 2
lea ecx, [esp + 0x44]
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 + 0x6c], 1
lea ecx, [esp + 0x74]
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 + 0x6c], 0
lea ecx, [esp + 0x90]
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 + 0x6c], 0xffffffff
lea ecx, [esp + 0xac]
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 + 0x64]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0051ed00
add esp, 0x68
ret 0x54