Function at 0x10008670
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]
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor eax, ebp
test edx, edx
mov dword [esp + 0x68], eax
je 0x10008d2e
mov eax, dword [0x1007a70c]
test edi, edi
je 0x10008726
test eax, eax
mov dword [esp + 0x10], edx
je 0x10008d38
mov ebx, edi
and ebx, 0xfff00000
cmp ebx, edi
je 0x10008af0
mov eax, edi
shr eax, 0xc
movzx eax, al
lea eax, [eax + eax*2]
mov eax, dword [ebx + eax*4 + 0x18]
mov esi, eax
and esi, 0xfffff000
test al, 2
jne 0x100086de
mov eax, dword [esi]
mov esi, dword [eax + 8]
cmp esi, 0xfe000
ja 0x10008acd
mov ecx, dword [ebx]
mov eax, dword [esp + 0x10]
mov edx, edi
cmp eax, 0xfe000
ja 0x10008ac1
push esi
push eax
call fcn.100061b0
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x10008d7a
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.10069260
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test eax, eax
je 0x10008b44
cmp edx, 0x200
ja 0x10008a65
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov esi, dword [eax + 8]
test esi, esi
je 0x10008d4d
cmp edx, 8
jbe 0x1000891d
add edx, 0xf
and edx, 0xfffffff0
lea ebx, [esi + edx*2 + 0x50]
cmp byte [esi + 0x3c], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ebx
jne 0x10008801
lea eax, [esi + 0xc]
mov dword [esp + 0x20], eax
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [ebx]
test edx, edx
je 0x10008903
cmp dword [edx + 8], 0
je 0x10008903
mov ecx, dword [edx + 4]
mov dword [esp + 0x2c], esi
mov edi, dword [edx + ecx*4 + 0xc]
test edi, edi
je 0x10008960
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x10008880
bsf esi, edi
mov eax, dword [esp + 0x1c]
mov ebx, ecx
btc edi, esi
shl ebx, 5
or ebx, esi
imul ebx, dword [eax + 8]
mov eax, dword [eax + 0x18]
mov dword [edx + ecx*4 + 0xc], edi
add eax, edx
add ebx, eax
dec dword [edx + 8]
test ebx, ebx
mov ecx, dword [esp + 0x2c]
je 0x10008d70
mov eax, dword [esp + 0x10]
add dword [ecx + 0x2c], eax
push dword [esp + 0x20]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x10008709
cmp dword [esi + 0x40], 0
jne 0x1000877c
mov ebx, esi
lea eax, [esp + 0x40]
mov byte [esi + 0x3c], 0
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.1000cea0
xor edx, edx
cmp byte [esi + 8], 0
mov ecx, 0
mov esi, 0
je 0x1000884f
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp byte [esp + 0x48], 0
mov edi, 0
je 0x10008863
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov dword [eax], edi
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [ebx + 0x40], eax
mov esi, ebx
mov byte [ebx + 0x3c], 1
mov ebx, dword [esp + 0x1c]
jmp 0x1000877c
mov dword [esp + 0xc], ecx
mov ecx, dword [esi]
mov dword [esp + 8], edx
mov edx, dword [esi + 4]
mov eax, ecx
mov ebx, edx
shl eax, 0x17
shld ebx, ecx, 0x17
xor eax, ecx
mov ecx, dword [esi + 0xc]
xor ebx, edx
mov dword [esp + 0x18], eax
mov edx, ebx
shr edx, 0x11
mov eax, ecx
shr eax, 0x1a
xor eax, ecx
xor eax, edx
mov edx, dword [esi + 8]
mov dword [esi + 4], ecx
xor eax, ebx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
shld ebx, edx, 0xf
mov edx, dword [esp + 0x14]
shld ecx, edx, 6
mov dword [esi], edx
mov dword [esi + 0xc], eax
xor ecx, edx
xor ecx, ebx
xor ecx, dword [esp + 0x18]
mov dword [esi + 8], ecx
add ecx, edx
mov esi, edi
ror esi, cl
test esi, esi
je 0x100088fc
bsf esi, esi
add esi, ecx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
and esi, 0x1f
jmp 0x100087bf
mov esi, 0x20
jmp 0x100088ea
mov ecx, esi
mov edx, ebx
call fcn.100033b0
mov edx, eax
test eax, eax
mov dword [ebx], eax
jne 0x1000879e
jmp 0x10008d70
mov eax, edx
mov edi, esi
dec eax
je 0x100089c2
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor eax, eax
inc eax
mov esi, eax
shl esi, cl
cmp edx, eax
mov edx, 8
cmovbe esi, eax
cmp esi, 8
cmova edx, esi
mov esi, edi
mov eax, edx
shr eax, 3
or eax, 1
bsr eax, eax
shl eax, 5
lea ebx, [edi + eax + 0x50]
jmp 0x1000876a
mov eax, ecx
mov ecx, dword [ebx + 0x14]
mov ebx, eax
mov dword [esp + 0xc], eax
shl ebx, 5
mov edi, dword [esp + 0xc]
lea eax, [edi + 1]
cmp eax, ecx
mov dword [esp + 0xc], eax
jae 0x10008d6d
mov eax, dword [edx + edi*4 + 0x10]
add ebx, 0x20
test eax, eax
je 0x1000896e
mov esi, dword [esi + 0x40]
mov dword [esp + 0x18], edi
test esi, esi
jne 0x100089cc
bsf esi, eax
btc eax, esi
or ebx, esi
mov esi, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [esp + 0x1c]
imul ebx, dword [eax + 8]
mov eax, dword [eax + 0x18]
mov dword [edx + esi*4 + 0x10], ecx
mov ecx, dword [esp + 0xc]
add eax, edx
mov dword [edx + 4], ecx
jmp 0x100087da
mov ecx, 0x20
jmp 0x1000892e
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov dword [esp + 0x28], eax
mov dword [esp + 4], ecx
shld ecx, edi, 0x17
mov eax, edi
xor ecx, dword [esp + 4]
shl eax, 0x17
xor eax, edi
mov edi, dword [esi + 0xc]
mov dword [esp + 8], eax
mov eax, ecx
shr eax, 0x11
mov dword [esp + 0x14], edi
mov dword [esp + 4], eax
mov eax, edi
shr eax, 0x1a
xor eax, edi
mov edi, dword [esi + 8]
xor eax, dword [esp + 4]
mov dword [esp + 4], edi
mov edi, dword [esp + 0x14]
xor eax, ecx
mov dword [esi + 4], edi
mov edi, ecx
mov ecx, dword [esp + 8]
shld edi, ecx, 0xf
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 4]
shld ecx, edi, 6
mov dword [esi], edi
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
xor ecx, edi
xor ecx, dword [esp + 0x24]
xor ecx, dword [esp + 8]
mov dword [esi + 8], ecx
add ecx, edi
mov esi, eax
ror esi, cl
test esi, esi
je 0x10008a5e
bsf esi, esi
add esi, ecx
and esi, 0x1f
jmp 0x1000899a
mov esi, 0x20
jmp 0x10008a54
mov esi, dword [0x1007a728]
cmp edx, 0x801
jae 0x10008aa4
dec edx
je 0x10008a9d
bsr ecx, edx
xor ecx, 0x1f
neg cl
xor edx, edx
inc edx
shl edx, cl
mov eax, edx
shr eax, 9
or eax, 1
bsr eax, eax
xor eax, 0x20
shl eax, 5
lea ebx, [esi + eax + 0x50]
jmp 0x1000876a
mov ecx, 0x20
jmp 0x10008a7c
mov ecx, esi
cmp edx, 0xfe000
ja 0x10008d8d
push 0
call fcn.100046a0
add esp, 4
jmp 0x10008707
push esi
push eax
call fcn.100070e0
jmp 0x10008704
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x18]
cmp eax, dword [ecx + 8]
je 0x100086ec
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_mNode__mArenaId__mNode__mArena__mId_
mov ecx, 0xc3a
int3
push 0x1007a678
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [0x1007a690]
test ecx, ecx
je 0x10008d9e
xor eax, eax
mov ebx, ecx
dec eax
xor ecx, ecx
cmp dword [ebx + 0x10], edi
setb cl
cmova ecx, eax
test ecx, ecx
je 0x10008b2f
cmp ecx, 0xffffffff
je 0x10008b2a
mov ebx, dword [ebx + 0xc]
and ebx, 0xfffffffe
jmp 0x10008b0e
mov ebx, dword [ebx + 8]
jmp 0x10008b0e
mov ecx, ebx
mov esi, dword [ecx + 0x14]
push 0x1007a678
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x100086de
mov dword [esp + 0x10], edx
push 0x1007a738
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1007a70c]
test eax, eax
jne 0x10008d1a
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov eax, dword [0x1007a740]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x10008bb3
push 0x1007a740
call fcn.10069281
add esp, 4
cmp dword [0x1007a740], 0xffffffff
jne 0x10008bb3
lea esi, [esp + 0x40]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x1007a73c], eax
push 0x1007a740
call fcn.10069281
add esp, 4
mov eax, 0x1000
xor edx, edx
div dword [0x1007a73c]
test edx, edx
jne 0x10008dcd
mov ebx, 0x1007a744
push 0x40
push ebx
push str.MALLOC_OPTIONS
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
cmove ebx, eax
je 0x10008c22
mov al, byte [ebx]
test al, al
je 0x10008c22
xor esi, esi
movsx ecx, al
add ecx, 0xffffffd0
cmp ecx, 9
jbe 0x10008e17
xor edi, edi
inc edi
jmp 0x10008c01
mov al, byte [ebx + esi]
movsx ecx, al
dec edi
cmp ecx, 0x72
jne 0x10008da5
mov byte [0x1007a674], 1
test edi, edi
jne 0x10008bfe
mov al, byte [ebx + esi + 1]
inc esi
test al, al
jne 0x10008bea
mov edi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
mov esi, 0x1388
mov dword [0x1007a6e8], 0
push esi
push 0x1007a6ec
call edi
xor ebx, ebx
mov dword [0x1007a708], 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 eax, dword [0x1007a024]
mov dword [0x1007a730], ebx
mov dword [esp + 0x44], ebx
mov dword [0x1007a734], ebx
mov dword [esp + 0x40], eax
push esi
push 0x1007a710
call edi
test eax, eax
je 0x10008df1
lea edx, [esp + 0x40]
xor ecx, ecx
call fcn.10007350
test eax, eax
mov dword [0x1007a728], eax
je 0x10008e07
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.1000cea0
test eax, eax
je 0x10008dfd
mov edi, eax
push 0x4000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [0x1007a6b4], edi
inc eax
xchg dword [0x1007a70c], eax
call fcn.10006190
push 0x1007a738
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov edx, dword [esp + 0x10]
jmp 0x1000872e
mov edx, 1
jmp 0x10008695
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_malloc_initialized_
mov ecx, 0x100d
int3
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov esi, dword [0x1007a728]
mov eax, dword [ecx + eax*4]
mov dword [eax + 8], esi
jmp 0x10008757
dec dword [edx + 8]
push dword [esp + 0x20]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ebx, ebx
mov dword [eax], 0xc
jmp 0x10008711
push 0
push 0x100000
call fcn.10005ff0
jmp 0x10008704
xor ebx, ebx
jmp 0x10008b31
cmp ecx, 0x46
jne 0x10008e3c
mov eax, dword [0x1007a024]
test eax, eax
je 0x10008e5d
add eax, eax
je 0x10008c15
mov dword [0x1007a024], eax
jmp 0x10008c15
mov ecx, str._jemalloc_
mov edx, str.Compile_time_page_size_does_not_divide_the_runtime_one._n
call fcn.100076e0
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_CRASH__
mov ecx, 0xf21
int3
mov dword [0x1007a728], 0
jmp 0x10008e07
mov dword [0x1007a6b4], 0
push 0x1007a738
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x10008d7a
xor edi, edi
lea eax, [edi + edi*4]
lea edi, [ecx + eax*2]
movsx eax, byte [ebx + esi + 1]
inc esi
mov ecx, eax
add ecx, 0xffffffd0
cmp ecx, 0xa
jb 0x10008e19
test edi, edi
je 0x10008c19
jmp 0x10008c01
cmp ecx, 0x52
jne 0x10008e4d
mov byte [0x1007a674], 0
jmp 0x10008c15
cmp ecx, 0x66
jne 0x10008e6c
shr dword [0x1007a024], 1
jmp 0x10008c15
mov dword [0x1007a024], 1
jmp 0x10008c15
mov byte [esp + 0x40], al
mov byte [esp + 0x41], 0
push 0xa
push str._jemalloc_
mov eax, 2
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, 0x10071d10
call fcn.100076e0
jmp 0x10008c15