Function at 0x1001b010
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 [0x1007d00c]
xor eax, ebp
mov dword [esp + 0x68], eax
mov eax, dword [0x1007d740]
test eax, eax
je 0x1001b458
mov edx, dword [ebp + 8]
test edx, edx
je 0x1001b418
cmp edx, 0x200
ja 0x1001b240
mov eax, dword [0x1007d328]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1001b422
cmp edx, 8
jbe 0x1001b31e
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 0x1001b132
lea esi, [ecx + 0xc]
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [edi]
test eax, eax
je 0x1001b28a
cmp dword [eax + 8], 0
je 0x1001b28a
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 0x1001b2a4
mov edi, dword [ecx + 0x40]
test edi, edi
jne 0x1001b1b1
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 0x1001b645
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 0x1001b64c
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.1002f5c0
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ecx + 0x40], 0
jne 0x1001b093
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.1000bb80
xor edx, edx
cmp byte [esi + 8], 0
mov ecx, 0
mov esi, 0
je 0x1001b17e
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp byte [esp + 0x48], 0
mov ebx, 0
je 0x1001b192
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 0x1001b093
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 0x1001b239
bsf edx, edx
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
add edx, ecx
and edx, 0x1f
jmp 0x1001b0d6
mov edx, 0x20
jmp 0x1001b227
mov ecx, dword [0x1007d75c]
cmp edx, 0x801
jae 0x1001b361
mov esi, ecx
add edx, 0xffffffff
je 0x1001b37e
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 0x1001b07d
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.1001b770
mov dword [edi], eax
test eax, eax
jne 0x1001b0b1
jmp 0x1001b645
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 0x1001b63a
mov eax, dword [esp + 8]
mov eax, dword [eax + edx*4 + 0x10]
add edi, 0x20
test eax, eax
je 0x1001b2b4
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + 0x40]
test esi, esi
jne 0x1001b388
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 0x1001b0f7
mov esi, ecx
cmp edx, 2
jb 0x1001b411
mov ecx, 0x20
mov eax, 0x20
add edx, 0xffffffff
je 0x1001b33e
bsr eax, edx
xor eax, 0x1f
sub ecx, eax
mov edx, 1
shl edx, cl
cmp edx, 8
ja 0x1001b351
mov edx, 8
mov eax, edx
shr eax, 3
or eax, 1
bsr eax, eax
jmp 0x1001b27a
cmp edx, 0xfe000
ja 0x1001b444
push 0
call fcn.1001d2a0
add esp, 4
mov edi, eax
jmp 0x1001b115
mov ecx, 0x20
jmp 0x1001b263
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 0x1001b40a
bsf edx, edx
mov esi, dword [esp + 0x14]
add edx, ecx
and edx, 0x1f
jmp 0x1001b2f0
mov edx, 0x20
jmp 0x1001b3fc
xor ecx, ecx
jmp 0x1001b340
mov edx, 1
jmp 0x1001b03f
mov esi, dword [0x1007d75c]
mov eax, dword [0x1007d328]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, esi
mov dword [eax + 8], esi
jmp 0x1001b068
push 0
push 0x100000
call fcn.10002410
add esp, 8
jmp 0x1001b377
push 0x1007d76c
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1007d740]
test eax, eax
jne 0x1001b62a
mov eax, dword [0x1007d774]
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x1001b4c3
push 0x1007d774
call fcn.1002ff22
add esp, 4
cmp dword [0x1007d774], 0xffffffff
jne 0x1001b4c3
lea esi, [esp + 0x40]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x1007d770], eax
push 0x1007d774
call fcn.1002ff22
add esp, 4
mov eax, 0x1000
xor edx, edx
div dword [0x1007d770]
test edx, edx
jne 0x1001b65f
mov edi, 0x1007d778
push 0x40
push edi
push str.MALLOC_OPTIONS
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
cmove edi, eax
je 0x1001b532
mov al, byte [edi]
test al, al
je 0x1001b532
xor ebx, ebx
movsx ecx, al
add ecx, 0xffffffd0
cmp ecx, 9
jbe 0x1001b6c6
xor esi, esi
inc esi
jmp 0x1001b511
mov al, byte [edi + ebx]
dec esi
movsx ecx, al
cmp ecx, 0x72
jne 0x1001b683
mov byte [0x1007d6ac], 1
test esi, esi
jne 0x1001b50e
mov al, byte [edi + ebx + 1]
inc ebx
test al, al
jne 0x1001b4fa
mov dword [0x1007d720], 0
mov esi, 0x1388
mov edi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
push esi
push 0x1007d724
call edi
xor ebx, ebx
mov dword [0x1007d7b8], ebx
mov dword [0x1007d73c], ebx
push esi
push 0x1007d6b0
call edi
mov dword [0x1007d6c8], ebx
mov dword [0x1007d6cc], ebx
mov dword [0x1007d6d0], ebx
mov dword [0x1007d71c], ebx
mov dword [0x1007d714], ebx
push esi
push 0x1007d6f0
call edi
mov dword [0x1007d764], ebx
mov dword [0x1007d768], ebx
mov dword [esp + 0x44], ebx
mov eax, dword [0x1007d024]
mov dword [esp + 0x40], eax
push esi
push 0x1007d744
call edi
test eax, eax
je 0x1001b6a3
lea edx, [esp + 0x40]
xor ecx, ecx
call fcn.10025e30
mov dword [0x1007d75c], eax
test eax, eax
je 0x1001b6b9
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 8], eax
push 0x1388
push 0x1007d6d4
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
mov ecx, 0x4000
call fcn.1000bb80
test eax, eax
je 0x1001b6af
mov esi, eax
push 0x4000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x1007d6ec], esi
xor eax, eax
inc eax
xchg dword [0x1007d740], eax
call fcn.100023f0
push 0x1007d76c
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x1001b034
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 0x1001b11d
mov ecx, str._jemalloc_
mov edx, str.Compile_time_page_size_does_not_divide_the_runtime_one._n
call fcn.10034840
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_CRASH__
int3
cmp ecx, 0x46
jne 0x1001b6eb
mov eax, dword [0x1007d024]
test eax, eax
je 0x1001b70c
add eax, eax
je 0x1001b525
mov dword [0x1007d024], eax
jmp 0x1001b525
mov dword [0x1007d75c], 0
jmp 0x1001b6b9
mov dword [0x1007d6ec], 0
push 0x1007d76c
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x1001b64c
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 0x1001b6c8
test esi, esi
je 0x1001b529
jmp 0x1001b511
cmp ecx, 0x52
jne 0x1001b6fc
mov byte [0x1007d6ac], 0
jmp 0x1001b525
cmp ecx, 0x66
jne 0x1001b71b
shr dword [0x1007d024], 1
jmp 0x1001b525
mov dword [0x1007d024], 1
jmp 0x1001b525
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, 0x1007441b
call fcn.10034840
jmp 0x1001b525