Function at 0x14001fd60
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x160
movaps xmmword [rsp + 0x150], xmm6
mov rax, qword [0x140062018]
xor rax, rsp
mov qword [rsp + 0x148], rax
test rcx, rcx
je 0x1400200c2
mov r14, rcx
xor esi, esi
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], 0xf
mov byte [rsp + 0x90], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, r14
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14001fe5f
mov edi, eax
movsxd rbx, eax
cmp eax, 0xf
ja 0x140020192
mov qword [rsp + 0xa0], rbx
cmp edi, 4
jne 0x1400201af
mov dword [rsp + 0x90], 0
mov byte [rsp + rbx + 0x90], 0
cmp qword [rsp + 0xa8], 0x10
jb 0x14001fe28
mov rax, qword [rsp + 0x90]
jmp 0x14001fe30
lea rax, [rsp + 0x90]
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, r14
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, edi
jne 0x1400201c6
movups xmmword [rsp + 0x80], xmm6
movups xmmword [rsp + 0x6c], xmm6
lea rax, str.ReadAheadLib
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0xc0], 1
mov dword [rsp + 0xc8], esi
movups xmm0, xmmword [rsp + 0x7c]
movups xmmword [rsp + 0xcc], xmm0
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0xdc], eax
mov ax, 1
mov word [rsp + 0xe0], ax
movups xmm0, xmmword [rsp + 0x66]
movups xmmword [rsp + 0xe2], xmm0
mov rcx, qword [rsp + 0x74]
mov qword [rsp + 0xf0], rcx
mov word [rsp + 0xf8], ax
mov byte [rsp + 0x100], 0
mov dword [rsp + 0x108], esi
movups xmmword [rsp + 0x138], xmm6
movups xmmword [rsp + 0x110], xmm6
mov qword [rsp + 0x120], 0
mov rsi, qword [rsp + 0xa0]
cmp qword [rsp + 0xa8], 0x10
jb 0x14001ff1e
mov rdi, qword [rsp + 0x90]
jmp 0x14001ff26
lea rdi, [rsp + 0x90]
lea r15, [rsp + 0x128]
cmp rsi, 0xf
ja 0x140020133
movups xmm0, xmmword [rdi]
movups xmmword [r15], xmm0
mov ebx, 0xf
mov qword [rsp + 0x138], rsi
mov qword [rsp + 0x140], rbx
call qword [sym.imp.mozglue.dll_public:_static_bool___cdecl_mozilla::baseprofiler::detail::RacyFeatures::IsActiveAndUnpaused_void_]
test al, al
jne 0x1400201e2
mov rax, qword [rsp + 0xa8]
cmp rax, 0x10
jae 0x1400200e9
call fcn.1400203a0
test al, al
je 0x14002024a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
mov rcx, r14
mov edx, 0xa0000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
inc rax
cmp rax, 2
jb 0x14002006b
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
mov r8d, 0x1000020
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
inc rax
cmp rax, 2
jb 0x140020062
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 0x1000024
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x140020059
mov rbx, rax
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x140020050
movsxd rax, dword [rbx + 0x3c]
cmp dword [rbx + rax], 0x4550
jne 0x140020050
movzx ecx, word [rbx + rax + 0x18]
cmp ecx, 0x20b
jne 0x140020050
mov edx, dword [rbx + rax + 0x50]
cmp rdx, 0x148
jb 0x140020050
mov rcx, rbx
call fcn.140020400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.mozglue.dll_public:_static_bool___cdecl_mozilla::baseprofiler::detail::RacyFeatures::IsActiveAndUnpaused_void_]
test al, al
jne 0x140020257
mov rax, qword [rsp + 0x140]
cmp rax, 0x10
jae 0x14002010e
xor eax, eax
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x140], 0xf
mov byte [rsp + 0x128], 0
mov rsi, qword [rsp + 0x110]
mov qword [rsp + 0x110], rax
test rsi, rsi
jne 0x140020323
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14002fae0
movaps xmm6, xmmword [rsp + 0x150]
add rsp, 0x160
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x90]
add rax, 0xfffffffffffff001
cmp rax, 0xffffffffffffefff
jbe 0x140020365
call qword [sym.imp.mozglue.dll_free]
jmp 0x14001ff74
mov rcx, qword [rsp + 0x128]
add rax, 0xfffffffffffff001
cmp rax, 0xffffffffffffefff
jbe 0x14002037e
call qword [sym.imp.mozglue.dll_free]
jmp 0x14002008b
mov rbx, rsi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmovae rbx, rax
cmp rbx, 0xfff
jae 0x14002017a
lea rcx, [rbx + 1]
call qword [sym.imp.mozglue.dll_moz_xmalloc]
mov rcx, rax
mov qword [rsp + 0x128], rcx
lea r8, [rsi + 1]
mov rdx, rdi
call sub.ntdll.dll_memcpy
jmp 0x14001ff44
lea rcx, [rbx + 0x28]
call qword [sym.imp.mozglue.dll_moz_xmalloc]
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
jmp 0x140020161
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x90]
mov rdx, rbx
mov r9, rbx
call fcn.14000fad0
jmp 0x14001fe13
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8, rbx
call sub.ntdll.dll_memset
jmp 0x14001fe0b
cmp qword [rsp + 0xa8], 0x10
jb 0x140020339
mov rax, qword [rsp + 0x90]
jmp 0x140020341
lea rdi, [rsp + 0xd0]
xorps xmm6, xmm6
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm6
mov word [rdx + 0x10], 1
mov rcx, rdi
call qword [sym.imp.mozglue.dll_public:_unsigned_long_long_unsigned___int64____cdecl_mozilla::TimeStampValue::operator__class_mozilla::TimeStampValue_const____ptr64_const___ptr64]
test rax, rax
jne 0x14001ff62
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov dl, 1
call qword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmmword [rsp + 0xe8], xmm6
mov word [rsp + 0xf8], 1
mov byte [rsp + 0x100], 0
jmp 0x14001ff62
mov rcx, r14
call int.1400339c0
jmp 0x14002006b
lea r14, [rsp + 0xc0]
lea rdi, [rsp + 0xc8]
lea rbx, [rsp + 0xd0]
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov dl, 1
call qword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
mov rax, qword [rsi + 0x10]
mov qword [rbx + 0x28], rax
movups xmm0, xmmword [rsi]
movups xmmword [rbx + 0x18], xmm0
xorps xmm0, xmm0
lea rdx, [rsp + 0x90]
movaps xmmword [rdx], xmm0
mov word [rdx + 0x10], 1
mov rcx, rbx
call qword [sym.imp.mozglue.dll_public:_unsigned_long_long_unsigned___int64____cdecl_mozilla::TimeStampValue::operator__class_mozilla::TimeStampValue_const____ptr64_const___ptr64]
test rax, rax
sete al
add al, al
or al, 1
mov byte [rbx + 0x30], al
mov rbx, qword [rbx - 0x18]
test rbx, rbx
je 0x140020355
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov ecx, 1
lea rsi, [rsp + 0x90]
mov qword [rsi], rbx
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], ecx
mov qword [rsp + 0x28], r15
lea rcx, [rsp + 0x40]
mov rdx, rsi
mov r8, r14
mov r9, rdi
call qword [sym.imp.mozglue.dll____AddMarker_UTextMarker_markers_baseprofiler_mozilla__V__basic_string_DU__char_traits_D_std__V__allocator_D_2]
cmp dword [rsi + 0x10], 2
jne 0x140020079
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140020079
call qword [sym.imp.mozglue.dll_free]
jmp 0x140020079
mov rcx, rsi
call fcn.140033de0
mov rcx, rsi
call qword [sym.imp.mozglue.dll_free]
jmp 0x1400200c2
lea rax, [rsp + 0x90]
mov qword [rsp + 0xa0], 0
mov byte [rax], 0
jmp 0x14001fe5f
xor eax, eax
lea rbx, [0x140058aa3]
xor ecx, ecx
jmp 0x1400202d2
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140020397
mov rcx, rax
jmp 0x140020103
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140020397
mov rcx, rax
jmp 0x140020128
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3