Function at 0x14000fae0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xba0]
sub rsp, 0xca0
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rbp + 0xb90], rax
mov r14, rdx
mov esi, r9d
mov rdx, r8
mov rbx, r8
mov rdi, rcx
call fcn.14000d7d0
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.1400139c0
xor edx, edx
lea rcx, [rbp + 0x350]
mov r8d, 0x208
call fcn.1400139c0
xor edx, edx
lea rcx, [rbp + 0x770]
mov r8d, 0x208
call fcn.1400139c0
xor edx, edx
lea rcx, [rbp + 0x560]
mov r8d, 0x208
call fcn.1400139c0
xor edx, edx
lea rcx, [rbp + 0x980]
mov r8d, 0x208
call fcn.1400139c0
mov edx, 0x104
lea rcx, [rbp + 0x770]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x30]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14000fba0
lea r8, [rbp + 0x770]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x14000fbc0
lea rcx, [rsp + 0x30]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14000fbe0
mov eax, dword [0x14002d894]
mov dword [rcx], eax
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rsp + rcx + 0x30]
mov word [rbp + rcx + 0x560], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14000fc00
lea rcx, [rsp + 0x30]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14000fc20
xor edx, edx
nop dword [rax]
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x14000fc30
lea rcx, [rsp + 0x30]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14000fc50
movsd xmm0, qword [str..ime]
movzx eax, word [0x140030028]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
mov rcx, rdi
call fcn.1400058b0
test eax, eax
je 0x14000fe06
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400059d0
mov r8d, 0x104
lea rdx, [rbp + 0x350]
mov rcx, rdi
call fcn.140005880
lea rcx, [rbp + 0x350]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14000fcb0
mov eax, dword [0x14002d894]
mov dword [rcx], eax
lea rcx, [rbp + 0x350]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14000fcd0
xor edx, edx
nop dword [rax]
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x14000fce0
lea rcx, [rbp + 0x350]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x14000fd00
movsd xmm0, qword [str..ime]
movzx eax, word [0x140030028]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
test esi, esi
je 0x14000fda5
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call fcn.1400139c0
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x560]
lea rdx, str._sregsvr32.exe__s__u__s
lea rcx, [rbp + 0x140]
call fcn.140001d50
lea rcx, [rbp + 0x140]
call fcn.1400030b0
lea r9, [rbp + 0x350]
lea r8, [rbp + 0x980]
lea rdx, str._sregsvr32.exe__s__u__s
lea rcx, [rbp + 0x140]
call fcn.140001d50
lea rcx, [rbp + 0x140]
call fcn.1400030b0
lea rdx, [rbp + 0x140]
lea rcx, str.UnRegisterIME_Cmd:_s
call fcn.140009470
lea rcx, [rbp + 0x350]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000fdbb
or edx, 0xffffffff
jmp 0x14000fdcf
lea rdx, [rbp + 0x350]
mov rcx, rdi
call fcn.14000d860
mov edx, 2
lea rcx, str.UnDeleteIme_Return:_d
call fcn.140009470
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000fdf7
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000d860
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.140005a00
jmp 0x14000fe78
test esi, esi
je 0x14000fe5c
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call fcn.1400139c0
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x560]
lea rdx, str._sregsvr32.exe__s__u__s
lea rcx, [rbp + 0x140]
call fcn.140001d50
lea rcx, [rbp + 0x140]
call fcn.1400030b0
lea rdx, [rbp + 0x140]
lea rcx, str.UnRegisterIME_regsvr:_s
call fcn.140009470
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000fe78
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000d860
test esi, esi
je 0x14000ff3e
lea rax, str.0804:8F233D5B_E44C_47DE_B1CC_2C92FEDE6CE17556EAD1_4C0B_4090_9994_A55D790D0752
movups xmm0, xmmword [rax]
lea rcx, [rbp + 0x140]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x80]
movups xmmword [rcx + 0x60], xmm0
movups xmm0, xmmword [rax + 0x70]
movups xmmword [rcx + 0x70], xmm0
movups xmm0, xmmword [rax + 0x90]
mov eax, dword [rax + 0xa0]
movups xmmword [rcx + 0x80], xmm1
movups xmmword [rcx + 0x90], xmm0
mov dword [rcx + 0xa0], eax
lea rcx, str.input.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14000ff37
lea rdx, str.InstallLayoutOrTip
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000ff37
mov edx, 1
lea rcx, [rbp + 0x140]
call rax
mov edx, eax
lea rcx, str.RegisterIME_InstallLayoutOrTip_return__d___
call fcn.140009470
mov eax, 1
jmp 0x14000ff4c
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.14000ff80
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.1400126d0
lea r11, [rsp + 0xca0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret