Function at 0x40fea0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov esi, dword [ebp + 8]
mov eax, dword [0x450010]
xor eax, ebp
mov dword [esp + 0xc0], eax
test esi, esi
je 0x410214
xor ebx, ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], 0xf
mov byte [esp + 0xa8], 0
sub esp, 0x20
mov dword [esp + 0x1c], ebx
movaps xmm0, xmmword [0x445200]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x41022a
mov edi, eax
cmp eax, 0xf
jbe 0x410234
sub esp, 0x10
mov al, byte [esp + 0x40]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 0xc], 0
lea ecx, [esp + 0xb8]
call fcn.0040fce0
cmp dword [esp + 0xbc], 0x10
jb 0x40ff5f
mov eax, dword [esp + 0xa8]
jmp 0x40ff66
lea eax, [esp + 0xa8]
xor ecx, ecx
push ecx
push ecx
push edi
push eax
push 0xffffffffffffffff
push esi
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0xbc]
cmp eax, edi
jne 0x410257
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
movups xmmword [esp + 6], xmm0
mov dword [esp + 0x30], str.ReadAheadLib
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], ebx
movups xmm0, xmmword [esp + 0x1c]
movups xmmword [esp + 0x3c], xmm0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
mov ax, 0x101
mov word [esp + 0x50], ax
movups xmm0, xmmword [esp]
movups xmmword [esp + 0x52], xmm0
movsd xmm0, qword [esp + 0xe]
movsd qword [esp + 0x60], xmm0
mov word [esp + 0x68], ax
mov byte [esp + 0x70], 0
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov esi, dword [esp + 0xb8]
cmp ecx, 0x10
jb 0x41002c
mov ebx, dword [esp + 0xa8]
jmp 0x410033
lea ebx, [esp + 0xa8]
lea eax, [esp + 0x90]
cmp esi, 0xf
jbe 0x41026c
mov edi, esi
or edi, 0xf
mov eax, 0x7fffffff
cmp edi, eax
cmovae edi, eax
cmp edi, 0xfff
jae 0x41027c
lea eax, [edi + 1]
push eax
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov dword [esp + 0x90], eax
lea ecx, [esi + 1]
push ecx
push ebx
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], edi
call dword [sym.imp.mozglue.dll_public:_static_bool___cdecl_mozilla::baseprofiler::detail::RacyFeatures::IsActiveAndUnpaused_void_]
test al, al
jne 0x410299
mov ecx, dword [esp + 0xbc]
cmp ecx, 0x10
mov esi, dword [ebp + 8]
jb 0x4100ce
mov eax, dword [esp + 0xa8]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
jbe 0x4102d8
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
call fcn.0040fe50
test al, al
je 0x4102f0
sub esp, 0x1c
movaps xmm0, xmmword [0x445210]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
inc eax
cmp eax, 2
jb 0x4101ab
sub esp, 0x18
movaps xmm0, xmmword [0x445220]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
inc eax
cmp eax, 2
jb 0x4101a4
sub esp, 0x14
movaps xmm0, xmmword [0x445230]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x41019d
mov ebx, eax
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x410196
mov eax, dword [ebx + 0x3c]
cmp dword [ebx + eax], 0x4550
jne 0x410196
movzx ecx, word [ebx + eax + 0x18]
cmp ecx, 0x10b
jne 0x410196
mov eax, dword [ebx + eax + 0x50]
cmp eax, 0x138
jb 0x410196
cmp eax, 0xffffffff
je 0x4102fc
push eax
push ebx
call fcn.00410440
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.mozglue.dll_public:_static_bool___cdecl_mozilla::baseprofiler::detail::RacyFeatures::IsActiveAndUnpaused_void_]
test al, al
jne 0x410302
mov ecx, dword [esp + 0xa4]
cmp ecx, 0x10
jb 0x4101e8
mov eax, dword [esp + 0x90]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
jbe 0x4103db
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 0xf
mov byte [esp + 0x90], 0
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
test esi, esi
jne 0x4103ef
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.004230e0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0xf
jmp 0x40ff8a
lea eax, [esp + 0xa8]
mov dword [eax + 0x10], edi
push edi
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov byte [esp + edi + 0xa8], 0
jmp 0x40ff4c
cmp ecx, 0x10
jb 0x410405
mov eax, dword [esp + 0xa8]
jmp 0x41040c
movups xmm0, xmmword [ebx]
movups xmmword [eax], xmm0
mov edi, 0xf
jmp 0x410080
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x41006b
lea eax, [esp + 0x40]
cmp byte [eax + 0x11], 0
lea ecx, [esp + 0x48]
cmove ecx, eax
mov edx, dword [ecx]
or edx, dword [ecx + 4]
jne 0x41009c
push 1
push eax
call dword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
add esp, 8
xorps xmm0, xmm0
movups xmmword [esp + 0x58], xmm0
mov word [esp + 0x68], 0x101
mov byte [esp + 0x70], 0
jmp 0x41009c
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x410434
mov eax, ecx
jmp 0x4100c4
mov ecx, esi
call fcn.00425620
jmp 0x4101ab
int3
lea edi, [esp + 0x38]
lea esi, [esp + 0xa8]
push 1
push esi
call dword [sym.imp.mozglue.dll_private:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::Now_bool_]
add esp, 8
movsd xmm0, qword [esi + 0x10]
movsd qword [edi + 0x30], xmm0
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x20], xmm0
movzx eax, byte [edi + 0x19]
shl eax, 3
or eax, 0x10
mov ecx, dword [esp + eax + 0x30]
or ecx, dword [esp + eax + 0x34]
sete al
add al, al
or al, 1
mov byte [edi + 0x38], al
mov esi, dword [edi - 8]
test esi, esi
je 0x410426
xor ebx, ebx
inc ebx
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], ebx
sub esp, 0x18
mov al, byte [esp + 0x34]
mov byte [esp + 0x10], al
lea eax, [esp + 0xa8]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
lea eax, [esp + 0xc0]
mov dword [esp + 4], eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call dword [sym.imp.mozglue.dll____AddMarker_UTextMarker_markers_baseprofiler_mozilla__V__basic_string_DU__char_traits_D_std__V__allocator_D_2]
add esp, 0x18
cmp dword [esp + 0xb0], 2
jne 0x4101b9
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x4101b9
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x4101b9
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x410434
mov eax, ecx
jmp 0x4101de
mov ecx, esi
call fcn.00425a20
push esi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
jmp 0x410214
lea eax, [esp + 0xa8]
mov dword [esp + 0xb8], 0
mov byte [eax], 0
mov ecx, dword [esp + 0xbc]
jmp 0x40ff8a
xor eax, eax
mov esi, 0x449920
xor ebx, ebx
jmp 0x41035d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3