Function at 0x510a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x659eee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x84]
push edi
mov esi, ecx
mov dword [ebp - 0xe4], 0x678b8c
mov dword [ebp - 0xd4], 0x685d94
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x84], vtable.std::ios_base.0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x84], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
push ebx
lea ecx, [ebp - 0xcc]
push ecx
mov edi, 2
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x10], edi
call fcn.0050a820
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xcc]
mov dword [ebp + eax - 0xe4], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x14], ecx
call fcn.00460980
mov byte [ebp - 4], 3
mov dword [ebp - 0xcc], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 4]
mov edi, dword [ebp + 8]
lea eax, [ebp + eax - 0xe4]
mov dword [eax + 0x14], 0x808
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00510340
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x20], 0x3c
call fcn.0050f2b0
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x10], 3
jb 0x510b95
mov eax, dword [eax]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x128]
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 0x510bc0
cmp dword [ebp - 0x1c], 3
mov byte [ebp + 0xb], 1
je 0x510bc3
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], 6
mov eax, 3
mov dword [ebp - 0x10], eax
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x28], 8
jb 0x510bea
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0060faf6
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], cx
cmp byte [ebp + 0xb], bl
je 0x510c8a
cmp dword [ebp - 0xf4], ebx
je 0x510c73
fld dword [ebp - 0x114]
mov edx, dword [edi]
fmul qword [0x678dc8]
mov ecx, dword [ebp - 0x118]
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xe8], edx
fldcw word [ebp - 0x14]
mov edx, dword [ebp - 0x11c]
and ecx, 0x3fff
shl ecx, 0x10
not edx
shl edx, 0x1e
fistp qword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
and eax, 0xffff
or eax, ecx
mov ecx, dword [esi]
or eax, edx
mov dword [ebp - 0xec], eax
fldcw word [ebp + 0xa]
lea eax, [ebp - 0x128]
push eax
call fcn.00510620
jmp 0x510c94
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
lea eax, [ebp - 0x128]
push eax
mov eax, dword [esi + 4]
push eax
call edx
jmp 0x510c94
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
or esi, 0xffffffff
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x84]
call fcn.005031f0
lea eax, [ebp - 0x84]
mov dword [ebp + 8], eax
mov dword [ebp - 0x84], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], esi
mov ecx, eax
push ecx
mov dword [ebp - 0x84], vtable.std::ios_base.0
call fcn.005fbd49
mov ecx, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4