Function at 0x50fac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659cd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c]
push ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [eax]
push 0x677570
mov esi, 4
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x50fd3f
cmp dword [ebp - 0x1c], esi
jne 0x50fd3f
mov edx, dword [ebp - 0x20]
cmp edx, dword [edi + 0xc]
jne 0x50fd3f
mov eax, dword [edi + 8]
push ebx
push ebx
push 0x40c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov dword [ebp - 0x24], eax
cmp eax, ebx
jbe 0x50fd2a
lea ecx, [ebp - 0xa0]
lea edx, [ebp - 0xe8]
mov eax, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x100], 0x678b8c
mov dword [ebp - 0xf0], 0x685d94
mov dword [ebp - 0xa0], vtable.std::ios_base.0
mov dword [ebp - 4], ebx
mov dword [ebp - 0xa0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
or dword [ebp - 0x14], 2
push ebx
lea ecx, [ebp - 0xe8]
push ecx
lea ecx, [ebp - 0x100]
call fcn.0050a820
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x100]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xe8]
mov dword [ebp + eax - method.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], 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], 3
mov dword [ebp - 0xe8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 4], 6
push esi
lea ecx, [ebp - 0xf0]
push 0x677564
push ecx
call fcn.005076f0
add esp, 8
mov ecx, eax
call fcn.00510340
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 4], 7
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x18], 0x50
call fcn.0050f2b0
mov byte [ebp - 4], 8
or dword [ebp - 0x14], 1
cmp dword [eax + 0x14], 8
jb 0x50fc3f
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x150]
push edx
lea edx, [ebp - 0x1c]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x50fc6a
cmp dword [ebp - 0x1c], 3
mov byte [ebp - 0xd], 1
je 0x50fc6d
mov byte [ebp - 0xd], bl
mov dword [ebp - 4], 7
test byte [ebp - 0x14], 1
je 0x50fca0
and dword [ebp - 0x14], 0xfffffffe
cmp dword [ebp - 0x44], 8
jb 0x50fc90
mov eax, dword [ebp - 0x58]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], cx
cmp byte [ebp - 0xd], bl
je 0x50fce4
mov edx, dword [ebp - 0x11c]
mov eax, dword [edi + 8]
push ebx
push edx
push 0x410
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 8]
push esi
push eax
push 0x427
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 8]
lea edx, [ebp - 0x150]
push edx
push esi
push 0x40b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.005031f0
mov dword [ebp - 0xa0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], vtable.std::ios_base.0
call fcn.005fbd49
inc esi
add esp, 4
cmp esi, dword [ebp - 0x24]
jb 0x50fb60
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8