Function at 0x14001f4e0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov rsi, rcx
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x14001f5ae
test rax, rax
je 0x14001f5a6
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
lea rax, [0x1401259f8]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
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
mov r8, rdi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140014f60
mov rcx, rdi
call fcn.1400bd2dc
test rbx, rbx
je 0x14001f5bb
mov rcx, rbx
call fcn.1400bd2dc
lea rdx, [rbp - 0x40]
call fcn.140025d50
nop
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x14001f65b
test rax, rax
je 0x14001f653
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
lea rax, [0x140125a70]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
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
mov eax, dword [rsi + 0x38]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp - 0x3c]
mov r8, rdi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140014f60
mov rcx, rdi
call fcn.1400bd2dc
test rbx, rbx
je 0x14001f668
mov rcx, rbx
call fcn.1400bd2dc
mov eax, dword [rsi + 0x38]
cmp dword [rbp - 0x3c], eax
sete al
mov byte [rsi + 0x98], al
xor r12d, r12d
test al, al
jne 0x14001f712
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x1400201da
test rax, rax
je 0x1400201d2
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
lea rax, str.S_MR
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
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
mov r8, rdi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140014f60
jmp 0x1400201d2
mov dword [rsp + 0x30], r12d
lea rcx, [rbp + 0x10]
call fcn.1400685a0
mov r13d, 0x804
lea r15, [0x140125b40]
cmp dword [rbp + 0x14], 6
jb 0x14001fc08
mov r8d, dword [rsi + 0x38]
lea rdx, [rsi + 0x50]
call fcn.14002aa60
lea rdx, [rsi + 0x50]
mov rcx, rsi
call fcn.1400208c0
mov dword [rsp + 0x30], eax
lea ecx, [r13 - 4]
call fcn.1400bbc88
mov rdi, rax
lea ecx, [r13 - 4]
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x14001f7de
test rax, rax
je 0x14001f7d6
xor edx, edx
lea r8d, [r13 - 4]
mov rcx, rdi
call fcn.1400c2130
lea rax, [0x140125ae0]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, rdi
call fcn.140007140
xor edx, edx
lea r8d, [r13 - 4]
mov rcx, rbx
call fcn.1400c2130
mov r9d, dword [rsp + 0x30]
mov r8, rdi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140014f60
mov rcx, rdi
call fcn.1400bd2dc
test rbx, rbx
je 0x14001f7eb
mov rcx, rbx
call fcn.1400bd2dc
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14001f84e
mov r8, r12
mov r9, qword [rsi + 0x50]
mov rcx, qword [rsi + 0x58]
sub rcx, r9
movabs rax, 0xe38e38e38e38e39
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14001f84b
mov rcx, r12
mov eax, dword [rcx + r9 + 4]
test eax, eax
je 0x14001f832
movzx eax, ax
cmp eax, r13d
je 0x14001f840
inc r8
add rcx, 0x48
cmp r8, rdx
jae 0x14001f84b
jmp 0x14001f821
lea rax, [r8 + r8*8]
mov eax, dword [r9 + rax*8 + 4]
jmp 0x14001f84e
mov eax, r12d
mov dword [rsp + 0x30], eax
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x14001f8db
test rax, rax
je 0x14001f8d3
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
mov qword [rsp + 0x20], r15
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
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
mov r9d, dword [rsp + 0x30]
mov r8, rdi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140014f60
mov rcx, rdi
call fcn.1400bd2dc
test rbx, rbx
je 0x14001f8e8
mov rcx, rbx
call fcn.1400bd2dc
cmp dword [rsp + 0x30], r12d
jne 0x14001f998
mov dword [rsp + 0x30], 0x8040804
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x14001f98b
test rax, rax
je 0x14001f983
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
lea rax, [0x140125ba0]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
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
mov r9d, dword [rsp + 0x30]
mov r8, rdi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140014f60
mov rcx, rdi
call fcn.1400bd2dc
test rbx, rbx
je 0x14001f998
mov rcx, rbx
call fcn.1400bd2dc
mov r8d, dword [rsp + 0x30]
lea rdx, [rsi + 0x50]
call fcn.14002aa60
mov qword [rsp + 0x70], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r12
mov word [rbp - 0x68], r12w
mov r8d, 0x26
lea rdx, str.00000000_0000_0000_0000_000000000000
lea rcx, [rsp + 0x78]
call fcn.140006900
mov r8d, 0x26
lea rdx, str.00000000_0000_0000_0000_000000000000
lea rcx, [rbp - 0x68]
call fcn.140006900
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x74], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8, qword [rsi + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rsi + 0x50]
call fcn.1400211d0
lea r8, [rsi + 0x50]
call fcn.140026cc0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
lea rax, str.34745C63_B2F0_4784_8B67_5E12C8701A31
mov qword [rsp + 0x20], rax
mov r9d, r13d
lea r8, str.SoftwareMicrosoftCTFAssemblies
lea rdx, str._s0x_08x_s
lea rcx, [rsp + 0x50]
call fcn.140061ab0
mov qword [rsp + 0x38], r12
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001faf4
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.KeyboardLayout
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001fb9e
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x14001fb90
test rax, rax
je 0x14001fb88
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
lea rax, [0x140125cd8]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
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, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r9, qword [rsp + 0x50]
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 0x14001fb9e
mov rcx, rbx
call fcn.1400bd2dc
nop
cmp qword [rsp + 0x68], 8
jb 0x14001fbb0
mov rcx, qword [rsp + 0x50]
call fcn.1400bd20c
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
cmp qword [rbp - 0x50], 8
jb 0x14001fbd4
mov rcx, qword [rbp - 0x68]
call fcn.1400bd20c
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r12
mov word [rbp - 0x68], r12w
cmp qword [rbp - 0x70], 8
jb 0x14001fbf6
mov rcx, qword [rsp + 0x78]
call fcn.1400bd20c
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x14001fc93
test rax, rax
je 0x14001fc8b
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
lea rax, [0x140125cf0]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
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
mov r8, rdi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140014f60
mov rcx, rdi
call fcn.1400bd2dc
test rbx, rbx
je 0x14001fca0
mov rcx, rbx
call fcn.1400bd2dc
mov rax, qword [rsi + 0x20]
sub rax, qword [rsi + 0x18]
sar rax, 2
test rax, rax
je 0x140020059
mov rcx, qword [rsi + 0x18]
mov eax, dword [rsi + 0x38]
cmp dword [rcx], eax
jne 0x140020059
mov ecx, 0x800
call fcn.1400bbc88
mov r14, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
test r14, r14
je 0x14001fd4f
test rax, rax
je 0x14001fd47
xor edx, edx
mov r8d, 0x800
mov rcx, r14
call fcn.1400c2130
lea rax, [0x140125d10]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, r14
call fcn.140007140
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
mov r8, r14
mov edx, 0x400
mov rcx, rdi
call fcn.140007140
mov rcx, rdi
call fcn.140014f60
mov rcx, r14
call fcn.1400bd2dc
test rdi, rdi
je 0x14001fd5c
mov rcx, rdi
call fcn.1400bd2dc
mov rcx, qword [rsi + 0x18]
mov r8, qword [rsi + 0x20]
lea rdx, [rcx + 4]
sub r8, rdx
sar r8, 2
lea r8, [r8*4]
call fcn.1400bcb10
add qword [rsi + 0x20], 0xfffffffffffffffc
mov r15, qword [rsi + 0x20]
sub r15, qword [rsi + 0x18]
sar r15, 2
mov r8d, dword [rsp + 0x30]
test r8d, r8d
jne 0x140020004
lea rdx, [rsi + 0x18]
mov rcx, rsi
call fcn.140020680
mov dword [rsp + 0x30], eax
mov ecx, 0x800
call fcn.1400bbc88
mov r14, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
test r14, r14
je 0x14001fe3b
test rax, rax
je 0x14001fe33
xor edx, edx
mov r8d, 0x800
mov rcx, r14
call fcn.1400c2130
lea rax, [0x140125d40]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, r14
call fcn.140007140
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
mov r9d, dword [rsp + 0x30]
mov r8, r14
mov edx, 0x400
mov rcx, rdi
call fcn.140007140
mov rcx, rdi
call fcn.140014f60
mov rcx, r14
call fcn.1400bd2dc
test rdi, rdi
je 0x14001fe48
mov rcx, rdi
call fcn.1400bd2dc
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14001fe8d
mov rcx, r12
mov r8, qword [rsi + 0x18]
mov rdx, qword [rsi + 0x20]
sub rdx, r8
sar rdx, 2
test rdx, rdx
je 0x14001fe8a
nop word [rax + rax]
movzx eax, word [r8 + rcx*4]
cmp eax, r13d
je 0x14001fe84
inc rcx
cmp rcx, rdx
jb 0x14001fe70
jmp 0x14001fe8a
mov eax, dword [r8 + rcx*4]
jmp 0x14001fe8d
mov eax, r12d
mov dword [rsp + 0x30], eax
mov ecx, 0x800
call fcn.1400bbc88
mov r14, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
test r14, r14
je 0x14001ff21
test rax, rax
je 0x14001ff19
xor edx, edx
mov r8d, 0x800
mov rcx, r14
call fcn.1400c2130
lea rax, [0x140125b40]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, r14
call fcn.140007140
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
mov r9d, dword [rsp + 0x30]
mov r8, r14
mov edx, 0x400
mov rcx, rdi
call fcn.140007140
mov rcx, rdi
call fcn.140014f60
mov rcx, r14
call fcn.1400bd2dc
test rdi, rdi
je 0x14001ff2e
mov rcx, rdi
call fcn.1400bd2dc
mov r8d, dword [rsp + 0x30]
test r8d, r8d
jne 0x140020004
lea rax, [0x1400f7404]
mov qword [rsp + 0x20], rax
mov r8, qword [rsi + 0x18]
lea rdx, [rsp + 0x40]
lea rcx, [rsi + 0x18]
call fcn.140020f10
mov dword [rsp + 0x30], 0x8040804
mov ecx, 0x800
call fcn.1400bbc88
mov r14, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
test r14, r14
je 0x14001fff2
test rax, rax
je 0x14001ffea
xor edx, edx
mov r8d, 0x800
mov rcx, r14
call fcn.1400c2130
lea rax, [0x140125ba0]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
lea r8, str._s__:__s
mov edx, 0x400
mov rcx, r14
call fcn.140007140
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
mov r9d, dword [rsp + 0x30]
mov r8, r14
mov edx, 0x400
mov rcx, rdi
call fcn.140007140
mov rcx, rdi
call fcn.140014f60
mov rcx, r14
call fcn.1400bd2dc
test rdi, rdi
je 0x14001ffff
mov rcx, rdi
call fcn.1400bd2dc
mov r8d, dword [rsp + 0x30]
cmp r8d, 0x8040804
cmove r8d, r13d
mov dword [rsp + 0x38], r8d
lea rdx, [rsi + 0x18]
call fcn.14002aa10
mov rax, qword [rsi + 0x20]
sub rax, qword [rsi + 0x18]
sar rax, 2
cmp r15d, eax
sete al
mov byte [rsi + 0x99], al
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r8, qword [rsi + 0x18]
lea rdx, [rsp + 0x40]
lea rcx, [rsi + 0x18]
call fcn.140020f10
mov rcx, rsi
call fcn.140026bb0
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400201e8
cmp byte [rsi + 0x99], 0
je 0x14002007e
cmp eax, 0x8040804
jne 0x14002007e
call fcn.140020980
mov dword [rsp + 0x30], eax
cdqe
mov qword [rsp + 0x38], rax
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x140020115
test rax, rax
je 0x14002010d
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
lea rax, [0x140125da0]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
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
mov r9d, dword [rsp + 0x30]
mov r8, rdi
mov edx, 0x400
mov rcx, rbx
call fcn.140007140
mov rcx, rbx
call fcn.140014f60
mov rcx, rdi
call fcn.1400bd2dc
test rbx, rbx
je 0x140020122
mov rcx, rbx
call fcn.1400bd2dc
mov r9d, 2
lea r8, [rsp + 0x38]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
jne 0x1400201e8
mov ecx, 0x800
call fcn.1400bbc88
mov rdi, rax
mov ecx, 0x800
call fcn.1400bbc88
mov rbx, rax
test rdi, rdi
je 0x1400201da
test rax, rax
je 0x1400201d2
xor edx, edx
mov r8d, 0x800
mov rcx, rdi
call fcn.1400c2130
lea rax, [0x140125df0]
mov qword [rsp + 0x20], rax
lea r9, str.RC::RCInputImeUninstaller::ChangeDefaultInput
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
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x30]
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 0x1400201e8
mov rcx, rbx
call fcn.1400bd2dc
nop
cmp qword [rbp], 8
jb 0x1400201f8
mov rcx, qword [rbp - 0x18]
call fcn.1400bd20c
mov qword [rbp], 7
mov qword [rbp - 8], r12
mov word [rbp - 0x18], r12w
cmp qword [rbp - 0x20], 8
jb 0x140020219
mov rcx, qword [rbp - 0x38]
call fcn.1400bd20c
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r12
mov word [rbp - 0x38], r12w
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1400bcae0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret