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

Disassembly:
push rbx
sub rsp, 0xca0
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0xc80], rax
mov rbx, rcx
lea rcx, [rsp + 0xa72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xa70], 0
call fcn.412121c0
lea rcx, [rsp + 0x862]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x860], 0
call fcn.412121c0
lea rcx, [rsp + 0x442]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x440], 0
call fcn.412121c0
lea rcx, [rsp + 0x652]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x650], 0
call fcn.412121c0
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x230], 0
call fcn.412121c0
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], 0
call fcn.412121c0
xor r9d, r9d
lea rdx, [rsp + 0xa70]
lea r8d, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
nop
nop
movzx eax, word [rsp + rdx + 0xa70]
add rdx, 2
test ax, ax
mov word [rsp + rdx + 0x22e], ax
jne 0x4102e430
lea rcx, [rsp + 0x230]
mov dx, 0x5c
call fcn.412120a0
test rax, rax
jne 0x4102e46c
mov rcx, rbx
call fcn.4102de90
jmp 0x4102e766
mov qword [rsp + 0xcb8], rbp
mov qword [rsp + 0xcc0], rsi
mov qword [rsp + 0xc98], rdi
mov qword [rsp + 0xc90], r12
mov word [rax], 0
xor ecx, ecx
nop
nop
nop
nop
movzx eax, word [rsp + rcx + 0x230]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x85e], ax
jne 0x4102e4a0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x860]
repne scasw ax, word [rdi]
mov rax, qword [str.Local]
lea rcx, [rsp + 0x860]
mov qword [rdi - 2], rax
mov eax, dword [0x4129a428]
mov dword [rdi + 6], eax
movzx eax, word [0x4129a42c]
mov word [rdi + 0xa], ax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebp, ebp
test eax, eax
mov r12d, 1
cmovne ebp, r12d
xor ecx, ecx
nop
nop
nop
movzx eax, word [rsp + rcx + 0x230]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x43e], ax
jne 0x4102e510
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x440]
repne scasw ax, word [rdi]
mov rax, qword [str.LocalLow]
lea rcx, [rsp + 0x440]
mov qword [rdi - 2], rax
mov rax, qword [0x4129a410]
mov qword [rdi + 6], rax
mov eax, dword [0x4129a418]
mov dword [rdi + 0xe], eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
test eax, eax
cmovne esi, r12d
xor ecx, ecx
movzx eax, word [rsp + rcx + 0x230]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x64e], ax
jne 0x4102e571
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x650]
repne scasw ax, word [rdi]
mov rax, qword [str.Roaming]
lea rcx, [rsp + 0x650]
mov qword [rdi - 2], rax
mov rax, qword [0x4129a3f8]
mov qword [rdi + 6], rax
movzx eax, word [0x4129a400]
mov word [rdi + 0xe], ax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
cmovne ecx, r12d
test ebp, ebp
mov r12, qword [rsp + 0xc90]
je 0x4102e746
test esi, esi
je 0x4102e746
test ecx, ecx
je 0x4102e746
mov rcx, rbx
call fcn.4102a570
test eax, eax
je 0x4102e746
lea r9, str.SmartCloudIME
lea r8, [rsp + 0x440]
lea rdx, str._s_s_
lea rcx, [rsp + 0x20]
call fcn.412122b0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4102e63b
lea rcx, [rsp + 0x20]
call fcn.410522e0
mov rdx, qword [rbx + 0x70]
or rcx, 0xffffffffffffffff
xor eax, eax
add rbx, 0x50
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
cmp rdx, 8
not rcx
lea rsi, [rcx - 1]
jb 0x4102e668
mov rax, qword [rbx + 8]
lea rdi, [rbx + 8]
jmp 0x4102e66f
lea rdi, [rbx + 8]
mov rax, rdi
lea rcx, [rsp + 0x20]
cmp rcx, rax
jb 0x4102e6c0
cmp rdx, 8
jb 0x4102e684
mov rcx, qword [rdi]
jmp 0x4102e687
mov rcx, rdi
mov rax, qword [rbx + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x4102e6c0
cmp rdx, 8
jb 0x4102e6a2
mov rdi, qword [rdi]
lea r8, [rsp + 0x20]
mov r9, rsi
mov rdx, rbx
sub r8, rdi
mov rcx, rbx
sar r8, 1
call fcn.41022de0
jmp 0x4102e74e
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
jbe 0x4102e6d4
call fcn.4120fbc0
mov rax, qword [rbx + 0x20]
cmp rax, rsi
jae 0x4102e700
mov r8, qword [rbx + 0x18]
mov rdx, rsi
mov rcx, rbx
call fcn.41022ab0
test rsi, rsi
je 0x4102e74e
mov rdx, qword [rbx + 0x20]
cmp rdx, 8
jb 0x4102e719
mov rcx, qword [rdi]
jmp 0x4102e71c
test rsi, rsi
jne 0x4102e6ec
cmp rax, 8
mov qword [rbx + 0x18], rsi
jb 0x4102e712
mov rdi, qword [rdi]
mov word [rdi], 0
jmp 0x4102e74e
mov rcx, rdi
lea rbp, [rsi + rsi]
lea r8, [rsp + 0x20]
add rdx, rdx
mov r9, rbp
call fcn.412118b0
cmp qword [rbx + 0x20], 8
mov qword [rbx + 0x18], rsi
jb 0x4102e73e
mov rdi, qword [rdi]
mov word [rdi + rbp], 0
jmp 0x4102e74e
mov rcx, rbx
call fcn.4102de90
mov rsi, qword [rsp + 0xcc0]
mov rbp, qword [rsp + 0xcb8]
mov rdi, qword [rsp + 0xc98]
mov rcx, qword [rsp + 0xc80]
xor rcx, rsp
call fcn.41211b80
add rsp, 0xca0
pop rbx
ret