Function at 0x14003a1f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x1400d2070]
xor rax, rsp
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xf0], 0
je 0x14003a250
mov rcx, qword [rsp + 0xf8]
call fcn.14000cf90
movzx eax, al
test eax, eax
jne 0x14003a250
mov rcx, qword [rsp + 0x100]
call fcn.14000cf90
movzx eax, al
test eax, eax
je 0x14003a257
xor al, al
jmp 0x14003a5e2
mov dword [rsp + 0xbc], 0
mov dword [rsp + 0xb8], 0
mov rcx, qword [rsp + 0xf8]
call fcn.140003970
lea rcx, [rsp + 0xbc]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xb8]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14003a2f8
mov rcx, qword [rsp + 0xf8]
call fcn.140003970
mov ecx, dword [rsp + 0x38]
mov dword [rsp + 0x20], ecx
mov r9, rax
lea r8, [0x1400b8fa0]
mov edx, 0x3a8
lea rcx, [0x1400b8ff0]
call fcn.140048c20
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x14003a5e2
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 1
je 0x14003a31d
cmp dword [rsp + 0x40], 2
je 0x14003a31d
cmp dword [rsp + 0x40], 7
je 0x14003a31d
jmp 0x14003a5e0
mov edx, 0x18
lea rcx, [rsp + 0xc0]
call fcn.140001d80
lea rcx, [rsp + 0x3c]
call fcn.140002280
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0xbc]
inc eax
mov eax, eax
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xc0]
call fcn.14001e660
nop
lea rcx, [rsp + 0xc0]
call fcn.140022bf0
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xf8]
call fcn.140003970
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0xbc]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb8]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14003a426
mov rcx, qword [rsp + 0xf8]
call fcn.140003970
mov ecx, dword [rsp + 0x38]
mov dword [rsp + 0x20], ecx
mov r9, rax
lea r8, str.Cant_read_string___s___error__d
mov edx, 0x3b6
lea rcx, [0x1400b90a0]
call fcn.140048c20
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0xc0]
call fcn.14001e640
movzx eax, byte [rsp + 0x30]
jmp 0x14003a5e2
cmp dword [rsp + 0xb8], 7
jne 0x14003a567
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0xc0]
call fcn.140022bf0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
cmp word [rax + rcx*2], 0
jne 0x14003a45b
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
jmp 0x14003a4de
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
lea rax, [rax + rcx + 1]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0xc0]
call fcn.140022bf0
mov rcx, qword [rsp + 0x58]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
cmp word [rax + rcx*2], 0
jne 0x14003a4bb
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jbe 0x14003a565
lea rcx, [rsp + 0xc0]
call fcn.140022bf0
mov rcx, qword [rsp + 0x58]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x100]
call fcn.140003970
mov qword [rsp + 0xa0], rax
movzx r8d, byte [rsp + 0x108]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.140049830
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x14003a560
mov byte [rsp + 0x32], 1
lea rcx, [rsp + 0xc0]
call fcn.14001e640
movzx eax, byte [rsp + 0x32]
jmp 0x14003a5e2
jmp 0x14003a480
jmp 0x14003a5c7
lea rcx, [rsp + 0xc0]
call fcn.140022bf0
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0x100]
call fcn.140003970
mov qword [rsp + 0xb0], rax
movzx r8d, byte [rsp + 0x108]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
call fcn.140049830
mov byte [rsp + 0x33], al
lea rcx, [rsp + 0xc0]
call fcn.14001e640
movzx eax, byte [rsp + 0x33]
jmp 0x14003a5e2
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0xc0]
call fcn.14001e640
movzx eax, byte [rsp + 0x34]
jmp 0x14003a5e2
xor al, al
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140069a00
add rsp, 0xe8
ret