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

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rax, qword [0x14000d120]
mov rsi, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov rdx, qword [0x14000d180]
mov r13, qword [rdx]
movzx edx, ax
lea rcx, [r13 + 0x30000]
add r13, 0x2a000
call fcn.140007945
call fcn.140004ad8
mov rdi, qword [0x14000d100]
mov rbx, qword [0x14000d0e0]
mov rcx, r13
mov eax, dword [rdi]
mov dword [rbx + 0x1c], 0x10000
and eax, 0x20
mov dword [rbx], eax
call fcn.140007f72
test eax, eax
jne 0x140006042
movsxd rdx, dword [rsi + 0x68]
test edx, edx
je 0x140006042
mov rax, qword [0x14000d0b0]
movsxd r10, dword [rsi + 0x64]
add rdx, rdx
mov r9, qword [0x14000d1f0]
mov rcx, qword [rax + 0x24]
movsxd rax, dword [rsi + 0x6c]
mov dword [rsp + 0x20], 0
add rax, rax
add rdx, rcx
lea r8, [rax + rcx]
mov rcx, r10
call fcn.1400078ad
mov r12, qword [0x14000d1f0]
mov ax, word [r12]
test ax, ax
je 0x140006042
cmp ax, 0x22
jne 0x140005fed
lea rcx, [r12 + 2]
mov edx, 0x22
add r12, 2
call fcn.1400073ad
mov word [rax], 0
mov rcx, r12
call sub.KERNEL32.dll_lstrlenW
cdqe
add rax, rax
lea rcx, [r12 + rax - 8]
cmp r12, rcx
jae 0x14000602f
lea rdx, str..exe
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000602f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140006027
test al, 0x10
jne 0x14000602f
mov rcx, r12
call fcn.1400073d5
mov rcx, r12
call fcn.140007a32
mov rcx, r13
mov rdx, rax
call fcn.140007a17
mov rcx, r13
call fcn.140007f72
test eax, eax
jne 0x14000605c
mov edx, dword [rsi + 0x138]
mov rcx, r13
call fcn.1400083cd
test byte [rdi], 0x10
je 0x14000607f
mov rax, qword [0x14000d150]
cmp dword [rax], 0
jne 0x14000607f
call fcn.140005ac2
mov rax, qword [0x14000d1b0]
mov dword [rax], 1
mov rdi, qword [0x14000d110]
mov dword [rsp + 0x28], 0x8040
xor r9d, r9d
mov r8d, 1
mov dword [rsp + 0x20], 0
mov edx, 0x67
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_LoadImageW]
cmp dword [rsi + 0x70], 0xffffffff
mov qword [0x1403b6b60], rax
je 0x14000617f
mov rdx, qword [0x14000d040]
lea r12, [0x14000c24c]
mov qword [0x1403bebe0], rax
lea rcx, [0x1403bebc0]
mov qword [0x1403bec00], r12
mov qword [0x1403bebc8], rdx
mov rdx, qword [rdi]
mov qword [0x1403bebd8], rdx
call qword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x140006105
xor r12d, r12d
jmp 0x14000628a
xor r9d, r9d
lea r8, [rsp + 0x60]
xor edx, edx
mov ecx, 0x30
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [rsp + 0x64]
mov edx, dword [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x58], 0
mov rax, qword [rdi]
mov r9d, 0x80000000
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x20], edx
mov qword [rsp + 0x48], 0
sub eax, ecx
mov ecx, pe_nt_image_headers64
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
mov qword [rsp + 0x40], 0
sub eax, edx
mov rdx, r12
mov dword [rsp + 0x30], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x1403bec30], rax
xor ecx, ecx
call fcn.140003c0b
mov r12d, eax
test eax, eax
jne 0x140006278
call fcn.140004ad8
cmp dword [rbx + 0x20], 0
jne 0x14000625a
mov rcx, qword [0x1403bec30]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, str.RichEd20
call fcn.1400082b9
test rax, rax
jne 0x1400061cf
lea rcx, str.RichEd32
call fcn.1400082b9
xor ecx, ecx
mov rbx, qword [sym.imp.USER32.dll_GetClassInfoW]
lea r8, [0x1403bebc0]
lea rdx, str.RichEdit20W
call rbx
test eax, eax
jne 0x140006219
xor ecx, ecx
lea r8, [0x1403bebc0]
lea rdx, str.RichEdit
call rbx
lea rax, str.RichEdit20W
lea rcx, [0x1403bebc0]
mov qword [0x1403bec00], rax
call qword [sym.imp.USER32.dll_RegisterClassW]
mov eax, dword [0x1403b6b58]
lea r9, [0x140005471]
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi]
lea edx, [rax + 0x69]
movzx edx, dx
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov ecx, 5
mov r12d, eax
call fcn.140003c0b
mov ecx, 1
call fcn.140004980
jmp 0x14000628a
xor ecx, ecx
call fcn.140004bd7
test eax, eax
je 0x140006280
cmp dword [0x1403b6b50], 0
jne 0x140006278
mov ecx, 2
call fcn.140003c0b
mov r12d, 2
jmp 0x14000628a
mov ecx, 1
call fcn.140003c0b
mov eax, r12d
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret