Function at 0x180229840
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x198], rbx
mov rbx, rdx
mov rsi, rcx
lea r15, sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null
mov qword [rsp + 0x38], r15
mov rcx, qword [rcx]
test rcx, rcx
jne 0x180229887
mov qword [rdx], r15
jmp 0x180229a04
mov r14, qword [r8 + 8]
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0xa8]
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180229a01
mov eax, dword [rbp + 0xa8]
dec eax
cmp eax, 1
ja 0x180229a01
mov eax, dword [rbp + 0x90]
cmp eax, 2
jbe 0x180229a01
add eax, 2
mov dword [rbp + 0x90], eax
mov dword [rsp + 0x54], eax
cmp eax, 0x100
jle 0x18022991d
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x18022990d
call sym.Qt5Core.dll_void___cdecl_qBadAlloc_void_
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
mov eax, dword [rbp + 0x90]
jmp 0x18022992f
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x50], 0x100
add rax, rcx
mov r8, rax
sub r8, rcx
cmp rcx, rax
cmova r8, rdi
test r8, r8
je 0x180229953
mov rdi, rcx
xor eax, eax
mov rcx, r8
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x58]
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0xa8]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 0xffffffff
test eax, eax
jne 0x1802299d2
mov r8d, edi
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
call sym.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const____ptr64__int_
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
mov qword [rax], r15
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax]
test ecx, ecx
je 0x1802299bf
cmp ecx, edi
je 0x1802299d2
mov ecx, edi
mov rax, qword [rsp + 0x30]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1802299d2
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x30]
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
mov rax, qword [rsp + 0x38]
mov qword [rbx], rax
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x1802299f0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov eax, dword [sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null]
test eax, eax
je 0x180229a25
cmp eax, 0xffffffff
je 0x180229a37
jmp 0x180229a18
mov qword [rbx], r15
mov eax, dword [sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null]
test eax, eax
je 0x180229a25
cmp eax, 0xffffffff
je 0x180229a37
mov edi, 0xffffffff
lock xadd dword [sym.Qt5Core.dll_struct_QArrayData_const__const_const_QArrayData::shared_null], edi
cmp edi, 1
jne 0x180229a37
mov r8d, 8
lea edx, [r8 - 6]
mov rcx, r15
call sym.Qt5Core.dll_public:_static_void___cdecl_QArrayData::deallocate_struct_QArrayData____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__
mov rax, rbx
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret