Function at 0x140005def
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 [0x14000d0f0]
mov rdi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov rdx, qword [0x14000d150]
mov rsi, qword [rdx]
movzx edx, ax
lea rcx, [rsi + 0x60000]
add rsi, 0x54000
call fcn.1400077c1
call fcn.140004a17
mov r12, qword [0x14000d0d0]
mov rbp, qword [0x14000d0b0]
mov rcx, rsi
mov eax, dword [r12]
mov dword [rbp + 0x1c], 0x10000
and eax, 0x20
mov dword [rbp], eax
call fcn.140007d5e
test eax, eax
jne 0x140005f20
movsxd rdx, dword [rdi + 0x68]
test edx, edx
je 0x140005f20
mov rax, qword [0x14000d080]
xor r11d, r11d
movsxd r10, dword [rdi + 0x64]
add rdx, rdx
mov r9, qword [0x14000d1c0]
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.14000772d
mov rbx, qword [0x14000d1c0]
mov ax, word [rbx]
test ax, ax
je 0x140005f20
cmp ax, 0x22
jne 0x140005ecb
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 0x140005f0d
lea rdx, str..exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005f0d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005f05
test al, 0x10
jne 0x140005f0d
mov rcx, rbx
call fcn.140007265
mov rcx, rbx
call fcn.14000789c
mov rcx, rsi
mov rdx, rax
call fcn.140007881
mov rcx, rsi
call fcn.140007d5e
test eax, eax
jne 0x140005f3a
mov edx, dword [rdi + 0x138]
mov rcx, rsi
call fcn.14000819b
test byte [r12], 0x10
je 0x140005f5f
mov rax, qword [0x14000d120]
cmp dword [rax], 0
jne 0x140005f5f
call fcn.1400059ac
mov rax, qword [0x14000d180]
mov dword [rax], 1
mov rbx, qword [0x14000d0e0]
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 [0x14004c320], rax
je 0x140006055
mov rdx, qword [0x14000d010]
lea rsi, [0x14000c24c]
mov qword [0x14005c3a0], rax
lea rcx, [0x14005c380]
mov qword [0x14005c3c0], rsi
mov qword [0x14005c388], rdx
mov rdx, qword [rbx]
mov qword [0x14005c398], rdx
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x140006155
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 [0x14005c3f0], rax
xor ecx, ecx
call fcn.140003b68
test eax, eax
jne 0x140006144
call fcn.140004a17
cmp dword [rbp + 0x20], 0
jne 0x140006126
mov rcx, qword [0x14005c3f0]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, str.RichEd20
call fcn.140008093
test rax, rax
jne 0x1400060a2
lea rcx, str.RichEd32
call fcn.140008093
lea rsi, [0x14000c2f0]
xor ecx, ecx
mov rdi, qword [sym.imp.USER32.dll_GetClassInfoW]
lea r8, [0x14005c380]
mov rdx, rsi
call rdi
test eax, eax
jne 0x1400060e8
xor ecx, ecx
lea r8, [0x14005c380]
lea rdx, str.RichEdit
call rdi
mov qword [0x14005c3c0], rsi
lea rcx, [0x14005c380]
call qword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x14004c318]
lea r9, [0x140005367]
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.140003b68
mov ecx, 1
call fcn.1400048d0
jmp 0x140006157
xor ecx, ecx
call fcn.140004b09
test eax, eax
je 0x14000614b
cmp dword [0x14004c310], 0
jne 0x140006144
mov ecx, 2
call fcn.140003b68
mov ebx, 2
jmp 0x140006157
mov ecx, 1
call fcn.140003b68
xor ebx, ebx
mov eax, ebx
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret