Function at 0x140010330
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 [0x1400441a0]
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.14000e020
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140014200
xor edx, edx
lea rcx, [rbp + 0x350]
mov r8d, 0x208
call fcn.140014200
xor edx, edx
lea rcx, [rbp + 0x770]
mov r8d, 0x208
call fcn.140014200
xor edx, edx
lea rcx, [rbp + 0x560]
mov r8d, 0x208
call fcn.140014200
xor edx, edx
lea rcx, [rbp + 0x980]
mov r8d, 0x208
call fcn.140014200
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 0x1400103f0
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 0x140010410
lea rcx, [rsp + 0x30]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140010430
mov eax, dword [0x14002e8a4]
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 0x140010450
lea rcx, [rsp + 0x30]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140010470
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 0x140010480
lea rcx, [rsp + 0x30]
sub rcx, 2
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400104a0
movsd xmm0, qword [str..ime]
movzx eax, word [0x1400310a8]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
mov rcx, rdi
call fcn.140005910
test eax, eax
je 0x140010656
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140005a30
mov r8d, 0x104
lea rdx, [rbp + 0x350]
mov rcx, rdi
call fcn.1400058e0
lea rcx, [rbp + 0x350]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140010500
mov eax, dword [0x14002e8a4]
mov dword [rcx], eax
lea rcx, [rbp + 0x350]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140010520
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 0x140010530
lea rcx, [rbp + 0x350]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140010550
movsd xmm0, qword [str..ime]
movzx eax, word [0x1400310a8]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
test esi, esi
je 0x1400105f5
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call fcn.140014200
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.140009530
lea rcx, [rbp + 0x350]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14001060b
or edx, 0xffffffff
jmp 0x14001061f
lea rdx, [rbp + 0x350]
mov rcx, rdi
call fcn.14000e0b0
mov edx, 2
lea rcx, str.UnDeleteIme_Return:_d
call fcn.140009530
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140010647
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e0b0
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.140005a60
jmp 0x1400106c8
test esi, esi
je 0x1400106ac
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call fcn.140014200
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.140009530
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400106c8
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e0b0
test esi, esi
je 0x14001078e
lea rax, str.0804:8BC4F2D7_F7C1_44B4_B196_545F4B7C4D44D7651DA7_5841_4707_ACA3_F630AE5C0230
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 0x140010787
lea rdx, str.InstallLayoutOrTip
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140010787
mov edx, 1
lea rcx, [rbp + 0x140]
call rax
mov edx, eax
lea rcx, str.RegisterIME_InstallLayoutOrTip_return__d___
call fcn.140009530
mov eax, 1
jmp 0x14001079c
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.1400107d0
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.140012ec0
lea r11, [rsp + 0xca0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret