Function at 0x406744
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0xb8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
and qword [rsp + 0x50], 0
and dword [rsp + 0x58], 0
lea rdx, str.KeyCombination
lea rcx, [rsp + 0x48]
call fcn.00406688
nop
lea rdx, [0x00435c40]
lea rcx, [rsp + 0x38]
call fcn.00406688
nop
lea rdx, [0x00434270]
lea rcx, [rsp + 0x30]
call fcn.00406688
nop
lea rdx, str.Game_Optimizer
lea rcx, [rsp + 0x40]
call fcn.00406688
nop
lea rdx, str.GameOptimizer.exe
lea rcx, [rsp + 0x80]
call fcn.00406688
nop
lea r8, [rsp + 0x38]
lea rdx, str.Software_
lea rcx, [rsp + 0x70]
call fcn.00405ed8
nop
lea rbx, [0x0043426c]
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.00405d48
nop
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.004056dc
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.00405d48
nop
lea r8, [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.004056dc
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.00405d48
nop
lea r8, [rsp + 0x48]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.004056dc
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x40687b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x40689b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x4068bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x4068de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x406901
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x406920
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
and qword [rsp + 0xe8], 0
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4069fd
mov rbx, qword [rsp + 0xe8]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0xd0], 4
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
lea rax, [0x00446ec4]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd8]
xor r8d, r8d
lea rdx, str.count
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0xd0], 0x300
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
lea rax, [0x00446bb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe0]
xor r8d, r8d
lea rdx, [0x00435cb8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x4069f8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x50], 0
and dword [rsp + 0x58], 0
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x406a1d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x406a40
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x406a60
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x406a80
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x406aa0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x406ac0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406ad0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0xb8
pop rdi
pop rbx
ret