Function at 0x1001a440
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 [0x100a500c]
xor eax, ebp
mov dword [esp + 0x78], eax
mov eax, dword [0x100a6430]
mov ecx, dword [0x100a53c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x1001a4e3
push 0x100a6430
call fcn.1004fb5e
add esp, 4
cmp dword [0x100a6430], 0xffffffff
jne 0x1001a4e3
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 0x1001a6bd
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 0x1001a6c7
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 [0x100a642c], eax
push 0x100a6430
call fcn.1004fb5e
add esp, 4
cmp dword [0x100a642c], 3
jge 0x1001a63f
cmp dword [0x100a6428], 0
jne 0x1001a504
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [0x100a6428], eax
cmp dword [0x100a64e0], 0
jne 0x1001a661
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 0x1001a676
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.1001ae30
test al, al
je 0x1001a683
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 0x100a64c0
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov dword [0x100a64d8], 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 [0x100932c0]
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
movapd xmm0, xmmword [0x100932d0]
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 [0x100a64e0], edi
mov ecx, str.GeckoMain
mov edx, esi
call fcn.1001aff0
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 0x1001a698
mov dword [0x100a64d8], 0
push 0x100a64c0
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x50]
cmp eax, 4
je 0x1001a620
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 0x1001a6af
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.1004fb50
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.1005c480
add esp, 0xc
jmp 0x1001a4f0
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT__CorePS::Exists___
int3
call fcn.100601d0
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 0x1001a6d1
test ecx, ecx
je 0x1001a5f8
cmp ecx, 0x30
je 0x1001a6db
jmp 0x1001a6e5
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1001a62c
mov eax, 5
jmp 0x1001a4d1
mov eax, 4
jmp 0x1001a4d1
cmp ecx, 0x6e
je 0x1001a6db
cmp ecx, 0x4e
jne 0x1001a6e5
cmp byte [eax + 1], 0
je 0x1001a5f8
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 0x1001a5f8
mov ecx, 3
call fcn.1005c3d0
test al, al
je 0x1001a726
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.1005c480
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 0x1001a74b
mov edi, eax
cmp byte [eax], 0
jne 0x1001a88a
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 0x1001a768
mov edi, eax
cmp byte [eax], 0
jne 0x1001a8ec
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 [0x100932e0]
movsd qword [esp + 8], xmm0
test eax, eax
je 0x1001a793
mov edi, eax
cmp byte [eax], 0
jne 0x1001a95d
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 0x1001a7b0
mov ebx, eax
cmp byte [eax], 0
jne 0x1001aa18
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 0x1001a80a
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 0x1001a7e4
mov ebx, eax
cmp byte [eax], 0
jne 0x1001aa74
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.10060570
add esp, 0xc
jmp 0x1001a5f8
lea edi, [esp + 0x30]
mov dword [edi], 0
lea esi, [esp + 0x60]
mov ecx, esi
mov edx, eax
push edi
call fcn.10060460
add esp, 4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.1005fec0
mov edi, eax
mov ecx, 3
call fcn.1005c3d0
test al, al
je 0x1001a85d
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.1005c480
add esp, 0x10
mov eax, dword [esp + 0x60]
cmp eax, 4
je 0x1001a870
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 0x1001a7c7
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x1001a7c7
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 0x1001a8a6
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x1001ab9d
cmp eax, 3
je 0x1001ab82
cmp eax, 2
jne 0x1001ae11
movzx eax, word [ebx]
cmp eax, 0x424b
jne 0x1001ad3d
imul esi, esi, 0x7d
jmp 0x1001ab9d
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 0x1001ab66
test ebx, ebx
js 0x1001ae0c
mov eax, ebx
or eax, 0xf
cmp eax, 0x17
mov ecx, 0x16
cmovae ecx, eax
mov dword [esp + 8], ecx
cmp ecx, 0xfff
jb 0x1001ac1d
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 0x1001ac2d
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 0x1001ada3
sub esp, 0xc
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
lea esi, [esp + 0x6c]
mov dword [esp], esi
call fcn.10080680
add esp, 0xc
cmp byte [esi + 8], 0
je 0x1001add9
movsd xmm1, qword [esp + 0x60]
xorpd xmm0, xmm0
movsd qword [esp + 8], xmm1
ucomisd xmm1, xmm0
jbe 0x1001add9
movsd xmm0, qword [0x10093230]
ucomisd xmm0, qword [esp + 8]
jb 0x1001add9
mov ecx, 3
call fcn.1005c3d0
test al, al
je 0x1001a793
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.1005c480
add esp, 0x14
jmp 0x1001a793
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 0x1001adfc
mov ecx, 3
call fcn.1005c3d0
test al, al
je 0x1001a7c7
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.1005c480
add esp, 0x10
jmp 0x1001a7c7
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x60]
mov edx, ebx
push eax
call fcn.10060460
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, 4
je 0x1001aa9a
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.1005c3d0
test al, al
je 0x1001aade
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.1005c480
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 0x1001ab13
and cl, dl
je 0x1001adaf
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 0x1001a7e4
mov ecx, 3
call fcn.1005c3d0
test al, al
je 0x1001a5f8
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.1005c480
jmp 0x1001a802
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 0x1001ac4c
movzx eax, word [ebx]
xor eax, 0x694b
movzx ecx, byte [ebx + 2]
xor ecx, 0x42
or cx, ax
jne 0x1001ad52
shl esi, 7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0
jne 0x1001ae04
test esi, esi
jle 0x1001ae04
mov ecx, 0x10000000
cmp esi, ecx
cmovb ecx, esi
cmp ecx, 0x1000001
mov eax, 0x1000000
cmovae eax, ecx
mov ecx, 0x20
dec eax
je 0x1001abda
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.1005c3d0
test al, al
je 0x1001a74b
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.1005c480
add esp, 0x10
jmp 0x1001a74b
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.1001ea20
sub esp, 0xc
movsd xmm0, qword [ebx]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.10080680
add esp, 0xc
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x1001acaf
mov eax, dword [esp + 0x60]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x1001aca6
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x1001ae20
mov eax, ecx
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
cmp byte [esp + 0x38], 0
je 0x1001ade1
movsd xmm0, qword [esp + 0x30]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x1001ade1
jbe 0x1001acdb
movsd qword [esp + 0x40], xmm0
mov byte [esp + 0x48], 1
mov ecx, 3
call fcn.1005c3d0
test al, al
je 0x1001a768
cmp byte [esp + 0x38], 0
je 0x1001adc4
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.1005c480
add esp, 0x14
jmp 0x1001a768
movzx eax, word [ebx]
cmp eax, 0x424d
jne 0x1001ad6e
imul esi, esi, 0x1e848
jmp 0x1001ab9d
movzx eax, word [ebx]
xor eax, 0x694d
movzx ecx, byte [ebx + 2]
xor ecx, 0x42
or cx, ax
jne 0x1001ad87
shl esi, 0x11
jmp 0x1001ab9d
movzx eax, word [ebx]
cmp eax, 0x4247
jne 0x1001ae11
imul esi, esi, 0x7735940
jmp 0x1001ab9d
movzx eax, word [ebx]
xor eax, 0x6947
movzx ecx, byte [ebx + 2]
xor ecx, 0x42
or cx, ax
jne 0x1001ae11
shl esi, 0x1b
jmp 0x1001ab9d
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT___elements__extentSize__0____elements__extentSize___dynamic_extent__
jmp 0x1001adb9
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 0x1001ade7
push edi
push str.__MOZ_PROFILER_STARTUP_DURATION_not_a_valid_float:__s
call fcn.1005c480
add esp, 8
call fcn.100601d0
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 0x1001ade7
push edi
push str.__MOZ_PROFILER_STARTUP_ENTRIES_not_a_valid_integer:__s
jmp 0x1001ade7
call fcn.10057100
push str.__MOZ_PROFILER_STARTUP_ENTRIES_unit_must_be_one_of_the_following:_KB__KiB__MB__MiB__GB__GiB
call fcn.1005c480
add esp, 4
jmp 0x1001adef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3