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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rax, qword [0x14000d1a0]
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov rdx, qword [0x14000d200]
mov rsi, qword [rdx]
movzx edx, ax
lea rcx, [rsi + 0x60000]
add rsi, 0x54000
call fcn.140007961
call fcn.140004bb7
mov r12, qword [0x14000d180]
mov rbp, qword [0x14000d160]
mov rcx, rsi
mov eax, dword [r12]
mov dword [rbp + 0x1c], 0x10000
and eax, 0x20
mov dword [rbp], eax
call fcn.140007f02
test eax, eax
jne 0x1400060bb
movsxd rdx, dword [rdi + 0x68]
test edx, edx
je 0x1400060bb
mov rax, qword [0x14000d130]
xor r11d, r11d
movsxd r10, dword [rdi + 0x64]
add rdx, rdx
mov r9, qword [0x14000d270]
mov rcx, qword [rax + 0x24]
movsxd rax, dword [rdi + 0x6c]
mov dword [rsp + 0x20], r11d
add rax, rax
add rdx, rcx
lea r8, [rax + rcx]
mov rcx, r10
call fcn.1400078cd
mov rbx, qword [0x14000d270]
mov ax, word [rbx]
test ax, ax
je 0x1400060bb
cmp ax, 0x22
jne 0x140006066
add rbx, 2
mov edx, 0x22
mov rcx, rbx
call main
mov word [rax], 0
mov rcx, rbx
call sub.KERNEL32.dll_lstrlenW
cdqe
add rax, rax
lea rcx, [rbx + rax - 8]
cmp rbx, rcx
jae 0x1400060a8
lea rdx, str..exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400060a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400060a0
test al, 0x10
jne 0x1400060a8
mov rcx, rbx
call fcn.140007405
mov rcx, rbx
call fcn.140007a3c
mov rcx, rsi
mov rdx, rax
call fcn.140007a21
mov rcx, rsi
call fcn.140007f02
test eax, eax
jne 0x1400060d5
mov edx, dword [rdi + 0x138]
mov rcx, rsi
call fcn.14000833f
test byte [r12], 0x10
je 0x1400060fa
mov rax, qword [0x14000d1d0]
cmp dword [rax], 0
jne 0x1400060fa
call fcn.140005b48
mov rax, qword [0x14000d230]
mov dword [rax], 1
mov rbx, qword [0x14000d190]
xor r10d, r10d
xor r9d, r9d
mov r8d, 1
mov dword [rsp + 0x28], 0x8040
mov edx, 0x67
mov dword [rsp + 0x20], r10d
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_LoadImageW]
cmp dword [rdi + 0x70], 0xffffffff
mov qword [0x14004b320], rax
je 0x1400061f0
mov rdx, qword [0x14000d0b0]
lea rsi, [0x14000c2ec]
mov qword [0x14005b3a0], rax
lea rcx, [0x14005b380]
mov qword [0x14005b3c0], rsi
mov qword [0x14005b388], rdx
mov rdx, qword [rbx]
mov qword [0x14005b398], rdx
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x1400062f0
xor r9d, r9d
lea r8, [rsp + 0x60]
xor edx, edx
mov ecx, 0x30
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
xor r8d, r8d
mov ecx, dword [rsp + 0x64]
mov edx, dword [rsp + 0x60]
mov qword [rsp + 0x58], r8
mov rax, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x6c]
mov qword [rsp + 0x40], r9
mov r9d, 0x80000000
sub eax, ecx
mov dword [rsp + 0x28], ecx
mov ecx, pe_nt_image_headers64
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], edx
sub eax, edx
mov rdx, rsi
mov dword [rsp + 0x30], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x14005b3f0], rax
xor ecx, ecx
call fcn.140003b3b
test eax, eax
jne 0x1400062df
call fcn.140004bb7
cmp dword [rbp + 0x20], 0
jne 0x1400062c1
mov rcx, qword [0x14005b3f0]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, str.RichEd20
call fcn.140008237
test rax, rax
jne 0x14000623d
lea rcx, str.RichEd32
call fcn.140008237
lea rsi, str.RichEdit20W
xor ecx, ecx
mov rdi, qword [sym.imp.USER32.dll_GetClassInfoW]
lea r8, [0x14005b380]
mov rdx, rsi
call rdi
test eax, eax
jne 0x140006283
xor ecx, ecx
lea r8, [0x14005b380]
lea rdx, str.RichEdit
call rdi
mov qword [0x14005b3c0], rsi
lea rcx, [0x14005b380]
call qword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x14004b318]
lea r9, [0x140005504]
xor r8d, r8d
lea edx, [rax + 0x69]
xor eax, eax
mov qword [rsp + 0x20], rax
movzx edx, dx
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov ecx, 5
mov ebx, eax
call fcn.140003b3b
mov ecx, 1
call fcn.140004a70
jmp 0x1400062f2
xor ecx, ecx
call fcn.140004ca9
test eax, eax
je 0x1400062e6
cmp dword [0x14004b310], 0
jne 0x1400062df
mov ecx, 2
call fcn.140003b3b
mov ebx, 2
jmp 0x1400062f2
mov ecx, 1
call fcn.140003b3b
xor ebx, ebx
mov eax, ebx
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret