Function at 0x140003fc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x5b0
mov rbp, rcx
mov rbx, r8
mov rsi, rdx
lea rcx, [rsp + 0x71]
xor edx, edx
mov r8d, 0x101
mov r12, r9
mov byte [rsp + 0x70], 0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x64]
lea rdx, str.PIDKEY
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x60], 0xff
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140004044
mov eax, dword [rsp + 0x60]
add eax, 0xffffffff
mov byte [rsp + rax + 0x70], 0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp rcx, 0x19
jne 0x1400043af
mov word [rsp + 0x188], ax
mov word [rsp + 0x18a], ax
lea rax, [0x140029610]
lea rcx, [rsp + 0x188]
xor edi, edi
xor edx, edx
mov r8d, 0x428
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x18c], edi
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x211]
lea rdx, str.ProductID
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x60], 0x80
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400040e9
mov eax, dword [rsp + 0x60]
add eax, 0xffffffff
mov byte [rsp + rax + 0x211], dil
mov rax, qword [str.XXXXX_XXXXX_XXXXX_XXXXX_XXXXX]
lea rcx, [rsp + 0x292]
lea rdx, [rsp + 0x292]
mov qword [rcx], rax
mov rax, qword [0x140029050]
xor r9d, r9d
mov qword [rcx + 8], rax
mov rax, qword [0x140029058]
xor r8d, r8d
mov qword [rcx + 0x10], rax
mov eax, dword [0x140029060]
mov dword [rcx + 0x18], eax
movzx eax, word [0x140029064]
mov word [rcx + 0x1c], ax
lea rcx, [rsp + 0x70]
mov eax, dword [rcx]
mov dword [rdx], eax
movzx eax, byte [rcx + 4]
lea rcx, [rsp + 0x75]
mov byte [rdx + 4], al
mov eax, dword [rcx]
lea rdx, [rsp + 0x298]
mov dword [rdx], eax
movzx eax, byte [rcx + 4]
lea rcx, [rsp + 0x7a]
mov byte [rdx + 4], al
mov eax, dword [rcx]
lea rdx, [rsp + 0x29e]
mov dword [rdx], eax
movzx eax, byte [rcx + 4]
lea rcx, [rsp + 0x7f]
mov byte [rdx + 4], al
mov eax, dword [rcx]
lea rdx, [rsp + 0x2a4]
mov dword [rdx], eax
movzx eax, byte [rcx + 4]
lea rcx, [rsp + 0x84]
mov byte [rdx + 4], al
mov eax, dword [rcx]
lea rdx, [rsp + 0x2aa]
mov dword [rdx], eax
movzx eax, byte [rcx + 4]
mov rcx, rsi
mov byte [rdx + 4], al
lea rax, [rsp + 0x59c]
xor edx, edx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdx, [rbp + 0xc78]
mov rdi, rdx
mov esi, 0x7f
mov dword [rsp + 0x5ac], 6
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp ecx, 0x80
cmovge ecx, esi
movsxd rdi, ecx
lea rcx, [rsp + 0x313]
mov r8, rdi
call sub.msvcrt.dll_memcpy
or rcx, 0xffffffffffffffff
mov byte [rsp + rdi + 0x313], 0
xor eax, eax
mov rdi, r12
repne scasb al, byte [rdi]
mov eax, 0x103
not rcx
sub rcx, 1
cmp ecx, 0x104
cmovge ecx, eax
movsxd rdi, ecx
lea rcx, [rsp + 0x394]
mov r8, rdi
mov rdx, r12
call sub.msvcrt.dll_memcpy
lea rcx, [0x14002fed0]
mov edx, 0x89a
mov byte [rsp + rdi + 0x394], 0
call fcn.14001bf40
or rcx, 0xffffffffffffffff
mov rdx, rax
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp ecx, 0x80
cmovge ecx, esi
movsxd rdi, ecx
lea rcx, [rsp + 0x190]
mov r8, rdi
call sub.msvcrt.dll_memcpy
or rcx, 0xffffffffffffffff
xor eax, eax
mov byte [rsp + rdi + 0x190], 0
lea rdi, [rsp + 0x190]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
lea eax, [rcx + 2]
cmp eax, 0x80
jge 0x1400042ff
movsxd rax, ecx
or rcx, 0xffffffffffffffff
lea rdi, [rsp + rax + 0x190]
xor eax, eax
repne scasb al, byte [rdi]
movzx eax, word [0x140029068]
mov word [rdi - 1], ax
movzx eax, byte [0x14002906a]
mov byte [rdi + 1], al
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x190]
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
add ecx, edx
cmp ecx, 0x80
jge 0x140004360
movsxd rax, edx
or rcx, 0xffffffffffffffff
lea rdi, [rsp + rax + 0x190]
xor eax, eax
repne scasb al, byte [rdi]
xor ecx, ecx
nop
nop
nop
movzx eax, byte [rbx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x140004350
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x190]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
lea eax, [rcx + 1]
cmp eax, 0x80
jge 0x14000439f
movsxd rax, ecx
or rcx, 0xffffffffffffffff
lea rdi, [rsp + rax + 0x190]
xor eax, eax
repne scasb al, byte [rdi]
movzx eax, word [0x14002906c]
mov word [rdi - 1], ax
lea rdx, [rsp + 0x180]
mov rcx, rbp
call fcn.140016c40
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret