Function at 0x10013200
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 [0x1009a00c]
xor eax, ebp
mov dword [esp + 0x78], eax
mov eax, dword [0x1009b42c]
mov ecx, dword [0x1009a3c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x100132a3
push 0x1009b42c
call fcn.10046148
add esp, 4
cmp dword [0x1009b42c], 0xffffffff
jne 0x100132a3
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 0x1001347c
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 0x10013486
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 [0x1009b428], eax
push 0x1009b42c
call fcn.100460fe
add esp, 4
cmp dword [0x1009b428], 3
jge 0x100133fe
cmp dword [0x1009b424], 0
jne 0x100132c4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1009b424], eax
cmp dword [0x1009b4d8], 0
jne 0x10013420
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 0x10013435
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.10013b10
test al, al
je 0x10013442
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 0x1009b4b8
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [0x1009b4d0], 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
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x18], 4
movapd xmm0, xmmword [0x100882c0]
movupd xmmword [edi + 0x24], xmm0
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x4c], ebx
mov eax, 0xf
mov dword [edi + 0x50], eax
mov byte [edi + 0x3c], bl
mov dword [edi + 0x64], ebx
mov dword [edi + 0x68], eax
mov byte [edi + 0x54], bl
mov dword [0x1009b4d8], edi
mov ecx, str.GeckoMain
mov edx, esi
call fcn.10013bb0
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 0x10013457
mov dword [0x1009b4d0], 0
push 0x1009b4b8
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x50]
cmp eax, 4
je 0x100133df
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 0x1001346e
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.100468e0
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.10053340
add esp, 0xc
jmp 0x100132b0
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT__CorePS::Exists___
int3
call fcn.10056ec0
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 0x10013490
test ecx, ecx
je 0x100133b7
cmp ecx, 0x30
je 0x1001349a
jmp 0x100134a4
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x100133eb
mov eax, 5
jmp 0x10013291
mov eax, 4
jmp 0x10013291
cmp ecx, 0x6e
je 0x1001349a
cmp ecx, 0x4e
jne 0x100134a4
cmp byte [eax + 1], 0
je 0x100133b7
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 0x100133b7
mov ecx, 3
call fcn.10053290
test al, al
je 0x100134e5
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.10053340
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 + 0xc], 0x4000000
test eax, eax
je 0x1001350a
mov edi, eax
cmp byte [eax], 0
jne 0x10013649
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 0x10013527
mov edi, eax
cmp byte [eax], 0
jne 0x100136ab
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 [0x100882d0]
movsd qword [esp + 0x10], xmm0
test eax, eax
je 0x10013552
mov edi, eax
cmp byte [eax], 0
jne 0x10013785
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 0x1001356f
mov ebx, eax
cmp byte [eax], 0
jne 0x10013840
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 0x100135c9
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 0x100135a3
mov ebx, eax
cmp byte [eax], 0
jne 0x1001389c
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0xc]
movsd xmm0, qword [esp + 0x10]
mov edx, edi
push eax
push dword [esp + 0x58]
push dword [esp + 0x58]
call fcn.10057260
add esp, 0xc
jmp 0x100133b7
lea edi, [esp + 0x30]
mov dword [edi], 0
lea esi, [esp + 0x60]
mov ecx, esi
mov edx, eax
push edi
call fcn.10057150
add esp, 4
mov ecx, dword [esi]
mov edx, dword [esi + 4]
call fcn.10056bb0
mov edi, eax
mov ecx, 3
call fcn.10053290
test al, al
je 0x1001361c
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.10053340
add esp, 0x10
mov eax, dword [esp + 0x60]
cmp eax, 4
je 0x1001362f
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 0x10013586
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10013586
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 0x10013665
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test eax, eax
je 0x100139a9
cmp eax, 3
je 0x1001398e
cmp eax, 2
jne 0x10013af8
movzx eax, word [ebx]
cmp eax, 0x424b
jne 0x10013a29
imul esi, esi, 0x7d
jmp 0x100139a9
lea ebx, [esp + 0x60]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov ecx, ebx
push edi
call fcn.10002810
lea esi, [esp + 0x28]
mov ecx, esi
mov edx, ebx
call fcn.100172c0
sub esp, 0xc
movsd xmm0, qword [esi]
movsd qword [esp + 4], xmm0
lea esi, [esp + 0x3c]
mov dword [esp], esi
call fcn.100755b0
add esp, 0xc
mov ecx, ebx
call fcn.100326c0
cmp byte [esi + 8], 0
je 0x10013ac5
movsd xmm0, qword [esp + 0x30]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jb 0x10013ac5
jbe 0x10013723
movsd qword [esp + 0x40], xmm0
mov byte [esp + 0x48], 1
mov ecx, 3
call fcn.10053290
test al, al
je 0x10013527
cmp byte [esp + 0x38], 0
je 0x10013a8f
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 0x10], 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 + 0x24]
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.10053340
add esp, 0x14
jmp 0x10013527
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 0x10013aa4
sub esp, 0xc
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
lea esi, [esp + 0x6c]
mov dword [esp], esi
call fcn.100755b0
add esp, 0xc
cmp byte [esi + 8], 0
je 0x10013acd
movsd xmm1, qword [esp + 0x60]
xorpd xmm0, xmm0
movsd qword [esp + 0x10], xmm1
ucomisd xmm1, xmm0
jbe 0x10013acd
movsd xmm0, qword [0x10088230]
ucomisd xmm0, qword [esp + 0x10]
jb 0x10013acd
mov ecx, 3
call fcn.10053290
test al, al
je 0x10013552
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 + 0x24]
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.10053340
add esp, 0x14
jmp 0x10013552
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 0x10013ae8
mov ecx, 3
call fcn.10053290
test al, al
je 0x10013586
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.10053340
add esp, 0x10
jmp 0x10013586
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x60]
mov edx, ebx
push eax
call fcn.10057150
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, 4
je 0x100138c2
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.10053290
test al, al
je 0x10013906
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.10053340
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 0x1001393b
and cl, dl
je 0x10013ab0
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 0x100135a3
mov ecx, 3
call fcn.10053290
test al, al
je 0x100133b7
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.10053340
jmp 0x100135c1
movzx eax, word [ebx]
xor eax, 0x694b
movzx ecx, byte [ebx + 2]
xor ecx, 0x42
or cx, ax
jne 0x10013a3e
shl esi, 7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0
jne 0x10013af0
test esi, esi
jle 0x10013af0
mov ecx, 0x10000000
cmp esi, ecx
cmovb ecx, esi
cmp ecx, 0x20001
mov eax, 0x20000
cmovae eax, ecx
mov ecx, 0x20
dec eax
je 0x100139e6
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor eax, eax
inc eax
shl eax, cl
mov dword [esp + 0xc], eax
mov ecx, 3
call fcn.10053290
test al, al
je 0x1001350a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
push dword [esp + 0xc]
push edi
push eax
push str._I__d__d____MOZ_PROFILER_STARTUP_ENTRIES___u_n
call fcn.10053340
add esp, 0x10
jmp 0x1001350a
movzx eax, word [ebx]
cmp eax, 0x424d
jne 0x10013a5a
imul esi, esi, 0x1e848
jmp 0x100139a9
movzx eax, word [ebx]
xor eax, 0x694d
movzx ecx, byte [ebx + 2]
xor ecx, 0x42
or cx, ax
jne 0x10013a73
shl esi, 0x11
jmp 0x100139a9
movzx eax, word [ebx]
cmp eax, 0x4247
jne 0x10013af8
imul esi, esi, 0x7735940
jmp 0x100139a9
movzx eax, word [ebx]
xor eax, 0x6947
movzx ecx, byte [ebx + 2]
xor ecx, 0x42
or cx, ax
jne 0x10013af8
shl esi, 0x1b
jmp 0x100139a9
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_isSome___
int3
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT___elements__extentSize__0____elements__extentSize___dynamic_extent__
jmp 0x10013aba
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT___elements__extentSize__0____elements__extentSize___dynamic_extent__
int3
push edi
push str.__MOZ_PROFILER_STARTUP_DURATION_not_a_valid_float:__s
jmp 0x10013ad3
push edi
push str.__MOZ_PROFILER_STARTUP_INTERVAL_not_a_valid_float:__s
call fcn.10053340
add esp, 8
call fcn.10056ec0
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 0x10013ad3
push edi
push str.__MOZ_PROFILER_STARTUP_ENTRIES_not_a_valid_integer:__s
jmp 0x10013ad3
push str.__MOZ_PROFILER_STARTUP_ENTRIES_unit_must_be_one_of_the_following:_KB__KiB__MB__MiB__GB__GiB
call fcn.10053340
add esp, 4
jmp 0x10013adb