Function at 0x1400106c0
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 [0x14004a1a0]
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.14000e3b0
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140017c40
xor edx, edx
lea rcx, [rbp + 0x350]
mov r8d, 0x208
call fcn.140017c40
xor edx, edx
lea rcx, [rbp + 0x770]
mov r8d, 0x208
call fcn.140017c40
xor edx, edx
lea rcx, [rbp + 0x560]
mov r8d, 0x208
call fcn.140017c40
xor edx, edx
lea rcx, [rbp + 0x980]
mov r8d, 0x208
call fcn.140017c40
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 0x140010780
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 0x1400107a0
lea rcx, [rsp + 0x30]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400107c0
mov eax, dword [0x140032be0]
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 0x1400107e0
lea rcx, [rsp + 0x30]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140010800
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 0x140010810
lea rcx, [rsp + 0x30]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140010830
movsd xmm0, qword [str..ime]
movzx eax, word [0x140035b08]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
mov rcx, rdi
call fcn.1400145c4
test eax, eax
je 0x1400109e6
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140014724
mov r8d, 0x104
lea rdx, [rbp + 0x350]
mov rcx, rdi
call fcn.140014594
lea rcx, [rbp + 0x350]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140010890
mov eax, dword [0x140032be0]
mov dword [rcx], eax
lea rcx, [rbp + 0x350]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400108b0
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 0x1400108c0
lea rcx, [rbp + 0x350]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400108e0
movsd xmm0, qword [str..ime]
movzx eax, word [0x140035b08]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
test esi, esi
je 0x140010985
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call fcn.140017c40
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x560]
lea rdx, str._sregsvr32.exe__s__u__s
lea rcx, [rbp + 0x140]
call fcn.140008050
lea rcx, [rbp + 0x140]
call fcn.14000bd20
lea r9, [rbp + 0x350]
lea r8, [rbp + 0x980]
lea rdx, str._sregsvr32.exe__s__u__s
lea rcx, [rbp + 0x140]
call fcn.140008050
lea rcx, [rbp + 0x140]
call fcn.14000bd20
lea rdx, [rbp + 0x140]
lea rcx, str.UnRegisterIME_Cmd:_s
call fcn.140010cb0
lea rcx, [rbp + 0x350]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001099b
or edx, 0xffffffff
jmp 0x1400109af
lea rdx, [rbp + 0x350]
mov rcx, rdi
call fcn.14000e440
mov edx, 2
lea rcx, str.UnDeleteIme_Return:_d
call fcn.140010cb0
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400109d7
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e440
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.14001474c
jmp 0x140010a58
test esi, esi
je 0x140010a3c
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call fcn.140017c40
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x560]
lea rdx, str._sregsvr32.exe__s__u__s
lea rcx, [rbp + 0x140]
call fcn.140008050
lea rcx, [rbp + 0x140]
call fcn.14000bd20
lea rdx, [rbp + 0x140]
lea rcx, str.UnRegisterIME_regsvr:_s
call fcn.140010cb0
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140010a58
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e440
test esi, esi
je 0x140010b1e
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 0x140010b17
lea rdx, str.InstallLayoutOrTip
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140010b17
mov edx, 1
lea rcx, [rbp + 0x140]
call rax
mov edx, eax
lea rcx, str.RegisterIME_InstallLayoutOrTip_return__d___
call fcn.140010cb0
mov eax, 1
jmp 0x140010b2c
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.140010b60
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.140013270
lea r11, [rsp + 0xca0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret