Function at 0x140018f4c
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
and qword [rax - 0x78], 0
xorps xmm0, xmm0
and qword [rax - 0x68], 0
mov rbx, r9
xor r9d, r9d
mov dword [rax - 0x80], 0x80
mov r15, r8
mov dword [rsp + 0x20], 3
mov r12, rdx
mov r13, rcx
mov rcx, qword [rsp + 0xd8]
mov edx, 0x80000000
lea esi, [r9 + 1]
mov r8d, esi
movups xmmword [rax - 0x60], xmm0
movups xmmword [rax - 0x50], xmm0
movups xmmword [rax - 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140018ffd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r9, str.Failed_to_open_file:_0x_x
mov r8d, 0xf7
lea rdx, str.AsapJavaScriptAnalyzerLoadTextFile
mov dword [rsp + 0x20], eax
mov ecx, esi
mov ebx, eax
call fcn.1400071f4
jmp 0x14001922f
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x140019047
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x20], eax
lea r9, str.Failed_to_get_file_size:_0x_x
mov ebx, eax
mov r8d, 0x102
lea rdx, str.AsapJavaScriptAnalyzerLoadTextFile
mov ecx, esi
call fcn.1400071f4
jmp 0x14001922a
mov rax, qword [rsp + 0x40]
test rax, rax
jns 0x140019076
lea r9, str.Invalid_file_size
mov r8d, 0x108
lea rdx, str.AsapJavaScriptAnalyzerLoadTextFile
mov ecx, esi
mov ebx, 0xd
call fcn.1400071f4
jmp 0x14001922a
jne 0x140019082
mov ebx, 0xe8
jmp 0x14001922a
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, r14
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x1400190db
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r9, str.CreateFileMapping_failed:_0x_x
mov r8d, 0x122
mov ebx, eax
mov eax, 0x54f
test ebx, ebx
cmove ebx, eax
mov dword [rsp + 0x20], ebx
jmp 0x140019034
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14001913e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r9, str.Map_view_of_file_failed:_0x_x
mov r8d, 0x136
mov ebx, eax
lea rdx, str.AsapJavaScriptAnalyzerLoadTextFile
test ebx, ebx
mov eax, 0x54f
mov ecx, esi
cmove ebx, eax
mov dword [rsp + 0x20], ebx
call fcn.1400071f4
jmp 0x140019216
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
cmp rax, 0x30
je 0x140019186
mov eax, 0x54f
lea r9, str.Virtual_query_failed:_0x_x
mov ebx, eax
mov dword [rsp + 0x20], eax
mov r8d, 0x141
lea rdx, str.AsapJavaScriptAnalyzerLoadTextFile
mov ecx, esi
call fcn.1400071f4
jmp 0x140019202
mov rcx, qword [rsp + 0x60]
mov eax, 0xffffffff
cmp rcx, rax
jbe 0x1400191ad
mov ebx, 0x6f
lea r9, str.File_size_is_too_large:_0x_x
mov dword [rsp + 0x20], ebx
mov r8d, 0x148
jmp 0x140019176
cmp rcx, 3
jae 0x1400191ba
mov ebx, 0xe8
jmp 0x140019202
cmp byte [rdi], 0xef
jne 0x1400191cd
cmp byte [rdi + 1], 0xbb
jne 0x1400191dd
cmp byte [rdi + 2], 0xbf
jne 0x1400191dd
jmp 0x1400191e2
cmp byte [rdi], 0xff
jne 0x1400191dd
cmp byte [rdi + 1], 0xfe
mov esi, 2
je 0x1400191e2
mov esi, 3
mov rax, qword [rsp + 0xd0]
mov qword [r15], rdi
xor edi, edi
mov qword [r12], rbp
xor ebp, ebp
mov qword [r13], r14
xor r14d, r14d
mov dword [rax], esi
mov dword [rbx], ecx
xor ebx, ebx
test rdi, rdi
je 0x140019216
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
test rbp, rbp
je 0x14001922a
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test r14, r14
je 0x14001923e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret