Function at 0x140002960
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.1400d514c
sub rsp, rax
mov r14, qword [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x100f0], rax
test rcx, rcx
je 0x140002cc0
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 0x140002a9f
mov edi, eax
movsxd rdx, eax
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.14007d120
test byte [rsp + 0x40], 1
je 0x140002a4e
mov rax, qword [rsp + 0x50]
jmp 0x140002a53
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 0x140002a9f
test byte [rsp + 0x40], 1
jne 0x140002a8e
mov word [rsp + 0x40], 0
jmp 0x140002a9f
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, [0x1401054c0]
lea rcx, [rsp + 0x68]
lea r9, [rsp + 0xf0]
call fcn.140002cf0
test byte [rsp + 0x40], 1
je 0x140002ada
mov rcx, qword [rsp + 0x50]
call sub.mozglue.dll_free
mov rdi, qword [rsp + 0x138]
mov qword [rsp + 0x138], 0
test rdi, rdi
je 0x140002b03
mov rcx, rdi
call fcn.140003050
mov rcx, rdi
call sub.mozglue.dll_free
call fcn.1400033f0
test al, al
je 0x140002c08
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 r15, [rax + 1]
cmp r15, 2
jb 0x140002cb6
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 r12, [rax + 1]
cmp r12, 2
jb 0x140002bf9
mov rdi, 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 0x140002bea
mov rbx, rax
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x140002be1
movsxd rax, dword [rbx + 0x3c]
cmp dword [rbx + rax], 0x4550
jne 0x140002be1
movzx ecx, word [rbx + rax + 0x18]
cmp ecx, 0x20b
jne 0x140002be1
mov edx, dword [rbx + rax + 0x50]
cmp rdx, 0x148
jb 0x140002be1
mov rcx, rbx
call fcn.140003460
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp r12, 2
jb 0x140002bf9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r15, 2
jb 0x140002cb6
jmp 0x140002cad
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 0x140002cb6
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 0x140002cad
lea rdi, [rsp + 0xf0]
lea rbx, [rsp + 0x64]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, 0x10000
mov r9, rbx
call r15
test eax, eax
je 0x140002c99
cmp dword [rsp + 0x64], 0x10000
je 0x140002c70
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.140002f10
mov rax, qword [rsp + 0x100f0]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x140002ce4
add rsp, 0x100f8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400d58e0
int3