Function at 0x140005dca
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.1400077a1
call fcn.1400049f7
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.140007d42
test eax, eax
jne 0x140005efb
movsxd rdx, dword [rdi + 0x68]
test edx, edx
je 0x140005efb
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.14000770d
mov rbx, qword [0x14000d1c0]
mov ax, word [rbx]
test ax, ax
je 0x140005efb
cmp ax, 0x22
jne 0x140005ea6
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 0x140005ee8
lea rdx, str..exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005ee8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005ee0
test al, 0x10
jne 0x140005ee8
mov rcx, rbx
call fcn.140007245
mov rcx, rbx
call fcn.14000787c
mov rcx, rsi
mov rdx, rax
call fcn.140007861
mov rcx, rsi
call fcn.140007d42
test eax, eax
jne 0x140005f15
mov edx, dword [rdi + 0x138]
mov rcx, rsi
call fcn.14000817f
test byte [r12], 0x10
je 0x140005f3a
mov rax, qword [0x14000d120]
cmp dword [rax], 0
jne 0x140005f3a
call fcn.140005988
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 [0x14004b320], rax
je 0x140006030
mov rdx, qword [0x14000d010]
lea rsi, [0x14000c24c]
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 0x140006130
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 0x14000611f
call fcn.1400049f7
cmp dword [rbp + 0x20], 0
jne 0x140006101
mov rcx, qword [0x14005b3f0]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, str.RichEd20
call fcn.140008077
test rax, rax
jne 0x14000607d
lea rcx, str.RichEd32
call fcn.140008077
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 0x1400060c3
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, [0x140005344]
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.1400048b0
jmp 0x140006132
xor ecx, ecx
call fcn.140004ae9
test eax, eax
je 0x140006126
cmp dword [0x14004b310], 0
jne 0x14000611f
mov ecx, 2
call fcn.140003b3b
mov ebx, 2
jmp 0x140006132
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