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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x6f0
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov rdi, rcx
call fcn.140016188
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
call fcn.140015c9c
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.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140015633
lea rcx, [rsp + 0x58]
call fcn.140016188
mov rcx, qword [rsp + 0x58]
call fcn.140001e40
nop
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.1400027f0
lea r11, [rsp + 0x6f0]
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 + 0xb0]
mov edx, r14d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14001572f
mov rbx, qword [rsp + 0x58]
mov rbx, qword [rbx]
cmp rbx, qword [rsp + 0x58]
jne 0x1400156b6
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
lea rcx, [rsp + 0x58]
call fcn.140016188
mov rcx, qword [rsp + 0x58]
call fcn.140001e40
nop
jmp 0x140015609
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1400167ac
mov r8, qword [rsp + 0x48]
cmp r8, qword [rdi]
je 0x1400156de
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140016238
cmp byte [rbx + 0x19], r15b
jne 0x140015683
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r15b
jne 0x14001570e
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], r15b
jne 0x140015683
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r15b
je 0x1400156fa
jmp 0x140015683
mov rax, qword [rbx + 8]
jmp 0x140015721
cmp rbx, qword [rax + 0x10]
jne 0x140015727
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r15b
je 0x140015714
mov rbx, rax
jmp 0x140015683
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001584b
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4d0]
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]
nop dword [rax + rax]
test eax, eax
jne 0x140015853
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], r15
mov word [rsp + 0x90], r15w
cmp word [rsp + 0xb0], r15w
jne 0x1400157d5
mov r8, r15
jmp 0x1400157eb
lea rax, [rsp + 0xb0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x1400157e1
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x90]
call fcn.14001606c
nop
mov al, byte [0x140051ea8]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14001386c
nop
cmp qword [rsp + 0xa8], 8
jb 0x14001583a
mov rcx, qword [rsp + 0x90]
call fcn.140001e40
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
inc r14d
jmp 0x140015636
movups xmm0, xmmword [str.Version0]
movaps xmmword [rsp + 0x2c0], xmm0
movzx eax, word [0x1400440c8]
mov word [rsp + 0x2d0], ax
xor edx, edx
mov r8d, 0x1f6
lea rcx, [rsp + 0x2d2]
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]
nop dword [rax + rax]
mov esi, eax
mov ebx, r15d
test esi, esi
jne 0x14001583a
cmp ebx, 4
jae 0x14001583a
cmp ebx, dword [rsp + 0x68]
je 0x1400159c9
lea eax, [rbx + 0x30]
mov word [rsp + 0x2ce], ax
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x2c0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x1400159c9
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], r15
mov word [rsp + 0x90], r15w
cmp word [rsp + 0xb0], r15w
jne 0x140015960
mov r8, r15
jmp 0x140015976
lea rax, [rsp + 0xb0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x14001596c
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x90]
call fcn.14001606c
nop
mov al, byte [0x140051ea8]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x90]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.14001386c
nop
cmp qword [rsp + 0xa8], 8
jb 0x1400159c9
mov rcx, qword [rsp + 0x90]
call fcn.140001e40
inc ebx
jmp 0x1400158c5