Function at 0x50f710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659c4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 8]
push edi
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x50f760
push 0x24c
push str.d:projects_staffcop_rev_sdkcontrolswtldockingwindows_sstate.h
push str.m_rebar.IsWindow__
call fcn.00614d2b
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
push 4
lea edx, [esi + 0xc]
push edx
push 4
push ebx
push 0x677570
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi + 8]
push ebx
push ebx
push 0x40c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
mov dword [ebp - 0x18], eax
cmp eax, ebx
jbe 0x50faa7
lea edx, [ebp - 0xb0]
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0xd8], edx
mov edx, eax
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xc0], 0x678b8c
mov dword [ebp - 0xb0], 0x685d94
mov dword [ebp - 0x60], vtable.std::ios_base.0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x60], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, 1
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc0]
or dword [ebp - 0x10], eax
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov esi, dword [ecx + 4]
lea esi, [ebp + esi - 0xc0]
mov ecx, esi
call fcn.0045fe60
lea edx, [ebp - 0xa8]
push 0x20
mov ecx, esi
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ebx
call fcn.004615c0
mov word [esi + 0x40], ax
cmp dword [esi + 0x38], ebx
jne 0x50f86a
mov eax, dword [esi + 0xc]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, esi
call fcn.0045fce0
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xb0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 9
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0xa
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0xa8]
mov dword [ebp + edx - 0xc0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
call fcn.00460980
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xa8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], 0xe
push edi
lea eax, [ebp - 0xb0]
push 0x677564
push eax
call fcn.005076f0
add esp, 8
mov ecx, eax
call fcn.00510340
push 0x50
lea ecx, [ebp - 0x148]
push ebx
push ecx
call fcn.006100a0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
add esp, 0xc
lea edx, [ebp - 0x148]
push edx
push edi
push 0x41c
push ecx
mov dword [ebp - 0x148], 0x50
mov dword [ebp - 0x144], 0x341
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [ebp - 0xf8]
push edx
lea ecx, [ebp - 0xc0]
call fcn.0050f2b0
mov byte [ebp - 4], 0xf
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x50f95f
mov eax, dword [eax]
mov edx, dword [ebp - 0x148]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
push edx
lea edx, [ebp - 0x148]
push edx
push 3
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0xe4], esi
jb 0x50f998
mov eax, dword [ebp - 0xf8]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
or esi, 0xffffffff
mov dword [ebp - 0xe4], 7
mov dword [ebp - 0xe8], ebx
mov word [ebp - 0xf8], cx
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 4], 0x10
mov dword [ebp - 0xa8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov byte [ebp - 4], 0x12
test byte [ebp - 0x68], 1
je 0x50f9f7
mov ecx, dword [ebp - 0x98]
mov eax, dword [ecx]
push eax
call fcn.0060faf6
add esp, 4
mov edx, dword [ebp - 0x98]
mov dword [edx], ebx
mov eax, dword [ebp - 0x88]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x78]
mov dword [ecx], ebx
mov edx, dword [ebp - 0x94]
mov dword [edx], ebx
mov eax, dword [ebp - 0x84]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x74]
mov dword [ecx], ebx
and dword [ebp - 0x68], 0xfffffffe
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xa8]
call fcn.00460010
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0x13
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - 0xb0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xc0], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x60], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], esi
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x60], vtable.std::ios_base.0
call fcn.005fbd49
inc edi
add esp, 4
cmp edi, dword [ebp - 0x18]
jb 0x50f7d3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8