Function at 0x100168a0
Capabilities:
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [esp + 0x68], eax
mov eax, dword [0x1007a708]
test eax, eax
je 0x10016ce8
mov edx, dword [ebp + 8]
test edx, edx
je 0x10016ca8
cmp edx, 0x200
ja 0x10016ad0
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10016cb2
cmp edx, 8
jbe 0x10016bae
add edx, 0xf
and edx, 0xfffffff0
lea edi, [ecx + edx*2]
add edi, 0x50
mov dword [esp + 0x2c], edx
cmp byte [ecx + 0x3c], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edi
jne 0x100169c2
lea esi, [ecx + 0xc]
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [edi]
test eax, eax
je 0x10016b1a
cmp dword [eax + 8], 0
je 0x10016b1a
mov dword [esp + 0x14], esi
mov ebx, dword [eax + 4]
mov esi, dword [eax + ebx*4 + 0xc]
test esi, esi
mov ecx, dword [esp + 0x18]
je 0x10016b34
mov edi, dword [ecx + 0x40]
test edi, edi
jne 0x10016a41
bsf edx, esi
mov edi, ebx
shl edi, 5
or edi, edx
btc esi, edx
mov ecx, dword [esp + 0x20]
imul edi, dword [ecx + 8]
mov ecx, dword [ecx + 0x18]
mov dword [eax + ebx*4 + 0xc], esi
add ecx, eax
add edi, ecx
mov esi, dword [esp + 0x14]
add dword [eax + 8], 0xffffffff
test edi, edi
je 0x10016ed5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
add dword [ecx + 0x2c], eax
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
test edi, edi
je 0x10016edc
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.1002cad0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ecx + 0x40], 0
jne 0x10016923
mov byte [ecx + 0x3c], 0
lea eax, [esp + 0x40]
push eax
call sym.mozglue.dll_class_mozilla::Maybe_unsigned_long_long_unsigned___int64_____cdecl_mozilla::RandomUint64_void_
add esp, 4
lea esi, [esp + 0x30]
push esi
call sym.mozglue.dll_class_mozilla::Maybe_unsigned_long_long_unsigned___int64_____cdecl_mozilla::RandomUint64_void_
add esp, 4
mov ecx, 0x10
call fcn.1000b180
xor edx, edx
cmp byte [esi + 8], 0
mov ecx, 0
mov esi, 0
je 0x10016a0e
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp byte [esp + 0x48], 0
mov ebx, 0
je 0x10016a22
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x40], eax
mov byte [ecx + 0x3c], 1
mov edi, dword [esp + 0x20]
jmp 0x10016923
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0x10], edx
shld edx, ecx, 0x17
mov ebx, ecx
shl ebx, 0x17
xor ebx, ecx
mov eax, dword [edi + 0xc]
xor edx, dword [esp + 0x10]
mov dword [esp + 4], edx
mov ecx, dword [edi + 8]
mov dword [esp + 0x10], ecx
mov dword [edi + 4], eax
shld edx, ebx, 0xf
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
xor ebx, edx
mov ecx, eax
shr ecx, 0x1a
xor ecx, eax
shld eax, edx, 6
xor eax, ebx
xor eax, dword [esp + 0x1c]
mov edx, dword [esp + 4]
xor ecx, edx
shr edx, 0x11
xor ecx, edx
mov edx, dword [esp + 0x10]
mov dword [edi], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 8], eax
mov ecx, eax
add ecx, edx
mov edx, esi
ror edx, cl
test edx, edx
je 0x10016ac9
bsf edx, edx
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
add edx, ecx
and edx, 0x1f
jmp 0x10016966
mov edx, 0x20
jmp 0x10016ab7
mov ecx, dword [0x1007a724]
cmp edx, 0x801
jae 0x10016bf1
mov esi, ecx
add edx, 0xffffffff
je 0x10016c0e
bsr ecx, edx
xor ecx, 0x1f
neg cl
mov edx, 1
shl edx, cl
mov eax, edx
shr eax, 9
or eax, 1
bsr eax, eax
xor eax, 0x20
shl eax, 5
mov ecx, esi
lea edi, [esi + eax]
add edi, 0x50
jmp 0x1001690d
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.10017000
mov dword [edi], eax
test eax, eax
jne 0x10016941
jmp 0x10016ed5
mov dword [esp + 8], eax
mov ecx, dword [edi + 0x14]
mov dword [esp + 0xc], ebx
mov edi, ebx
shl edi, 5
mov edx, dword [esp + 0xc]
lea eax, [edx + 1]
mov dword [esp + 0xc], eax
cmp eax, ecx
jae 0x10016eca
mov eax, dword [esp + 8]
mov eax, dword [eax + edx*4 + 0x10]
add edi, 0x20
test eax, eax
je 0x10016b44
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + 0x40]
test esi, esi
jne 0x10016c18
bsf edx, eax
mov esi, dword [esp + 0x14]
or edi, edx
btc eax, edx
mov ebx, eax
mov eax, dword [esp + 0x20]
imul edi, dword [eax + 8]
mov ecx, dword [eax + 0x18]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov dword [eax + edx*4 + 0x10], ebx
add ecx, eax
add edi, ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
jmp 0x10016987
mov esi, ecx
cmp edx, 2
jb 0x10016ca1
mov ecx, 0x20
mov eax, 0x20
add edx, 0xffffffff
je 0x10016bce
bsr eax, edx
xor eax, 0x1f
sub ecx, eax
mov edx, 1
shl edx, cl
cmp edx, 8
ja 0x10016be1
mov edx, 8
mov eax, edx
shr eax, 3
or eax, 1
bsr eax, eax
jmp 0x10016b0a
cmp edx, 0xfe000
ja 0x10016cd4
push 0
call fcn.10018a40
add esp, 4
mov edi, eax
jmp 0x100169a5
mov ecx, 0x20
jmp 0x10016af3
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 4], edx
shld edx, eax, 0x17
mov ebx, eax
shl ebx, 0x17
xor ebx, eax
mov ecx, dword [esi + 0xc]
xor edx, dword [esp + 4]
mov dword [esp + 0x28], edx
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov dword [esi + 4], ecx
shld edx, ebx, 0xf
mov dword [esp + 0x24], edx
mov edx, dword [esp + 4]
xor ebx, edx
mov eax, ecx
shr eax, 0x1a
xor eax, ecx
shld ecx, edx, 6
xor ecx, ebx
xor ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
xor eax, edx
shr edx, 0x11
xor eax, edx
mov edx, dword [esp + 4]
mov dword [esi], edx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], ecx
add ecx, edx
mov edx, eax
ror edx, cl
test edx, edx
je 0x10016c9a
bsf edx, edx
mov esi, dword [esp + 0x14]
add edx, ecx
and edx, 0x1f
jmp 0x10016b80
mov edx, 0x20
jmp 0x10016c8c
xor ecx, ecx
jmp 0x10016bd0
mov edx, 1
jmp 0x100168cf
mov esi, dword [0x1007a724]
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, esi
mov dword [eax + 8], esi
jmp 0x100168f8
push 0
push 0x100000
call fcn.10001700
add esp, 8
jmp 0x10016c07
push 0x1007a734
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1007a708]
test eax, eax
jne 0x10016eba
mov eax, dword [0x1007a73c]
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x10016d53
push 0x1007a73c
call fcn.1002d432
add esp, 4
cmp dword [0x1007a73c], 0xffffffff
jne 0x10016d53
lea esi, [esp + 0x40]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x1007a738], eax
push 0x1007a73c
call fcn.1002d432
add esp, 4
mov eax, 0x1000
xor edx, edx
div dword [0x1007a738]
test edx, edx
jne 0x10016f17
mov edi, 0x1007a740
push 0x40
push edi
push str.MALLOC_OPTIONS
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
cmove edi, eax
je 0x10016dc2
mov al, byte [edi]
test al, al
je 0x10016dc2
xor ebx, ebx
movsx ecx, al
add ecx, 0xffffffd0
cmp ecx, 9
jbe 0x10016f61
xor esi, esi
inc esi
dec esi
movsx ecx, al
cmp ecx, 0x72
jne 0x10016eef
mov byte [0x1007a674], 1
test esi, esi
je 0x10016db9
mov al, byte [edi + ebx]
jmp 0x10016d9c
mov al, byte [edi + ebx + 1]
inc ebx
test al, al
jne 0x10016d8a
mov dword [0x1007a6e8], 0
mov esi, 0x1388
mov edi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
push esi
push 0x1007a6ec
call edi
xor ebx, ebx
mov dword [0x1007a780], ebx
mov dword [0x1007a704], ebx
push esi
push 0x1007a678
call edi
mov dword [0x1007a690], ebx
mov dword [0x1007a694], ebx
mov dword [0x1007a698], ebx
mov dword [0x1007a6e4], ebx
mov dword [0x1007a6dc], ebx
push esi
push 0x1007a6b8
call edi
mov dword [0x1007a72c], ebx
mov dword [0x1007a730], ebx
mov dword [esp + 0x44], ebx
mov eax, dword [0x1007a024]
mov dword [esp + 0x40], eax
push esi
push 0x1007a70c
call edi
test eax, eax
je 0x10016f3b
lea edx, [esp + 0x40]
xor ecx, ecx
call fcn.10021bf0
mov dword [0x1007a724], eax
test eax, eax
je 0x10016f51
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 8], eax
push 0x1388
push 0x1007a69c
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
mov ecx, 0x4000
call fcn.1000b180
test eax, eax
je 0x10016f47
mov esi, eax
push 0x4000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x1007a6b4], esi
xor eax, eax
inc eax
xchg dword [0x1007a708], eax
call fcn.100016e0
push 0x1007a734
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x100168c4
mov eax, dword [esp + 8]
dec dword [eax + 8]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
xor edi, edi
jmp 0x100169ad
cmp ecx, 0x46
jne 0x10016f86
mov eax, dword [0x1007a024]
test eax, eax
je 0x10016fa7
add eax, eax
je 0x10016db0
mov dword [0x1007a024], eax
jmp 0x10016db0
mov ecx, str._jemalloc_
mov edx, str.Compile_time_page_size_does_not_divide_the_runtime_one._n
call fcn.10030280
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_CRASH__
int3
mov dword [0x1007a724], 0
jmp 0x10016f51
mov dword [0x1007a6b4], 0
push 0x1007a734
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x10016edc
xor esi, esi
lea eax, [esi + esi*4]
lea esi, [ecx + eax*2]
movsx eax, byte [edi + ebx + 1]
inc ebx
mov ecx, eax
add ecx, 0xffffffd0
cmp ecx, 0xa
jb 0x10016f63
test esi, esi
je 0x10016db9
jmp 0x10016d9c
cmp ecx, 0x52
jne 0x10016f97
mov byte [0x1007a674], 0
jmp 0x10016db0
cmp ecx, 0x66
jne 0x10016fb6
shr dword [0x1007a024], 1
jmp 0x10016db0
mov dword [0x1007a024], 1
jmp 0x10016db0
lea ecx, [esp + 0x40]
mov byte [ecx], al
mov byte [ecx + 1], 0
mov eax, 2
push 0xa
push str._jemalloc_
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
add esp, 0xc
push 0x35
push str.:__malloc__Unsupported_character_in_malloc_options:_
mov eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
add esp, 0xc
lea ecx, [esp + 0x40]
mov edx, 0x10071020
call fcn.10030280
jmp 0x10016db0