Function at 0x140018420
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x930
mov rax, qword [0x140075028]
xor rax, rsp
mov qword [rsp + 0x920], rax
mov dword [rsp + 0x88], 0
movzx eax, byte [0x14007bfd1]
cmp eax, 1
jne 0x140018462
movzx eax, byte [0x14007bfd0]
jmp 0x140018a71
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
mov edx, 0x400
lea rcx, [rsp + 0x120]
call fcn.140014f10
test rax, rax
je 0x140018a61
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x120]
test eax, eax
je 0x140018a61
mov edx, 8
lea rcx, [rsp + 0x100]
call fcn.140014d30
lea rcx, [rsp + 0x100]
call fcn.140004310
nop
lea r9, str.prolasso.key
lea r8, [rsp + 0x120]
lea rdx, str._s_s
lea rcx, [rsp + 0x100]
call fcn.140007c70
lea rcx, [rsp + 0x100]
call fcn.140003ac0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140018a54
lea rcx, [rsp + 0x100]
call fcn.140003ac0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140018a54
mov dword [rsp + 0x118], 0
lea rdx, [rsp + 0x118]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0x90], rax
mov eax, 2
mov rcx, qword [rsp + 0x90]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14003f364
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0xa0], rax
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
rep stosb byte [rdi], al
mov dword [rsp + 0x11c], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x11c]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x1400189f1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 8
lea rcx, [rsp + 0xe8]
call fcn.140014d30
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xe8]
call fcn.140004dd0
nop
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x78], rax
mov edx, 2
mov rcx, qword [rsp + 0x78]
call fcn.14003f320
cmp qword [rsp + 0x78], 0
jne 0x140018676
mov qword [rsp + 0xa8], 0
jmp 0x14001868c
mov qword [rsp + 0x50], 0x8123
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x50], 0
xor r8d, r8d
lea rdx, str._customer_
lea rcx, [rsp + 0xe8]
call fcn.140007780
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
add eax, 0xa
mov dword [rsp + 0x58], eax
xor r8d, r8d
lea rdx, str.__customer_
lea rcx, [rsp + 0xe8]
call fcn.140007780
mov dword [rsp + 0x70], eax
mov edx, 8
lea rcx, [rsp + 0xf8]
call fcn.140014d30
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x70]
sub ecx, eax
mov eax, ecx
mov r9d, eax
mov r8d, dword [rsp + 0x58]
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xe8]
call fcn.140015980
nop
lea rcx, [rsp + 0xf8]
call fcn.140007520
movzx eax, al
test eax, eax
jne 0x1400189d6
lea rax, [rsp + 0xd8]
mov qword [rsp + 0xb0], rax
lea rdx, [rsp + 0xf8]
mov rcx, qword [rsp + 0xb0]
call fcn.1400077d0
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x940]
call fcn.1400183f0
movzx eax, al
cmp eax, 1
jne 0x1400189d6
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rcx, [rsp + 0x110]
call fcn.1400176f0
nop
mov edx, 8
lea rcx, [rsp + 0x108]
call fcn.140014d30
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
call fcn.1400077d0
mov qword [rsp + 0xc8], rax
mov r8, qword [rsp + 0xc8]
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x110]
call fcn.140017780
nop
xor r8d, r8d
lea rdx, str._signature_
lea rcx, [rsp + 0xe8]
call fcn.140007780
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
add eax, 0xb
mov dword [rsp + 0x48], eax
xor r8d, r8d
lea rdx, str.__signature_
lea rcx, [rsp + 0xe8]
call fcn.140007780
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x48], 0
jl 0x1400189ba
cmp dword [rsp + 0x64], 0
jl 0x1400189ba
mov edx, 8
lea rcx, [rsp + 0xf0]
call fcn.140014d30
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x64]
sub ecx, eax
mov eax, ecx
mov r9d, eax
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xe8]
call fcn.140015980
nop
lea rcx, [rsp + 0xf0]
call fcn.140003ab0
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x40], 0
jmp 0x1400188af
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x74]
cmp dword [rsp + 0x40], eax
jge 0x14001891b
cmp dword [rsp + 0x40], 0
jl 0x1400188d3
lea rcx, [rsp + 0xf0]
call fcn.140003ab0
cmp dword [rsp + 0x40], eax
jle 0x1400188dd
mov ecx, 0x80070057
call fcn.140003f50
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xf0]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x5c], ax
movzx eax, word [rsp + 0x5c]
mov ecx, dword [rsp + 0x40]
add ecx, 0xdb90
xor eax, ecx
movzx r8d, ax
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0xf0]
call fcn.140018a90
jmp 0x1400188a5
lea rcx, [rsp + 0xf0]
call fcn.140003ac0
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.1400074f0
test eax, eax
jne 0x1400189ac
mov byte [0x14007bfd1], 1
mov byte [0x14007bfd0], 1
mov byte [rsp + 0x44], 1
lea rcx, [rsp + 0xf0]
call fcn.140003f10
nop
lea rcx, [rsp + 0x108]
call fcn.140003f10
nop
lea rcx, [rsp + 0x110]
call fcn.140017750
nop
lea rcx, [rsp + 0xf8]
call fcn.140003f10
nop
lea rcx, [rsp + 0xe8]
call fcn.140003f10
nop
lea rcx, [rsp + 0x100]
call fcn.140003f10
movzx eax, byte [rsp + 0x44]
jmp 0x140018a71
lea rcx, [rsp + 0xf0]
call fcn.140003f10
nop
lea rcx, [rsp + 0x108]
call fcn.140003f10
nop
lea rcx, [rsp + 0x110]
call fcn.140017750
nop
lea rcx, [rsp + 0xf8]
call fcn.140003f10
nop
lea rcx, [rsp + 0xe8]
call fcn.140003f10
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
mov edx, 2
mov rcx, qword [rsp + 0x80]
call fcn.14003f320
cmp qword [rsp + 0x80], 0
jne 0x140018a29
mov qword [rsp + 0xd0], 0
jmp 0x140018a3f
mov qword [rsp + 0x50], 0x8123
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x100]
call fcn.140003f10
mov byte [0x14007bfd1], 1
mov byte [0x14007bfd0], 0
xor al, al
mov rcx, qword [rsp + 0x920]
xor rcx, rsp
call fcn.14003f5f0
add rsp, 0x930
pop rdi
ret