Function at 0x140034250
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x3b8
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x3d0]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x3d8]
call fcn.1400196d0
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14003441a
cmp qword [rsp + 0x40], 2
jne 0x140034308
mov rcx, qword [rsp + 0x3c8]
call fcn.14002cf60
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x3c8]
jmp 0x1400346a2
mov edx, 1
lea rcx, [rsp + 0x140]
call fcn.14003aba0
nop
lea rdx, str.Failed_to_query_Registry_value_size:
lea rcx, [rsp + 0x140]
call fcn.14001d2a0
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x3d8]
lea rcx, [rsp + 0x320]
call fcn.140042600
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
call fcn.140017ba0
lea rdx, [0x1400c61a0]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call fcn.14001eb80
nop
lea rcx, [rsp + 0x320]
call fcn.140019710
lea rdx, [rsp + 0x340]
lea rcx, [rsp + 0x140]
call fcn.14003aac0
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x110]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x110]
call fcn.140065380
nop
lea rcx, [rsp + 0x340]
call fcn.140019710
lea rcx, [rsp + 0x140]
call fcn.14002d320
nop
lea rcx, [rsp + 0x38]
call fcn.14002b960
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0xa0], rax
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0xf8]
call fcn.140039340
nop
cmp dword [rsp + 0x34], 0
je 0x140034634
lea rcx, [rsp + 0xf8]
call fcn.140039300
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0x3d8]
call fcn.1400196d0
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140034634
cmp qword [rsp + 0x40], 2
jne 0x14003450a
mov rcx, qword [rsp + 0x3c8]
call fcn.14002cf60
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0xf8]
call fcn.140039320
mov rax, qword [rsp + 0x3c8]
jmp 0x1400346a2
mov edx, 1
lea rcx, [rsp + 0x230]
call fcn.14003aba0
nop
lea rdx, str.Failed_to_query_Registry_value:
lea rcx, [rsp + 0x230]
call fcn.14001d2a0
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0x3d8]
lea rcx, [rsp + 0x360]
call fcn.140042600
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
call fcn.140017ba0
lea rdx, [0x1400c6160]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xd8]
call fcn.14001eb80
nop
lea rcx, [rsp + 0x360]
call fcn.140019710
lea rdx, [rsp + 0x380]
lea rcx, [rsp + 0x230]
call fcn.14003aac0
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x128]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0x128]
call fcn.140065380
nop
lea rcx, [rsp + 0x380]
call fcn.140019710
lea rcx, [rsp + 0x230]
call fcn.14002d320
nop
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0xf0], rax
cmp dword [rsp + 0x34], 0
jne 0x140034652
mov qword [rsp + 0x58], 0
jmp 0x140034664
lea rcx, [rsp + 0xf8]
call fcn.140039300
mov qword [rsp + 0x58], rax
mov r9, qword [rsp + 0xf0]
mov r8, qword [rsp + 0x58]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x3c8]
call fcn.14002cfa0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0xf8]
call fcn.140039320
mov rax, qword [rsp + 0x3c8]
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x3b8
ret