Function at 0x1001aa40
Capabilities:
Query environment variable
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x100a400c]
xor eax, ebp
mov dword [esp + 0x78], eax
mov eax, dword [0x100a5434]
mov ecx, dword [0x100a43c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x1001aae3
push 0x100a5434
call fcn.1004f02e
add esp, 4
cmp dword [0x100a5434], 0xffffffff
jne 0x1001aae3
push str.MOZ_BASE_PROFILER_VERBOSE_LOGGING
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x1001acbd
push str.MOZ_BASE_PROFILER_DEBUG_LOGGING
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x1001acc7
push str.MOZ_BASE_PROFILER_LOGGING
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
xor ecx, ecx
test eax, eax
setne cl
lea eax, [ecx + ecx*2]
mov dword [0x100a5430], eax
push 0x100a5434
call fcn.1004f02e
add esp, 4
cmp dword [0x100a5430], 3
jge 0x1001ac3f
cmp dword [0x100a542c], 0
jne 0x1001ab04
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [0x100a542c], eax
cmp dword [0x100a54e0], 0
jne 0x1001ac61
push str.MOZ_BASE_PROFILER_HELP
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x1001ac76
xor ebx, ebx
mov dword [esp + 0x5c], ebx
lea ecx, [esp + 0x50]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx], 4
push 1
call fcn.1001b430
test al, al
je 0x1001ac83
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [eax + ecx*4], str.GeckoMain
inc dword [esp + 0x54]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov edi, eax
push 0x100a54c0
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [0x100a54d8], edi
push 0x70
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov edi, eax
push eax
call sym.mozglue.dll_public:_static_class_mozilla::TimeStamp___cdecl_mozilla::TimeStamp::ProcessCreation_void_
add esp, 4
movaps xmm0, xmmword [0x100922c0]
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
movapd xmm0, xmmword [0x100922d0]
movupd xmmword [edi + 0x30], xmm0
mov dword [edi + 0x4c], ebx
mov eax, 0xf
mov dword [edi + 0x50], eax
mov byte [edi + 0x3c], bl
mov dword [edi + 0x54], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x68], eax
mov byte [edi + 0x54], bl
mov dword [0x100a54e0], edi
mov ecx, str.GeckoMain
mov edx, esi
call fcn.1001b5f0
push str.MOZ_PROFILER_STARTUP
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x1001ac98
mov dword [0x100a54d8], 0
push 0x100a54c0
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x50]
cmp eax, 4
je 0x1001ac20
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x1001acaf
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.1004f020
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push esi
push eax
push str._I__d__d__profiler_init_n
call fcn.1005bb70
add esp, 0xc
jmp 0x1001aaf0
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT__CorePS::Exists___
int3
call fcn.1005f8e0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_filters.append_kMainThreadName__
int3
movzx ecx, byte [eax]
cmp ecx, 0x4d
jg 0x1001acd1
test ecx, ecx
je 0x1001abf8
cmp ecx, 0x30
je 0x1001acdb
jmp 0x1001ace5
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1001ac2c
mov eax, 5
jmp 0x1001aad1
mov eax, 4
jmp 0x1001aad1
cmp ecx, 0x6e
je 0x1001acdb
cmp ecx, 0x4e
jne 0x1001ace5
cmp byte [eax + 1], 0
je 0x1001abf8
push str.MOZ_PROFILER_STARTUP_NO_BASE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
jne 0x1001abf8
mov ecx, 3
call fcn.1005bac0
test al, al
je 0x1001ad26
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push esi
push eax
push str._I__d__d____MOZ_PROFILER_STARTUP_is_set_n
call fcn.1005bb70
add esp, 0xc
push str.MOZ_PROFILER_STARTUP_ENTRIES
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov dword [esp + 0x14], 0x4000000
test eax, eax
je 0x1001ad4b
mov edi, eax
cmp byte [eax], 0
jne 0x1001ae8a
push str.MOZ_PROFILER_STARTUP_DURATION
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x1001ad68
mov edi, eax
cmp byte [eax], 0
jne 0x1001aeec
push str.MOZ_PROFILER_STARTUP_INTERVAL
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
movsd xmm0, qword [0x100922e0]
movsd qword [esp + 8], xmm0
test eax, eax
je 0x1001ad93
mov edi, eax
cmp byte [eax], 0
jne 0x1001af5d
push str.MOZ_PROFILER_STARTUP_FEATURES_BITFIELD
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x1001adb0
mov ebx, eax
cmp byte [eax], 0
jne 0x1001b018
push str.MOZ_PROFILER_STARTUP_FEATURES
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov edi, 0x105104
test eax, eax
jne 0x1001ae0a
push str.MOZ_PROFILER_STARTUP_FILTERS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x1001ade4
mov ebx, eax
cmp byte [eax], 0
jne 0x1001b074
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x14]
movsd xmm0, qword [esp + 8]
mov edx, edi
push eax
push dword [esp + 0x58]
push dword [esp + 0x58]
call fcn.1005fc90
add esp, 0xc
jmp 0x1001abf8
lea edi, [esp + 0x30]
mov dword [edi], 0
lea esi, [esp + 0x60]
mov ecx, esi
mov edx, eax
push edi
call fcn.1005fb80
add esp, 4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.1005f5b0
mov edi, eax
mov ecx, 3
call fcn.1005bac0
test al, al
je 0x1001ae5d
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push edi
push esi
push eax
push str._I__d__d____MOZ_PROFILER_STARTUP_FEATURES___d_n
call fcn.1005bb70
add esp, 0x10
mov eax, dword [esp + 0x60]
cmp eax, 4
je 0x1001ae70
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1001adc7
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1001adc7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ecx, ecx
mov dword [eax], ecx
push 0xa
push ecx
push edi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
mov esi, eax
mov ebx, edi
dec ebx
movsx eax, byte [ebx + 1]
inc ebx
add eax, 0xffffffd0
cmp eax, 0xa
jb 0x1001aea6
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x1001b19d
cmp eax, 3
je 0x1001b182
cmp eax, 2
jne 0x1001b411
movzx eax, word [ebx]
cmp eax, 0x424b
jne 0x1001b33d
imul esi, esi, 0x7d
jmp 0x1001b19d
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0xf
mov byte [esp + 0x60], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
cmp eax, 0xf
jbe 0x1001b166
test ebx, ebx
js 0x1001b40c
mov eax, ebx
or eax, 0xf
cmp eax, 0x17
mov ecx, 0x16
cmovae ecx, eax
mov dword [esp + 8], ecx
cmp ecx, 0xfff
jb 0x1001b21d
mov eax, dword [esp + 8]
add eax, 0x24
push eax
call sym.mozglue.dll_moz_xmalloc
add esp, 4
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x1001b22d
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
cmp eax, 0xffffffff
je 0x1001b3a3
sub esp, 0xc
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
lea esi, [esp + 0x6c]
mov dword [esp], esi
call fcn.10080200
add esp, 0xc
cmp byte [esi + 8], 0
je 0x1001b3d9
movsd xmm1, qword [esp + 0x60]
xorpd xmm0, xmm0
movsd qword [esp + 8], xmm1
ucomisd xmm1, xmm0
jbe 0x1001b3d9
movsd xmm0, qword [0x10092230]
ucomisd xmm0, qword [esp + 8]
jb 0x1001b3d9
mov ecx, 3
call fcn.1005bac0
test al, al
je 0x1001ad93
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
sub esp, 0x14
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 0xc], xmm0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], str._I__d__d____MOZ_PROFILER_STARTUP_INTERVAL___f_n
call fcn.1005bb70
add esp, 0x14
jmp 0x1001ad93
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor esi, esi
mov dword [eax], esi
push 0xa
push esi
push ebx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
mov edi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], esi
jne 0x1001b3fc
mov ecx, 3
call fcn.1005bac0
test al, al
je 0x1001adc7
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push edi
push esi
push eax
push str._I__d__d____MOZ_PROFILER_STARTUP_FEATURES_BITFIELD___d_n
call fcn.1005bb70
add esp, 0x10
jmp 0x1001adc7
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x60]
mov edx, ebx
push eax
call fcn.1005fb80
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, 4
je 0x1001b09a
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], eax
mov ecx, 3
call fcn.1005bac0
test al, al
je 0x1001b0de
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push ebx
push esi
push eax
push str._I__d__d____MOZ_PROFILER_STARTUP_FILTERS___s_n
call fcn.1005bb70
add esp, 0x10
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x18], ebx
test esi, esi
setne cl
mov edx, 4
cmovne edx, esi
mov dword [esp + 0x1c], edx
cmp ebx, 0xffffffff
setne dl
or esi, ebx
je 0x1001b113
and cl, dl
je 0x1001b3af
sub esp, 0xc
movsd xmm0, qword [esp + 0x24]
movsd qword [esp], xmm0
mov dword [esp + 8], eax
call sym.mozglue.dll_bool___cdecl_mozilla::profiler::detail::FiltersExcludePid_class_mozilla::Span_char_const__const___1___class_mozilla::baseprofiler::BaseProfilerProcessId_
add esp, 0xc
test al, al
je 0x1001ade4
mov ecx, 3
call fcn.1005bac0
test al, al
je 0x1001abf8
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push esi
push eax
push str._I__d__d______This_process_is_excluded_and_wont_be_profiled_n
call fcn.1005bb70
jmp 0x1001ae02
lea eax, [esp + 0x60]
mov dword [eax + 0x10], ebx
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esp + ebx + 0x60], 0
jmp 0x1001b24c
movzx eax, word [ebx]
xor eax, 0x694b
movzx ecx, byte [ebx + 2]
xor ecx, 0x42
or cx, ax
jne 0x1001b352
shl esi, 7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0
jne 0x1001b404
test esi, esi
jle 0x1001b404
mov ecx, 0x10000000
cmp esi, ecx
cmovb ecx, esi
cmp ecx, 0x1000001
mov eax, 0x1000000
cmovae eax, ecx
mov ecx, 0x20
dec eax
je 0x1001b1da
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor eax, eax
inc eax
shl eax, cl
mov dword [esp + 0x14], eax
mov ecx, 3
call fcn.1005bac0
test al, al
je 0x1001ad4b
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push dword [esp + 0x14]
push esi
push eax
push str._I__d__d____MOZ_PROFILER_STARTUP_ENTRIES___u_n
call fcn.1005bb70
add esp, 0x10
jmp 0x1001ad4b
mov eax, dword [esp + 8]
inc eax
push eax
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov esi, eax
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 8]
mov dword [esp + 0x74], eax
push ebx
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
mov dword [esp + 0x60], esi
lea ebx, [esp + 0x28]
lea esi, [esp + 0x60]
mov ecx, ebx
mov edx, esi
call fcn.1001f160
sub esp, 0xc
movsd xmm0, qword [ebx]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.10080200
add esp, 0xc
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x1001b2af
mov eax, dword [esp + 0x60]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x1001b2a6
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1001b420
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
cmp byte [esp + 0x38], 0
je 0x1001b3e1
movsd xmm0, qword [esp + 0x30]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x1001b3e1
jbe 0x1001b2db
movsd qword [esp + 0x40], xmm0
mov byte [esp + 0x48], 1
mov ecx, 3
call fcn.1005bac0
test al, al
je 0x1001ad68
cmp byte [esp + 0x38], 0
je 0x1001b3c4
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 8], xmm0
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
sub esp, 0x14
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 0xc], xmm0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], str._I__d__d____MOZ_PROFILER_STARTUP_DURATION___f_n
call fcn.1005bb70
add esp, 0x14
jmp 0x1001ad68
movzx eax, word [ebx]
cmp eax, 0x424d
jne 0x1001b36e
imul esi, esi, 0x1e848
jmp 0x1001b19d
movzx eax, word [ebx]
xor eax, 0x694d
movzx ecx, byte [ebx + 2]
xor ecx, 0x42
or cx, ax
jne 0x1001b387
shl esi, 0x11
jmp 0x1001b19d
movzx eax, word [ebx]
cmp eax, 0x4247
jne 0x1001b411
imul esi, esi, 0x7735940
jmp 0x1001b19d
movzx eax, word [ebx]
xor eax, 0x6947
movzx ecx, byte [ebx + 2]
xor ecx, 0x42
or cx, ax
jne 0x1001b411
shl esi, 0x1b
jmp 0x1001b19d
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT___elements__extentSize__0____elements__extentSize___dynamic_extent__
jmp 0x1001b3b9
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT___elements__extentSize__0____elements__extentSize___dynamic_extent__
int3
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_isSome___
int3
push edi
push str.__MOZ_PROFILER_STARTUP_INTERVAL_not_a_valid_float:__s
jmp 0x1001b3e7
push edi
push str.__MOZ_PROFILER_STARTUP_DURATION_not_a_valid_float:__s
call fcn.1005bb70
add esp, 8
call fcn.1005f8e0
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push ebx
push str.__MOZ_PROFILER_STARTUP_FEATURES_BITFIELD_not_a_valid_integer:__s
jmp 0x1001b3e7
push edi
push str.__MOZ_PROFILER_STARTUP_ENTRIES_not_a_valid_integer:__s
jmp 0x1001b3e7
call fcn.10056620
push str.__MOZ_PROFILER_STARTUP_ENTRIES_unit_must_be_one_of_the_following:_KB__KiB__MB__MiB__GB__GiB
call fcn.1005bb70
add esp, 4
jmp 0x1001b3ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3