Function at 0x140002750
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov eax, 0x100f8
call fcn.1400c217c
sub rsp, rax
mov r14, qword [0x1400f7448]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x100f0], rax
test rcx, rcx
je 0x140002abf
mov rsi, rcx
mov dword [rsp + 0xf0], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0xf8], xmm0
mov word [rsp + 0x108], 1
movups xmmword [rsp + 0x110], xmm0
mov word [rsp + 0x120], 1
mov byte [rsp + 0x128], 0
mov dword [rsp + 0x130], 0
movups xmmword [rsp + 0x138], xmm0
mov qword [rsp + 0x148], 0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14000288f
mov edi, eax
movsxd rdx, eax
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.140079e00
test byte [rsp + 0x40], 1
je 0x14000283e
mov rax, qword [rsp + 0x50]
jmp 0x140002843
lea rax, [rsp + 0x41]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rsi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, edi
je 0x14000288f
test byte [rsp + 0x40], 1
jne 0x14000287e
mov word [rsp + 0x40], 0
jmp 0x14000288f
mov rax, qword [rsp + 0x50]
mov byte [rax], 0
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, str.ReadAheadLib
lea r8, [0x1400f7460]
lea rcx, [rsp + 0x68]
lea r9, [rsp + 0xf0]
call fcn.140002af0
test byte [rsp + 0x40], 1
je 0x1400028ca
mov rcx, qword [rsp + 0x50]
call sub.mozglue.dll_free
mov rdi, qword [rsp + 0x138]
mov qword [rsp + 0x138], 0
test rdi, rdi
je 0x1400028f3
mov rcx, rdi
call fcn.140002e40
mov rcx, rdi
call sub.mozglue.dll_free
call fcn.1400031d0
test al, al
je 0x1400029fb
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov edx, 0xa0000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rbx, [rax + 1]
cmp rbx, 2
jb 0x140002ab5
mov rsi, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x1000020
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
lea rdi, [rax + 1]
cmp rdi, 2
jb 0x1400029ec
mov r12, rax
mov qword [rsp + 0x20], 0
mov rcx, rax
mov edx, 0x1000024
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1400029dd
mov r15, rax
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x1400029d4
movsxd rax, dword [r15 + 0x3c]
cmp dword [r15 + rax], 0x4550
jne 0x1400029d4
movzx ecx, word [r15 + rax + 0x18]
cmp ecx, 0x20b
jne 0x1400029d4
mov edx, dword [r15 + rax + 0x50]
cmp rdx, 0x148
jb 0x1400029d4
mov rcx, r15
call fcn.140003240
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp rdi, 2
jb 0x1400029ec
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbx, 2
jb 0x140002ab5
jmp 0x140002aac
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140002ab5
mov rsi, rax
lea r8, [rsp + 0x40]
mov rcx, rax
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140002aac
lea r15, [rsp + 0xf0]
lea rbx, [rsp + 0x64]
mov rdi, qword [sym.imp.KERNEL32.dll_ReadFile]
nop word cs:[rax + rax]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, r15
mov r8d, 0x10000
mov r9, rbx
call rdi
test eax, eax
je 0x140002a98
cmp dword [rsp + 0x64], 0x10000
je 0x140002a70
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x68]
call fcn.140002d10
mov rax, qword [rsp + 0x100f0]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140002ae3
add rsp, 0x100f8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400763e0
int3