Function at 0x14002e690
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x740
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400543a8]
xor rax, rsp
mov qword [rsp + 0x730], rax
mov rbx, rcx
mov eax, dword [0x140054ec0]
test al, 1
je 0x14002e6ec
lea r8, [0x14003e780]
lea rdx, [0x14003e6b8]
call fcn.140004574
mov eax, dword [0x140054ec0]
xor r13d, r13d
cmp qword [rbx + 0x10], r13
je 0x14002e714
test al, 1
je 0x14002e70c
lea r8, [0x14003e780]
lea rdx, [0x14003e6c8]
call fcn.140004574
mov eax, dword [rbx + 8]
jmp 0x14002f1e0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
call fcn.14002fe18
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.14002d678
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftTPGLanguageModel
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
or r12, 0xffffffffffffffff
test eax, eax
jne 0x14002ec6c
mov r15d, r13d
mov dword [rsp + 0x50], 0x104
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x310]
mov edx, r15d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov r12d, eax
test eax, eax
jne 0x14002ec51
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, [rsp + 0x310]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002ec51
xor edx, edx
lea r8d, [r12 + 0x48]
lea rcx, [rsp + 0x90]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x310]
call fcn.140030848
mov r14d, eax
test eax, eax
je 0x14002ec27
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.Proxy
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14002e851
cmp dword [rsp + 0x44], 2
je 0x14002ec27
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
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]
test eax, eax
jne 0x14002e899
cmp dword [rsp + 0x44], 2
je 0x14002ec27
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], r13
mov word [rsp + 0xe0], r13w
cmp word [rsp + 0x310], r13w
jne 0x14002e8c6
mov r8, r13
jmp 0x14002e8dc
lea rax, [rsp + 0x310]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r13w
jne 0x14002e8d2
lea rdx, [rsp + 0x310]
lea rcx, [rsp + 0xe0]
call fcn.140027ef8
mov rdi, qword [rsp + 0x60]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.14002f658
mov rsi, qword [rax]
cmp qword [rsp + 0xf8], 8
jb 0x14002e92c
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp rsi, rdi
je 0x14002ec27
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.TextPredictionCapabilities
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14002ec27
cmp dword [rsp + 0x44], 4
jne 0x14002ec27
mov eax, dword [rsp + 0x100]
test al, 0x18
je 0x14002ec27
mov word [rsp + 0xbc], 0x100
mov dword [rsp + 0xd4], eax
mov dword [rsp + 0xb8], r13d
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.Recognized_Languages
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x40]
cmp ecx, 0x80
ja 0x14002ea20
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.Recognized_Languages
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x40]
test eax, eax
jne 0x14002ead6
cmp ecx, 0x80
ja 0x14002ead6
cmp dword [rsp + 0x44], 3
jne 0x14002ead6
mov eax, r13d
lea rcx, [rsp + 0x100]
cmp word [rcx], r13w
je 0x14002ea5d
inc eax
add rcx, 2
cmp eax, 0x80
jb 0x14002ea4a
cmp eax, 0x80
jae 0x14002ec27
mov dword [rsp + 0xa0], eax
mov ecx, eax
mov eax, 4
mul rcx
mov r14, 0xffffffffffffffff
cmovo rax, r14
lea rdx, [0x14003e440]
mov rcx, rax
call fcn.140036804
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x14002ec2f
mov r8d, r13d
cmp dword [rsp + 0xa0], r13d
jbe 0x14002eb0a
mov edx, r8d
movzx ecx, word [rsp + rdx*2 + 0x100]
mov dword [rax + rdx*4], ecx
inc r8d
cmp r8d, dword [rsp + 0xa0]
jae 0x14002eb0a
mov rax, qword [rsp + 0xa8]
jmp 0x14002eab1
mov dword [rsp + 0xa0], 1
lea rdx, [0x14003e440]
mov ecx, 4
call fcn.140036804
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x14002ec2f
mov dword [rax], r14d
or r14, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x100]
lea rcx, str._windir__system32msTextPrediction.dll
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x14002ec27
lea esi, [rax + 1]
mov ecx, esi
mov eax, 2
mul rcx
cmovo rax, r14
lea rdx, [0x14003e440]
mov rcx, rax
call fcn.140036804
mov qword [rsp + 0xc0], rax
test rax, rax
je 0x14002ec27
mov r8d, esi
mov rdx, rax
lea rcx, str._windir__system32msTextPrediction.dll
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
jne 0x14002ec27
mov byte [rsp + 0xd0], 1
mov ecx, dword [rbx + 8]
inc ecx
mov eax, 0x48
mul rcx
cmovo rax, r14
lea rdx, [0x14003e440]
mov rcx, rax
call fcn.140036804
mov rdi, rax
test rax, rax
je 0x14002ec27
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x14002ebd5
mov ecx, dword [rbx + 8]
lea r8, [rcx + rcx*8]
shl r8, 3
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rbx + 0x10], rdi
mov eax, dword [rbx + 8]
lea rcx, [rax + rax*8]
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rdi + rcx*8], xmm0
movaps xmm1, xmmword [rsp + 0xa0]
movups xmmword [rdi + rcx*8 + 0x10], xmm1
movaps xmm0, xmmword [rsp + 0xb0]
movups xmmword [rdi + rcx*8 + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0xc0]
movups xmmword [rdi + rcx*8 + 0x30], xmm1
movsd xmm0, qword [rsp + 0xd0]
movsd qword [rdi + rcx*8 + 0x40], xmm0
inc dword [rbx + 8]
jmp 0x14002ec46
mov rax, qword [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
inc r15d
test r12d, r12d
je 0x14002e768
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
or r12, 0xffffffffffffffff
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftTPGSystem_Recognizers
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002f187
mov r14d, r13d
mov dword [rsp + 0x50], 0x104
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x520]
mov edx, r14d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov r15d, eax
test eax, eax
jne 0x14002f170
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, [rsp + 0x520]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002f170
xor edx, edx
lea r8d, [r15 + 0x48]
lea rcx, [rsp + 0x90]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.Recognizer_Capability_Flags
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14002f146
cmp dword [rsp + 0x44], 4
jne 0x14002f146
test dword [rsp + 0x100], 0x4000
je 0x14002f146
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x520]
call qword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x14002f146
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.ShapeTrainerImplicitUpdateCount
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14002edf5
cmp dword [rsp + 0x44], 4
jne 0x14002edf5
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0xb8], eax
jmp 0x14002edfd
mov dword [rsp + 0xb8], r13d
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.ShapeAdaptationSupport
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14002ee53
cmp dword [rsp + 0x44], 4
jne 0x14002ee53
cmp dword [rsp + 0x100], 1
sete byte [rsp + 0xbc]
jmp 0x14002ee5b
mov byte [rsp + 0xbc], r13b
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.TextAdaptationSupport
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14002eeb1
cmp dword [rsp + 0x44], 4
jne 0x14002eeb1
cmp dword [rsp + 0x100], 1
sete byte [rsp + 0xbd]
jmp 0x14002eeb9
mov byte [rsp + 0xbd], r13b
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.Recognized_Languages
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x40]
cmp ecx, 0x80
ja 0x14002ef30
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.Recognized_Languages
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x40]
test eax, eax
jne 0x14002f146
cmp ecx, 0x80
ja 0x14002f146
cmp dword [rsp + 0x44], 3
jne 0x14002f146
mov eax, r13d
lea rcx, [rsp + 0x100]
cmp word [rcx], r13w
je 0x14002ef6d
inc eax
add rcx, 2
cmp eax, 0x80
jb 0x14002ef5a
cmp eax, 0x80
jae 0x14002f146
mov dword [rsp + 0xa0], eax
mov ecx, eax
mov eax, 4
mul rcx
cmovo rax, r12
lea rdx, [0x14003e440]
mov rcx, rax
call fcn.140036804
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x14002f14e
mov r8d, r13d
cmp dword [rsp + 0xa0], r13d
jbe 0x14002efdf
mov edx, r8d
movzx ecx, word [rsp + rdx*2 + 0x100]
mov dword [rax + rdx*4], ecx
inc r8d
cmp r8d, dword [rsp + 0xa0]
jae 0x14002efdf
mov rax, qword [rsp + 0xa8]
jmp 0x14002efba
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.Recognizer_dll
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14002f146
mov eax, dword [rsp + 0x44]
dec eax
cmp eax, 1
ja 0x14002f146
xor r8d, r8d
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x14002f146
lea esi, [rax + 1]
mov ecx, esi
mov eax, 2
mul rcx
cmovo rax, r12
lea rdx, [0x14003e440]
mov rcx, rax
call fcn.140036804
mov qword [rsp + 0xc0], rax
test rax, rax
je 0x14002f146
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
jne 0x14002f146
mov ecx, dword [rbx + 8]
inc ecx
mov eax, 0x48
mul rcx
cmovo rax, r12
lea rdx, [0x14003e440]
mov rcx, rax
call fcn.140036804
mov rdi, rax
test rax, rax
je 0x14002f146
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x14002f0f4
mov ecx, dword [rbx + 8]
lea r8, [rcx + rcx*8]
shl r8, 3
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rbx + 0x10], rdi
mov eax, dword [rbx + 8]
lea rcx, [rax + rax*8]
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rdi + rcx*8], xmm0
movaps xmm1, xmmword [rsp + 0xa0]
movups xmmword [rdi + rcx*8 + 0x10], xmm1
movaps xmm0, xmmword [rsp + 0xb0]
movups xmmword [rdi + rcx*8 + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0xc0]
movups xmmword [rdi + rcx*8 + 0x30], xmm1
movsd xmm0, qword [rsp + 0xd0]
movsd qword [rdi + rcx*8 + 0x40], xmm0
inc dword [rbx + 8]
jmp 0x14002f165
mov rax, qword [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
inc r14d
test r15d, r15d
je 0x14002ec9e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [rbx + 8], r13d
jbe 0x14002f1aa
mov word [rbx + 0x20], r13w
lea r8, [rbx + 0x30]
lea rdx, [rbx + 0x28]
mov rcx, rbx
call fcn.14002f500
mov rcx, rbx
call fcn.14002f3fc
test byte [0x140054ec0], 1
je 0x14002f1c6
lea r8, [0x14003e780]
lea rdx, [0x14003e6c8]
call fcn.140004574
mov ebx, dword [rbx + 8]
lea rcx, [rsp + 0x60]
call fcn.14002f798
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
mov rcx, qword [rsp + 0x730]
xor rcx, rsp
call fcn.140031020
lea r11, [rsp + 0x740]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret