Function at 0x1400395d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x1400d2070]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x7c], 0
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140039673
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xd8]
lea r8, [0x1400b8b20]
mov edx, 0x323
lea rcx, [0x1400b8b80]
call fcn.140048c20
xor al, al
jmp 0x1400398f8
cmp dword [rsp + 0x78], 7
je 0x1400396a7
cmp dword [rsp + 0x78], 1
je 0x1400396a7
cmp dword [rsp + 0x78], 2
je 0x1400396a7
lea r8, str.RegQueryValueEx___type_is_unsupported
mov edx, 0x329
lea rcx, [0x1400b8c30]
call fcn.140048c20
xor al, al
jmp 0x1400398f8
cmp dword [rsp + 0x7c], 0
jne 0x1400396c2
mov rcx, qword [rsp + 0xe0]
call fcn.14003bcd0
mov al, 1
jmp 0x1400398f8
mov edx, 0x18
lea rcx, [rsp + 0x80]
call fcn.140001d80
lea rcx, [rsp + 0x80]
call fcn.14001e710
nop
mov eax, dword [rsp + 0x7c]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x80]
call fcn.14003bfa0
mov rax, qword [rsp + 0x48]
dec rax
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14001e610
xor ecx, ecx
mov word [rax], cx
lea rcx, [rsp + 0x80]
call fcn.140022bf0
lea rcx, [rsp + 0x7c]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140039794
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xd8]
lea r8, str.RegQueryValueEx_for___s__failed__error__u
mov edx, 0x339
lea rcx, [0x1400b8cf0]
call fcn.140048c20
mov edx, 0x18
lea rcx, [rsp + 0x98]
call fcn.140001d80
lea rcx, [rsp + 0x98]
call fcn.14001e710
nop
cmp dword [rsp + 0x78], 7
jne 0x14003987c
lea rcx, [rsp + 0x80]
call fcn.140022bf0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
test eax, eax
je 0x14003987a
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x68], rax
jae 0x14003987a
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
cmp word [rax + rcx*2], 0
jne 0x140039813
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
lea rax, [rax + rcx*2]
cmp rax, qword [rsp + 0x50]
jb 0x14003984a
jmp 0x14003987a
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x98]
call fcn.140039910
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
lea rax, [rax + rcx*2 + 2]
mov qword [rsp + 0x68], rax
jmp 0x1400397e4
jmp 0x1400398b6
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.14001e610
movzx eax, word [rax]
test eax, eax
je 0x1400398b6
lea rcx, [rsp + 0x80]
call fcn.140022bf0
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x98]
call fcn.140039ab0
lea rcx, [rsp + 0x98]
call fcn.140002280
mov rdx, rax
mov rcx, qword [rsp + 0xe0]
call fcn.14003bd60
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x98]
call fcn.14003bd40
nop
lea rcx, [rsp + 0x80]
call fcn.14001e640
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140069a00
add rsp, 0xc8
ret