Function at 0x140022f90
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, rdx
xor r15d, r15d
mov qword [rbp - 0x69], r15
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400230a3
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x14002308f
test rax, rax
je 0x140023087
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
lea rax, [0x140125cd8]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeInstaller::RegisterMyIme
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, rdi
call fcn.140007140
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call fcn.1400c2130
lea r9, str.SystemCurrentControlSetControlKeyboard_Layouts
mov r8, rdi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140015100
mov rcx, rdi
call fcn.1400bd2dc
test rbx, rbx
je 0x14002309c
mov rcx, rbx
call fcn.1400bd2dc
xor eax, eax
jmp 0x140023430
mov qword [rbp + 0x2f], 7
mov qword [rbp + 0x27], r15
mov word [rbp + 0x17], r15w
mov ebx, 0xe0200804
mov edi, r15d
nop dword [rax]
mov r9d, ebx
lea r8, str.SystemCurrentControlSetControlKeyboard_Layouts
lea rdx, str._s_08X
lea rcx, [rbp + 0x17]
call fcn.140061ab0
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 8
cmovae rdx, qword [rbp + 0x17]
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r15
mov word [rbp - 9], r15w
cmp word [rdx], 0
jne 0x140023104
mov r8, r15
jmp 0x14002311b
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140023110
lea rcx, [rbp - 9]
call fcn.140006900
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023163
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140023165
xor al, al
test al, al
sete sil
cmp qword [rbp + 0xf], 8
jb 0x14002317b
mov rcx, qword [rbp - 9]
call fcn.1400bd20c
test sil, sil
jne 0x140023193
add ebx, 0x10000
inc edi
cmp edi, 0x64
jl 0x1400230c0
jmp 0x140023197
test ebx, ebx
jne 0x1400231a9
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, r15d
jmp 0x14002341e
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], r15
mov word [rbp - 0x29], r15w
mov r8d, ebx
lea rdx, [0x140125ed8]
lea rcx, [rbp - 0x29]
call fcn.140061ab0
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rdx, qword [rbp - 0x29]
mov qword [rsp + 0x40], r15
lea rax, [rbp - 0x61]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400232cb
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x1400232ac
test rax, rax
je 0x1400232a4
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
lea rax, [0x140126490]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeInstaller::RegisterMyIme
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, rdi
call fcn.140007140
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call fcn.1400c2130
lea r9, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae r9, qword [rbp - 0x29]
mov r8, rdi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140015100
mov rcx, rdi
call fcn.1400bd2dc
test rbx, rbx
je 0x1400232b9
mov rcx, rbx
call fcn.1400bd2dc
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, r15d
jmp 0x1400233fd
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], r15
mov word [rbp - 0x49], r15w
mov r8d, 0xe
lea rdx, str.2345Pinyin.ime
lea rcx, [rbp - 0x49]
call fcn.140006900
nop
mov eax, dword [rbp - 0x39]
add eax, eax
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rcx, qword [rbp - 0x49]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Ime_File
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r8d, 9
lea rdx, str.kbdus.dll
lea rcx, [rbp - 0x49]
call fcn.140006900
mov eax, dword [rbp - 0x39]
add eax, eax
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rcx, qword [rbp - 0x49]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Layout_File
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rbp - 0x49]
cmp rax, r14
je 0x140023391
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r14
lea rcx, [rbp - 0x49]
call fcn.140006b90
mov eax, dword [rbp - 0x39]
add eax, eax
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rcx, qword [rbp - 0x49]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Layout_Text
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp - 0x31], 8
jb 0x1400233ec
mov rcx, qword [rbp - 0x49]
call fcn.1400bd20c
mov qword [rbp - 0x31], 7
mov qword [rbp - 0x39], r15
mov word [rbp - 0x49], r15w
cmp qword [rbp - 0x11], 8
jb 0x14002340d
mov rcx, qword [rbp - 0x29]
call fcn.1400bd20c
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], r15
mov word [rbp - 0x29], r15w
cmp qword [rbp + 0x2f], 8
jb 0x14002342e
mov rcx, qword [rbp + 0x17]
call fcn.1400bd20c
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400bcae0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret