Function at 0x140010660
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.14000e350
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140017bf0
xor edx, edx
lea rcx, [rbp + 0x350]
mov r8d, 0x208
call fcn.140017bf0
xor edx, edx
lea rcx, [rbp + 0x770]
mov r8d, 0x208
call fcn.140017bf0
xor edx, edx
lea rcx, [rbp + 0x560]
mov r8d, 0x208
call fcn.140017bf0
xor edx, edx
lea rcx, [rbp + 0x980]
mov r8d, 0x208
call fcn.140017bf0
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 0x140010720
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 0x140010740
lea rcx, [rsp + 0x30]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140010760
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 0x140010780
lea rcx, [rsp + 0x30]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400107a0
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 0x1400107b0
lea rcx, [rsp + 0x30]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400107d0
movsd xmm0, qword [str..ime]
movzx eax, word [0x140035af8]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
mov rcx, rdi
call fcn.140014524
test eax, eax
je 0x140010986
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140014684
mov r8d, 0x104
lea rdx, [rbp + 0x350]
mov rcx, rdi
call fcn.1400144f4
lea rcx, [rbp + 0x350]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140010830
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 0x140010850
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 0x140010860
lea rcx, [rbp + 0x350]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140010880
movsd xmm0, qword [str..ime]
movzx eax, word [0x140035af8]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
test esi, esi
je 0x140010925
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call fcn.140017bf0
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x560]
lea rdx, str._sregsvr32.exe__s__u__s
lea rcx, [rbp + 0x140]
call fcn.140007fe0
lea rcx, [rbp + 0x140]
call fcn.14000bcc0
lea r9, [rbp + 0x350]
lea r8, [rbp + 0x980]
lea rdx, str._sregsvr32.exe__s__u__s
lea rcx, [rbp + 0x140]
call fcn.140007fe0
lea rcx, [rbp + 0x140]
call fcn.14000bcc0
lea rdx, [rbp + 0x140]
lea rcx, str.UnRegisterIME_Cmd:_s
call fcn.140010c50
lea rcx, [rbp + 0x350]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001093b
or edx, 0xffffffff
jmp 0x14001094f
lea rdx, [rbp + 0x350]
mov rcx, rdi
call fcn.14000e3e0
mov edx, 2
lea rcx, str.UnDeleteIme_Return:_d
call fcn.140010c50
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140010977
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e3e0
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1400146ac
jmp 0x1400109f8
test esi, esi
je 0x1400109dc
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call fcn.140017bf0
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x560]
lea rdx, str._sregsvr32.exe__s__u__s
lea rcx, [rbp + 0x140]
call fcn.140007fe0
lea rcx, [rbp + 0x140]
call fcn.14000bcc0
lea rdx, [rbp + 0x140]
lea rcx, str.UnRegisterIME_regsvr:_s
call fcn.140010c50
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400109f8
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e3e0
test esi, esi
je 0x140010abe
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 0x140010ab7
lea rdx, str.InstallLayoutOrTip
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140010ab7
mov edx, 1
lea rcx, [rbp + 0x140]
call rax
mov edx, eax
lea rcx, str.RegisterIME_InstallLayoutOrTip_return__d___
call fcn.140010c50
mov eax, 1
jmp 0x140010acc
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.140010b00
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.1400131c0
lea r11, [rsp + 0xca0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret