Function at 0x140059550
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rdi, rcx
xor esi, esi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
lea rbx, [rcx + 0x48]
mov qword [rbp - 0x20], rbx
lea rcx, [0x14017bd30]
mov rax, qword [0x14017bd30]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov byte [rdi + 0x50], sil
mov qword [rdi + 0x58], rsi
mov qword [rdi + 0x60], rsi
lea rdx, [0x140129a38]
lea rcx, [rdi + 0x68]
call fcn.140002ad0
nop
mov byte [rdi + 0x70], sil
lea rcx, [rdi + 0x78]
mov qword [rcx], rsi
lea rdx, str.BB6992A5_093C_4C18_86D8_7D7217231AE3
call fcn.14009c060
nop
mov dword [rbp + 0x58], 4
mov dword [rbp + 0x50], 4
lea rsi, [rdi + 0x28]
mov dword [rsi], 0x3200000
lea r12, [rdi + 0x30]
mov dword [r12], 0x500000
lea r13, [rdi + 0x34]
mov dword [r13], 0x3200000
mov dword [rdi + 0x38], 0x3200000
mov dword [rdi + 0x3c], 0x3200000
mov dword [rdi + 0x40], 0xc800000
lea r14, [rdi + 0x2c]
mov dword [r14], 0x6400000
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14012bc50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400597b3
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, [0x14012bcb0]
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x60]
test eax, eax
je 0x140059691
mov byte [rdi + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400597b3
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, [0x14012bcc0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x60]
test eax, eax
jne 0x140059682
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, [0x14012bcd0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x60]
test eax, eax
jne 0x140059682
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, [0x14012bb68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140059720
mov byte [rdi + 0x50], 0
jmp 0x1400597b3
mov eax, dword [rsi]
shl eax, 0x14
mov dword [rsi], eax
mov eax, dword [r12]
shl eax, 0x14
mov dword [r12], eax
mov eax, dword [r13]
shl eax, 0x14
mov dword [r13], eax
mov eax, dword [r14]
shl eax, 0x14
mov dword [r14], eax
lea rcx, [rbp - 0x20]
call fcn.140085530
nop
lea r8, str.qt.log
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1400162e0
nop
mov rdx, rax
lea rcx, [rdi + 0x68]
call fcn.140001cf0
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140059793
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1400597af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov byte [rdi + 0x50], 1
mov rax, rdi
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret