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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x1009a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1009a804]
test eax, eax
je 0x1001d17e
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, ecx
mul esi
jo 0x1001d3c2
imul esi, ecx
test esi, esi
je 0x1001d163
cmp esi, 0x1f0
ja 0x1001d132
mov eax, dword [0x1009a3c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1001d153
mov edx, esi
push 1
call fcn.1001d470
add esp, 4
mov esi, eax
test eax, eax
je 0x1001d3c2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100468e0
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x1009a744]
cmp esi, 0xf00
jbe 0x1001d108
mov edx, esi
cmp esi, 0xfd000
ja 0x1001d16d
push 1
call fcn.1001acc0
jmp 0x1001d111
lea eax, [eax + 8]
mov ecx, dword [0x1009a744]
mov dword [eax], ecx
jmp 0x1001d108
mov esi, 1
jmp 0x1001d0e7
push 1
push 0x100000
call fcn.10003720
add esp, 8
jmp 0x1001d114
push 0x1009a808
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1009a804]
test eax, eax
jne 0x1001d345
mov eax, dword [0x1009a3c8]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x1009a810]
mov dword [ebp - 0x38], ecx
cmp eax, dword [ecx + 4]
jle 0x1001d1ea
push 0x1009a810
call fcn.10046148
add esp, 4
cmp dword [0x1009a810], 0xffffffff
jne 0x1001d1ea
lea esi, [ebp - 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x1009a80c], eax
push 0x1009a810
call fcn.100460fe
add esp, 4
mov eax, 0x1000
xor edx, edx
div dword [0x1009a80c]
test edx, edx
jne 0x1001d37d
mov ebx, 0x1009a814
push 0x40
push ebx
push str.MALLOC_OPTIONS
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
cmove ebx, eax
je 0x1001d255
mov al, byte [ebx]
test al, al
je 0x1001d255
xor esi, esi
movsx eax, al
add eax, 0xffffffd0
cmp eax, 9
jbe 0x1001d3d5
xor edi, edi
inc edi
mov al, byte [ebx + esi]
movsx ecx, al
cmp ecx, 0x72
jne 0x1001d355
mov byte [0x1009a76c], 1
dec edi
jne 0x1001d233
mov al, byte [ebx + esi + 1]
inc esi
test al, al
jne 0x1001d221
mov dword [0x1009a7d0], 0
mov edi, 0x1388
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push edi
push 0x1009a7b0
call esi
xor ebx, ebx
mov dword [0x1009a7c8], ebx
mov dword [0x1009a7cc], ebx
push edi
push 0x1009a770
call esi
mov dword [0x1009a788], ebx
mov dword [0x1009a78c], ebx
mov dword [0x1009a790], ebx
push edi
push 0x1009a7d4
call esi
mov dword [0x1009a800], ebx
mov dword [0x1009a7f8], ebx
mov dword [0x1009a74c], ebx
mov dword [0x1009a750], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [0x1009a024]
mov dword [ebp - 0x34], eax
push edi
push 0x1009a72c
call esi
test eax, eax
je 0x1001d3a1
lea edx, [ebp - 0x34]
xor ecx, ecx
call fcn.1003b4f0
mov dword [0x1009a744], eax
test eax, eax
je 0x1001d3b7
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx + 8]
mov dword [ecx], eax
push 0x1388
push 0x1009a794
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov ecx, 0x4000
call fcn.1000c400
test eax, eax
je 0x1001d3ad
mov esi, eax
push 0x4000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x1009a7ac], esi
xor eax, eax
inc eax
xchg dword [0x1009a804], eax
call fcn.10002140
push 0x1009a808
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x1001d0d0
cmp ecx, 0x46
jne 0x1001d3f8
mov eax, dword [0x1009a024]
test eax, eax
je 0x1001d419
add eax, eax
je 0x1001d249
mov dword [0x1009a024], eax
jmp 0x1001d249
mov ecx, str._jemalloc_
mov edx, str.Compile_time_page_size_does_not_divide_the_runtime_one._n
call fcn.1004cde0
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_CRASH__
int3
mov dword [0x1009a744], 0
jmp 0x1001d3b7
mov dword [0x1009a7ac], 0
push 0x1009a808
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
xor esi, esi
jmp 0x1001d11e
xor edi, edi
lea ecx, [edi + edi*4]
lea edi, [eax + ecx*2]
movsx eax, byte [ebx + esi + 1]
inc esi
add eax, 0xffffffd0
cmp eax, 0xa
jb 0x1001d3d7
test edi, edi
je 0x1001d24c
jmp 0x1001d233
cmp ecx, 0x52
jne 0x1001d409
mov byte [0x1009a76c], 0
jmp 0x1001d249
cmp ecx, 0x66
jne 0x1001d428
shr dword [0x1009a024], 1
jmp 0x1001d249
mov dword [0x1009a024], 1
jmp 0x1001d249
lea ecx, [ebp - 0x34]
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, [ebp - 0x34]
mov edx, 0x10090196
call fcn.1004cde0
jmp 0x1001d249