Function at 0x14005da10
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 [0x140090008]
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 0x14005db9d
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x14005dcc6
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.14001a6a8
nop
lea r9, [rbp - 0x5d]
mov r8, qword [rbp - 0x29]
lea rdx, [rbp - 0x59]
lea ecx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_GetSystemPreferredUILanguages]
test eax, eax
je 0x14005db3a
cmp dword [rbp - 0x59], ebx
jbe 0x14005db3a
lea r8, [rbp - 0x51]
lea rdx, [0x14007e758]
lea rcx, [rbp - 0x49]
call fcn.14003151c
lea r8, [rbp - 0x61]
lea rdx, [0x14006a0d0]
mov rcx, qword [rax]
call fcn.140014a54
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 0x14005db28
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 0x14005db3c
xor edx, edx
mov eax, dword [rbp - 0x21]
mov rbx, qword [rbp - 0x31]
cmp eax, 0xffffffff
jne 0x14005db5d
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14005db54
mov eax, edx
jmp 0x14005db65
movsxd rdx, dword [rcx - 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsnlen
test eax, eax
js 0x14005dcbb
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14005dcbb
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 0x14005db9d
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 0x14005dc1b
lea r8d, [r9 + 1]
cmp r8d, 7
jae 0x14005dc1b
lea rdx, [rcx + 4]
cmp dword [rdx], eax
jne 0x14005dc0e
mov dword [rdx], ebx
mov eax, dword [rcx]
inc r8d
add rdx, 4
cmp r8d, 7
jb 0x14005dc06
inc r9d
add rcx, 4
cmp r9d, 7
jb 0x14005dbf2
mov esi, ebx
lea rdi, [rbp - 0x31]
mov r14, qword [rbp - 0x41]
xor eax, eax
mov ebx, dword [rdi]
test ebx, ebx
je 0x14005dc7f
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.14005646c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005dc7d
test r12, r12
je 0x14005dcb0
mov edx, ebx
mov rcx, qword [rbp + 0x6f]
call r12
test eax, eax
jne 0x14005dcb0
xor eax, eax
inc esi
add rdi, 4
cmp esi, 7
jb 0x14005dc34
mov word [r15], ax
xor eax, eax
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.140052570
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 0x14005dc90
mov ecx, 0x80070057
call fcn.140002fa4
nop
mov ecx, 0x80004005
call fcn.140002fa4
int3