Function at 0x140013120
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r11, r9
mov rcx, r8
mov rdi, rdx
mov qword [rbp - 0x58], rdx
mov r15, qword [rbp + 0x170]
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov qword [rbp - 0x58], r12
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400131a8
mov dword [rbp - 0x58], eax
lea rax, [0x1401c10e8]
mov qword [rbp - 0x50], rax
mov byte [rdi + 0x40], r12b
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rdi], xmm0
jmp 0x140013688
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x40], r12b
mov dword [rbp - 0x60], r12d
mov dword [rbp - 0x48], r12d
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x48]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140013202
mov dword [rbp - 0x40], eax
lea rax, [0x1401c10e8]
mov qword [rbp - 0x38], rax
movups xmm0, xmmword [rbp - 0x40]
mov byte [rdi + 0x40], 0
movups xmmword [rdi], xmm0
jmp 0x140013679
mov ecx, dword [rbp - 0x60]
test ecx, ecx
jne 0x140013235
movzx eax, byte [0x1401b5780]
cmp al, 4
ja 0x140013225
lea rcx, str.Failed_to_query_value_size_from_registry._Value_size_is_0
mov edx, 4
call fcn.140034cf0
mov dword [rbp - 0x40], 0x81
lea rax, [0x1401b5720]
jmp 0x1400131ee
mov eax, dword [rbp - 0x48]
sub eax, 1
je 0x140013526
cmp eax, 3
je 0x14001325a
movzx eax, byte [0x1401b5780]
cmp al, 4
ja 0x140013225
lea rcx, str.Invalid_data_type_read_from_registry
jmp 0x14001321b
mov dword [rbp - 0x40], r12d
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x48]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1400132cb
movzx ecx, byte [0x1401b5780]
cmp cl, 4
ja 0x1400132aa
mov r8d, eax
mov edx, 4
lea rcx, str.Failed_to_read_dword_value_from_registry___ld
call fcn.140034cf0
mov dword [rsp + 0x38], ebx
lea rax, [0x1401c10e8]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsp + 0x38]
mov byte [rdi + 0x40], 0
movups xmmword [rdi], xmm0
jmp 0x140013679
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x10]
call fcn.1400fe8d0
lea rax, [0x1401700e8]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xc8], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xd0], xmm0
mov dword [rsp + 0x30], 8
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x98], rax
mov dword [rbp + 0x94], 0x78
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x98]
call fcn.140017580
nop
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0xc], edx
lea rcx, [rbp + 0x18]
call fcn.140017320
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x80], r12
mov dword [rbp + 0x88], 4
mov edx, dword [rbp - 0x40]
lea rcx, [rbp + 0x10]
call fcn.140014960
nop
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r12w
mov dword [rsp + 0x30], 0x48
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov ecx, dword [rbp + 0x88]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400133e5
mov rax, qword [rbp + 0x58]
mov r8, qword [rax]
test r8, r8
je 0x1400133e5
mov rax, qword [rbp + 0x38]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x80]
cmovb r8, qword [rbp + 0x80]
sub r8, rdx
sar r8, 1
jmp 0x14001341a
test cl, 4
jne 0x140013412
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x140013412
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x68]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x14001341a
mov r8, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x78]
test rdx, rdx
je 0x140013429
lea rcx, [rbp - 0x30]
call fcn.140002fb0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x48]
call fcn.14000cdc0
lea rax, fcn.14000cd60
mov qword [rsp + 0x78], rax
lea rax, vtable.type_info.0
or rax, 2
mov qword [rbp - 0x80], rax
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1400136c0
nop
mov rax, qword [rbp - 0x80]
and eax, 3
sub rax, 1
je 0x1400134aa
cmp rax, 1
jne 0x1400134d3
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax]
lea rax, [fcn.14000cd60]
lea rcx, [rsp + 0x48]
cmp rdx, rax
jne 0x1400134ca
call fcn.14000d700
jmp 0x1400134d3
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax]
lea rax, [fcn.14000cd60]
mov rcx, qword [rsp + 0x70]
cmp rdx, rax
jne 0x1400134ca
call fcn.14000d700
jmp 0x1400134d3
mov rax, rdx
call qword [case.0x14000cca5.0]
mov qword [rbp - 0x80], r12
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140013518
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013512
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400136ac
call fcn.140074f80
nop
lea rcx, [rbp + 0x10]
call fcn.140013750
jmp 0x140013679
shr rcx, 1
inc rcx
mov eax, 2
mul rcx
mov rbx, rax
mov rsi, 0xffffffffffffffff
cmovo rbx, rsi
mov rcx, rbx
call fcn.1400fbe0c
mov r14, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400fe8d0
mov qword [rbp - 0x40], r14
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400135a4
mov dword [rsp + 0x38], eax
lea rax, [0x1401c10e8]
mov qword [rsp + 0x40], rax
mov byte [rdi + 0x40], 0
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdi], xmm0
jmp 0x140013670
mov eax, dword [rbp - 0x60]
shr rax, 1
mov word [r14 + rax*2], r12w
mov qword [rbp - 0x28], r12
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], r12
mov qword [rbp + 8], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], 7
inc rsi
cmp word [r14 + rsi*2], 0
jne 0x1400135d3
mov r8, rsi
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.140002fb0
lea rax, fcn.14000cd60
mov qword [rbp], rax
lea rax, vtable.type_info.0
or rax, 2
mov qword [rbp + 8], rax
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.1400136c0
nop
mov rax, qword [rbp + 8]
and eax, 3
sub rax, 1
je 0x140013645
cmp rax, 1
jne 0x14001366c
mov rax, qword [rbp]
mov rdx, qword [rax]
lea rax, [fcn.14000cd60]
lea rcx, [rbp - 0x30]
cmp rdx, rax
jne 0x140013663
call fcn.14000d700
jmp 0x14001366c
mov rax, qword [rbp]
mov rdx, qword [rax]
lea rax, [fcn.14000cd60]
mov rcx, qword [rbp - 8]
cmp rdx, rax
jne 0x140013663
call fcn.14000d700
jmp 0x14001366c
mov rax, rdx
call qword [case.0x14000cca5.0]
mov qword [rbp + 8], r12
mov rcx, r14
call fcn.140074f80
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140013688
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400fb890
add rsp, 0x210
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140103230
nop
int3