Function at 0x1000b020
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 [0x1007a70c]
test eax, eax
je 0x1000b686
push 0x1007a710
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edi, dword [0x1007a734]
test edi, edi
je 0x1000b671
mov eax, dword [ebp + 8]
mov ecx, 0xffffffff
xor edx, edx
cmp dword [edi + 8], eax
setb dl
cmova edx, ecx
cmp edx, 0xffffffff
jne 0x1000b080
mov edi, dword [edi]
test edi, edi
jne 0x1000b065
jmp 0x1000b671
test edx, edx
jne 0x1000b3d1
push 0x1007a710
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [0x1007a70c]
test eax, eax
je 0x1000b487
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
imul esi, eax
mul ecx
cmovno ebx, esi
jo 0x1000b6f0
xor edx, edx
inc edx
test ebx, ebx
cmove ebx, edx
test edi, edi
je 0x1000b68d
cmp ebx, 0x800
ja 0x1000b39c
cmp ebx, 9
jb 0x1000b2fe
cmp ebx, 0x201
jae 0x1000b2d6
add ebx, 0xf
mov eax, ebx
shr ebx, 4
and eax, 0xfffffff0
mov dword [esp + 0x18], eax
shl ebx, 5
cmp byte [edi + 0x3c], 0
mov eax, ebx
mov dword [esp + 0x1c], ebx
lea ebx, [edi + ebx + 0x50]
jne 0x1000b1b4
lea eax, [edi + 0xc]
mov dword [esp + 0x2c], eax
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebx]
test eax, eax
je 0x1000b2be
cmp dword [eax + 8], 0
je 0x1000b2be
mov ecx, dword [eax + 4]
mov esi, dword [eax + ecx*4 + 0xc]
test esi, esi
je 0x1000b337
mov ebx, dword [edi + 0x40]
test ebx, ebx
jne 0x1000b233
bsf edx, esi
mov ebx, ecx
btc esi, edx
shl ebx, 5
or ebx, edx
mov edx, ecx
mov ecx, dword [esp + 0x1c]
imul ebx, dword [edi + ecx + 0x58]
mov ecx, dword [edi + ecx + 0x68]
mov dword [eax + edx*4 + 0xc], esi
add ecx, eax
add ebx, ecx
dec dword [eax + 8]
test ebx, ebx
je 0x1000b6e6
mov esi, dword [esp + 0x18]
add dword [edi + 0x2c], esi
push dword [esp + 0x2c]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push esi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebx, ebx
je 0x1000b6f0
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
cmp dword [edi + 0x40], 0
jne 0x1000b10f
lea eax, [esp + 0x40]
mov dword [esp + 4], edi
mov byte [edi + 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 edi, 0
mov esi, 0
je 0x1000b204
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp byte [esp + 0x48], 0
mov ecx, 0
je 0x1000b218
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 0xc], edi
mov edi, dword [esp + 4]
mov dword [eax + 8], esi
mov dword [edi + 0x40], eax
mov byte [edi + 0x3c], 1
jmp 0x1000b10f
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], edi
mov edi, ecx
mov edx, eax
shl edi, 0x17
shld edx, ecx, 0x17
xor edi, ecx
mov ecx, dword [ebx + 0xc]
xor edx, eax
mov dword [esp + 0x14], edi
mov edi, edx
shr edi, 0x11
mov eax, ecx
shr eax, 0x1a
xor eax, ecx
xor eax, edi
mov edi, dword [ebx + 8]
mov dword [ebx + 4], ecx
xor eax, edx
mov dword [esp + 8], edi
mov edi, dword [esp + 0x14]
shld edx, edi, 0xf
mov edi, dword [esp + 8]
shld ecx, edi, 6
mov dword [ebx], edi
mov dword [ebx + 0xc], eax
xor ecx, edi
xor ecx, edx
mov edx, esi
xor ecx, dword [esp + 0x14]
mov dword [ebx + 8], ecx
add ecx, edi
ror edx, cl
test edx, edx
je 0x1000b2b7
bsf edx, edx
add edx, ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 4]
mov ecx, dword [esp + 0x10]
and edx, 0x1f
jmp 0x1000b14e
mov edx, 0x20
jmp 0x1000b2a1
mov ecx, edi
mov edx, ebx
call fcn.100033b0
test eax, eax
mov dword [ebx], eax
jne 0x1000b131
jmp 0x1000b6e6
dec ebx
je 0x1000b3bd
bsr ecx, ebx
xor ecx, 0x1f
neg cl
shl edx, cl
mov eax, edx
mov dword [esp + 0x18], edx
shr eax, 9
or eax, 1
bsr ebx, eax
xor ebx, 0x20
jmp 0x1000b0f8
mov eax, ebx
dec eax
je 0x1000b3c7
bsr ecx, eax
xor ecx, 0x1f
mov eax, edx
neg cl
shl eax, cl
cmp ebx, edx
mov ecx, 8
cmovbe eax, edx
cmp eax, 8
cmova ecx, eax
mov eax, ecx
mov dword [esp + 0x18], ecx
shr eax, 3
or eax, 1
bsr ebx, eax
jmp 0x1000b0f8
mov ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
shl ebx, 5
mov ecx, dword [edi + ecx + 0x64]
mov esi, dword [esp + 0x10]
lea edx, [esi + 1]
cmp edx, ecx
mov dword [esp + 0x10], edx
jae 0x1000b6e3
mov edx, dword [eax + esi*4 + 0x10]
add ebx, 0x20
test edx, edx
je 0x1000b348
mov ecx, dword [edi + 0x40]
mov dword [esp + 0x14], esi
test ecx, ecx
jne 0x1000b3dc
bsf esi, edx
mov ecx, dword [esp + 0x1c]
or ebx, esi
btc edx, esi
mov esi, dword [esp + 0x14]
imul ebx, dword [edi + ecx + 0x58]
mov ecx, dword [edi + ecx + 0x68]
mov dword [eax + esi*4 + 0x10], edx
mov edx, dword [esp + 0x10]
add ecx, eax
mov dword [eax + 4], edx
jmp 0x1000b16d
mov ecx, edi
mov edx, ebx
cmp ebx, 0xfe000
ja 0x1000b703
push 1
call fcn.100046a0
add esp, 4
mov ebx, eax
jmp 0x1000b197
mov ecx, 0x20
jmp 0x1000b2e3
mov ecx, 0x20
jmp 0x1000b30d
mov edi, dword [edi + 4]
and edi, 0xfffffffe
jmp 0x1000b077
mov dword [esp + 4], edi
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0xc], ecx
mov ecx, edi
mov dword [esp + 8], esi
shld esi, edi, 0x17
shl ecx, 0x17
xor esi, dword [esp + 8]
mov dword [esp + 8], edx
xor ecx, edi
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xc]
mov edi, esi
shr edi, 0x11
mov ecx, dword [ecx + 0xc]
mov edx, ecx
mov dword [esp + 0x20], ecx
shr edx, 0x1a
xor edx, ecx
mov ecx, dword [esp + 0xc]
xor edx, edi
xor edx, esi
mov edi, dword [ecx + 8]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x20]
mov dword [ecx + 4], edi
mov edi, esi
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
shld edi, esi, 0xf
mov esi, dword [esp + 0x24]
shld ecx, esi, 6
xor ecx, esi
mov esi, dword [esp + 0xc]
xor ecx, edi
mov edi, dword [esp + 0x24]
xor ecx, dword [esp + 0x28]
mov dword [esi], edi
mov dword [esi + 0xc], edx
mov edx, dword [esp + 8]
mov dword [esi + 8], ecx
add ecx, edi
ror edx, cl
test edx, edx
je 0x1000b480
bsf esi, edx
mov edi, dword [esp + 4]
mov edx, dword [esp + 8]
add esi, ecx
and esi, 0x1f
jmp 0x1000b374
mov esi, 0x20
jmp 0x1000b46e
mov dword [esp + 4], edi
push 0x1007a738
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1007a70c]
test eax, eax
jne 0x1000b65d
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 0x1000b4f6
push 0x1007a740
call fcn.10069bc2
add esp, 4
cmp dword [0x1007a740], 0xffffffff
jne 0x1000b4f6
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.10069bc2
add esp, 4
mov eax, 0x1000
xor edx, edx
div dword [0x1007a73c]
test edx, edx
jne 0x1000b73f
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 0x1000b565
mov al, byte [ebx]
test al, al
je 0x1000b565
xor esi, esi
movsx ecx, al
add ecx, 0xffffffd0
cmp ecx, 9
jbe 0x1000b789
xor edi, edi
inc edi
jmp 0x1000b544
mov al, byte [ebx + esi]
movsx ecx, al
dec edi
cmp ecx, 0x72
jne 0x1000b717
mov byte [0x1007a674], 1
test edi, edi
jne 0x1000b541
mov al, byte [ebx + esi + 1]
inc esi
test al, al
jne 0x1000b52d
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 0x1000b763
lea edx, [esp + 0x40]
xor ecx, ecx
call fcn.10007350
test eax, eax
mov dword [0x1007a728], eax
je 0x1000b779
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 0x1000b76f
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 edi, dword [esp + 4]
jmp 0x1000b0a0
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_result_
mov ecx, 0x115a
int3
xor edi, edi
jmp 0x1000b093
mov esi, ebx
cmp ebx, 0x201
jb 0x1000b6a4
mov edi, dword [0x1007a728]
mov ebx, esi
jmp 0x1000b0c8
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov ebx, esi
mov eax, dword [ecx + eax*4]
mov edi, dword [eax + 8]
test edi, edi
jne 0x1000b0d4
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov edi, dword [0x1007a728]
mov eax, dword [ecx + eax*4]
mov dword [eax + 8], edi
jmp 0x1000b0d4
dec dword [eax + 8]
push dword [esp + 0x2c]
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 0x1000b19f
push 1
push 0x100000
call fcn.10005ff0
add esp, 8
jmp 0x1000b3b6
cmp ecx, 0x46
jne 0x1000b7ae
mov eax, dword [0x1007a024]
test eax, eax
je 0x1000b7cf
add eax, eax
je 0x1000b558
mov dword [0x1007a024], eax
jmp 0x1000b558
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 0x1000b779
mov dword [0x1007a6b4], 0
push 0x1007a738
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x1000b6f0
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 0x1000b78b
test edi, edi
je 0x1000b55c
jmp 0x1000b544
cmp ecx, 0x52
jne 0x1000b7bf
mov byte [0x1007a674], 0
jmp 0x1000b558
cmp ecx, 0x66
jne 0x1000b7de
shr dword [0x1007a024], 1
jmp 0x1000b558
mov dword [0x1007a024], 1
jmp 0x1000b558
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 0x1000b558