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

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x700
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400543a8]
xor rax, rsp
mov qword [rsp + 0x6f0], rax
mov rdi, rcx
call fcn.14002f798
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
call fcn.14002fe18
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftTPGLanguageModel
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x14002d732
lea rcx, [rsp + 0x58]
call fcn.14002f798
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, qword [rsp + 0x6f0]
xor rcx, rsp
call fcn.140031020
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov r14d, r15d
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
lea r8, [rsp + 0xc0]
mov edx, r14d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x14002d806
mov rbx, qword [rsp + 0x58]
mov rbx, qword [rbx]
cmp rbx, qword [rsp + 0x58]
je 0x14002d7f6
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14002f658
mov r8, qword [rsp + 0x48]
cmp r8, qword [rdi]
je 0x14002d7ab
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.14002f838
cmp byte [rbx + 0x19], r15b
jne 0x14002d77c
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r15b
jne 0x14002d7d8
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], r15b
jne 0x14002d77c
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r15b
je 0x14002d7c7
jmp 0x14002d77c
mov rax, qword [rbx + 8]
jmp 0x14002d7eb
cmp rbx, qword [rax + 0x10]
jne 0x14002d7f1
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r15b
je 0x14002d7de
mov rbx, rax
jmp 0x14002d77c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14002d6f4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002d911
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4e0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Resource0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14002d919
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], r15
mov word [rsp + 0x98], r15w
cmp word [rsp + 0xc0], r15w
jne 0x14002d8a0
mov r8, r15
jmp 0x14002d8b6
lea rax, [rsp + 0xc0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x14002d8ac
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call fcn.140027ef8
nop
mov al, byte [0x14005505c]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x98]
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.14002fe60
nop
cmp qword [rsp + 0xb0], 8
jb 0x14002d906
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
inc r14d
jmp 0x14002d735
movups xmm0, xmmword [str.Version0]
movaps xmmword [rsp + 0x2d0], xmm0
movzx eax, word [0x1400419d0]
mov word [rsp + 0x2e0], ax
xor edx, edx
mov r8d, 0x1f6
lea rcx, [rsp + 0x2e2]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DefaultVersion
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
mov ebx, r15d
test esi, esi
jne 0x14002d906
cmp ebx, 4
jae 0x14002d906
cmp ebx, dword [rsp + 0x68]
je 0x14002da84
lea eax, [rbx + 0x30]
mov word [rsp + 0x2de], ax
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x2d0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x14002da84
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], r15
mov word [rsp + 0x98], r15w
cmp word [rsp + 0xc0], r15w
jne 0x14002da1a
mov r8, r15
jmp 0x14002da30
lea rax, [rsp + 0xc0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x14002da26
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call fcn.140027ef8
nop
mov al, byte [0x14005505c]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x98]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x58]
call fcn.14002fe60
nop
cmp qword [rsp + 0xb0], 8
jb 0x14002da84
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
inc ebx
jmp 0x14002d985