Function at 0x14000f5d4
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 [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x6f0], rax
mov rdi, rcx
call fcn.1400114f8
xor r15d, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
call fcn.140012054
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]
test eax, eax
je 0x14000f68d
lea rcx, [rsp + 0x58]
call fcn.1400114f8
mov rcx, qword [rsp + 0x58]
call fcn.140035a2c
mov rcx, qword [rsp + 0x6f0]
xor rcx, rsp
call fcn.1400363b0
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.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000f761
mov rbx, qword [rsp + 0x58]
mov rbx, qword [rbx]
cmp rbx, qword [rsp + 0x58]
je 0x14000f751
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14001142c
mov r8, qword [rsp + 0x48]
cmp r8, qword [rdi]
je 0x14000f706
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140011594
cmp byte [rbx + 0x19], r15b
jne 0x14000f6d7
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r15b
jne 0x14000f733
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], r15b
jne 0x14000f6d7
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r15b
je 0x14000f722
jmp 0x14000f6d7
mov rax, qword [rbx + 8]
jmp 0x14000f746
cmp rbx, qword [rax + 0x10]
jne 0x14000f74c
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r15b
je 0x14000f739
mov rbx, rax
jmp 0x14000f6d7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000f650
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.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f86b
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.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000f873
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], r15
mov word [rsp + 0x98], r15w
cmp word [rsp + 0xc0], r15w
jne 0x14000f7fb
mov r8, r15
jmp 0x14000f811
lea rax, [rsp + 0xc0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x14000f807
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call fcn.140011c28
nop
mov al, byte [0x140051120]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x98]
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.14001209c
nop
cmp qword [rsp + 0xb0], 8
jb 0x14000f860
mov rcx, qword [rsp + 0x98]
call fcn.140035a2c
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r14d
jmp 0x14000f690
movups xmm0, xmmword [str.Version0]
movaps xmmword [rsp + 0x2d0], xmm0
movzx eax, word [0x14003ec48]
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.KERNEL32.dll_RegQueryValueExW]
mov esi, eax
mov ebx, r15d
test esi, esi
jne 0x14000f860
cmp ebx, 4
jae 0x14000f860
cmp ebx, dword [rsp + 0x68]
je 0x14000f9dd
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.KERNEL32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x14000f9dd
mov qword [rsp + 0xb0], 7
mov qword [rsp + 0xa8], r15
mov word [rsp + 0x98], r15w
cmp word [rsp + 0xc0], r15w
jne 0x14000f974
mov r8, r15
jmp 0x14000f98a
lea rax, [rsp + 0xc0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x14000f980
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x98]
call fcn.140011c28
nop
mov al, byte [0x140051120]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x98]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x58]
call fcn.14001209c
nop
cmp qword [rsp + 0xb0], 8
jb 0x14000f9dd
mov rcx, qword [rsp + 0x98]
call fcn.140035a2c
inc ebx
jmp 0x14000f8df