Function at 0x14000c018
Capabilities:
Check if file exists
Get file attributes
Identify system language via api

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x98
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov r12, r9
mov qword [rbp - 0x39], r8
mov qword [rbp - 0x41], rdx
mov r14d, ecx
mov r13, qword [rbp + 0x77]
mov r15, qword [rbp + 0x87]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov word [rbp - 0x61], ax
xor ebx, ebx
mov dword [rbp - 0x59], ebx
mov dword [rbp - 0x5d], ebx
lea r9, [rbp - 0x5d]
xor r8d, r8d
lea rdx, [rbp - 0x59]
lea ecx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_GetSystemPreferredUILanguages]
test eax, eax
je 0x14000c1a9
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x14000c2d5
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x51], rax
lea r9d, [rbx + 1]
mov r8d, dword [rbp - 0x5d]
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x31]
call fcn.14000bb04
lea r9, [rbp - 0x5d]
mov r8, qword [rbp - 0x29]
lea rdx, [rbp - 0x59]
lea ecx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_GetSystemPreferredUILanguages]
nop dword [rax + rax]
test eax, eax
je 0x14000c146
cmp dword [rbp - 0x59], ebx
jbe 0x14000c146
lea r8, [rbp - 0x51]
lea rdx, [0x140065030]
lea rcx, [rbp - 0x49]
call fcn.14000c38c
lea r8, [rbp - 0x61]
lea rdx, [0x140064ff8]
mov rcx, qword [rax]
call fcn.14000c334
cmp eax, 1
setne bl
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000c134
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx eax, word [rbp - 0x61]
xor edx, edx
test bl, bl
cmovne ax, si
mov word [rbp - 0x61], ax
jmp 0x14000c148
xor edx, edx
mov eax, dword [rbp - 0x21]
mov rbx, qword [rbp - 0x31]
cmp eax, 0xffffffff
jne 0x14000c169
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14000c160
mov eax, edx
jmp 0x14000c171
movsxd rdx, dword [rcx - 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsnlen
test eax, eax
js 0x14000c2c7
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000c2c7
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
xor ebx, ebx
mov word [rax + rcx*2], bx
mov rdx, qword [rbp - 0x51]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000c1a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx edx, word [rbp - 0x61]
mov dword [rbp - 0x31], r14d
mov ecx, r14d
mov r9d, 0x3ff
and ecx, r9d
mov eax, r14d
and eax, 0xf0000
or ecx, eax
lea r8d, [r9 + 1]
or ecx, r8d
neg r14d
sbb eax, eax
and eax, ecx
mov dword [rbp - 0x2d], eax
mov dword [rbp - 0x29], edi
and edi, r9d
or edi, r8d
mov dword [rbp - 0x25], edi
mov dword [rbp - 0x21], edx
and edx, r9d
or edx, r8d
mov dword [rbp - 0x1d], edx
mov dword [rbp - 0x19], 0x409
mov r9d, ebx
lea rcx, [rbp - 0x31]
mov eax, dword [rcx]
test eax, eax
je 0x14000c227
lea r8d, [r9 + 1]
cmp r8d, 7
jae 0x14000c227
lea rdx, [rcx + 4]
cmp dword [rdx], eax
jne 0x14000c21a
mov dword [rdx], ebx
mov eax, dword [rcx]
inc r8d
add rdx, 4
cmp r8d, 7
jb 0x14000c212
inc r9d
add rcx, 4
cmp r9d, 7
jb 0x14000c1fe
mov esi, ebx
lea rdi, [rbp - 0x31]
mov r14, qword [rbp - 0x41]
xor eax, eax
mov ebx, dword [rdi]
test ebx, ebx
je 0x14000c28b
movsxd rdx, dword [rbp + 0x7f]
mov rax, qword [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, r14
lea r8, str._s_u_s
mov rcx, r15
call fcn.14000c2e0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000c289
test r12, r12
je 0x14000c2bc
mov edx, ebx
mov rcx, qword [rbp + 0x6f]
call r12
test eax, eax
jne 0x14000c2bc
xor eax, eax
inc esi
add rdi, 4
cmp esi, 7
jb 0x14000c240
mov word [r15], ax
xor eax, eax
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.140001020
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [r13], ebx
mov eax, 1
jmp 0x14000c29c
mov ecx, 0x80070057
call fcn.1400312f0
nop
jmp 0x14000c2d4
nop
mov ecx, 0x80004005
call fcn.1400312f0
int3