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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rdi, qword [0x140036798]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
lea rcx, [0x140044000]
call fcn.140007488
call fcn.1400066e4
mov eax, dword [0x140036790]
lea rbp, [0x140042800]
and eax, 0x20
mov dword [0x14003687c], 0x10000
mov rcx, rbp
mov dword [0x140036860], eax
call fcn.14000749c
xor esi, esi
test eax, eax
jne 0x14000690a
cmp dword [rdi + 0x68], esi
je 0x14000690a
mov rcx, qword [0x1400367c4]
lea rbx, [0x1400346c0]
movsxd rax, dword [rdi + 0x6c]
mov r9, rbx
mov dword [rsp + 0x20], esi
lea r8, [rcx + rax*2]
movsxd rax, dword [rdi + 0x68]
lea rdx, [rcx + rax*2]
movsxd rcx, dword [rdi + 0x64]
call fcn.14000790c
movzx eax, word [0x1400346c0]
test ax, ax
je 0x14000690a
lea edx, [rsi + 0x22]
cmp ax, dx
jne 0x1400068b4
lea rbx, [0x1400346c2]
mov rcx, rbx
call fcn.140007458
mov word [rax], si
mov rcx, rbx
call sub.KERNEL32.dll_lstrlenW
movsxd rcx, eax
add rcx, 0xfffffffffffffffc
lea rcx, [rbx + rcx*2]
cmp rcx, rbx
jbe 0x1400068f7
lea rdx, str..exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400068f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400068ef
test al, 0x10
jne 0x1400068f7
mov rcx, rbx
call fcn.140007cf0
mov rcx, rbx
call fcn.140007380
mov rdx, rax
mov rcx, rbp
call fcn.140007b28
mov rcx, rbp
call fcn.14000749c
test eax, eax
jne 0x140006924
mov edx, dword [rdi + 0x138]
mov rcx, rbp
call fcn.140006d0c
mov rcx, qword [0x140035758]
xor r9d, r9d
mov dword [rsp + 0x28], 0x8040
mov dword [rsp + 0x20], esi
lea ebp, [r9 + 1]
mov r8d, ebp
lea edx, [rbp + 0x66]
call qword [sym.imp.USER32.dll_LoadImageW]
mov qword [0x140035720], rax
lea rbx, [0x1400356c0]
cmp dword [rdi + 0x70], 0xffffffff
je 0x140006a20
lea rcx, section..text
mov qword [0x1400356e0], rax
mov qword [0x1400356c8], rcx
lea rdi, [0x14000a970]
mov rcx, qword [0x140035758]
mov qword [0x1400356d8], rcx
mov rcx, rbx
mov qword [0x140035700], rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x1400069a8
xor eax, eax
jmp 0x140006b0b
xor edx, edx
lea r8, [rsp + 0x60]
xor r9d, r9d
lea ecx, [rdx + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov r8d, dword [rsp + 0x60]
mov rdx, rdi
mov r10d, dword [rsp + 0x64]
mov rax, qword [0x140035758]
mov r9d, dword [rsp + 0x6c]
mov ecx, dword [rsp + 0x68]
sub r9d, r10d
mov qword [rsp + 0x58], rsi
sub ecx, r8d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], r9d
mov r9d, 0x80000000
mov dword [rsp + 0x30], ecx
mov ecx, 0x80
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r8d
xor r8d, r8d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x14002fe18], rax
xor ecx, ecx
call fcn.140001610
mov edi, 2
test eax, eax
jne 0x140006b09
call fcn.1400066e4
cmp dword [0x140036880], esi
jne 0x140006aef
mov rcx, qword [0x14002fe18]
lea edx, [rdi + 3]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, str.RichEd20
call fcn.14000706c
test rax, rax
jne 0x140006a72
lea rcx, str.RichEd32
call fcn.14000706c
lea rdi, str.RichEdit20W
mov r8, rbx
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetClassInfoW]
test eax, eax
jne 0x140006aad
mov r8, rbx
lea rdx, str.RichEdit
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetClassInfoW]
mov rcx, rbx
mov qword [0x140035700], rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
movzx eax, word [0x140035718]
lea r9, [0x140005b08]
mov rcx, qword [0x140035758]
add ax, 0x69
movzx edx, ax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov ecx, 5
mov rbx, rax
call fcn.140001610
mov ecx, ebp
call fcn.1400043f8
mov eax, ebx
jmp 0x140006b0b
xor ecx, ecx
call fcn.140006560
test eax, eax
je 0x140006b21
cmp dword [0x140035748], esi
jne 0x140006b09
mov ecx, edi
call fcn.140001610
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, ebp
call fcn.140001610
jmp 0x1400069a1