Function at 0x100317a0
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 [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1007d740]
mov bl, 1
test eax, eax
je 0x100317d2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f5c0
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1007d76c
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1007d740]
mov bl, 1
test eax, eax
jne 0x100319b8
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 0x1003183e
push 0x1007d774
call fcn.1002f5e1
add esp, 4
cmp dword [0x1007d774], 0xffffffff
jne 0x1003183e
lea esi, [ebp - 0x34]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x1007d770], eax
push 0x1007d774
call fcn.1002f5e1
add esp, 4
mov eax, 0x1000
xor edx, edx
div dword [0x1007d770]
test edx, edx
jne 0x100319c8
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 0x100318b4
mov al, byte [edi]
test al, al
je 0x100318b4
xor esi, esi
movsx ecx, al
add ecx, 0xffffffd0
cmp ecx, 9
jbe 0x10031a26
xor ecx, ecx
inc ecx
mov dword [ebp - 0x38], ecx
jmp 0x1003188f
mov al, byte [edi + esi]
dec dword [ebp - 0x38]
movsx ecx, al
cmp ecx, 0x72
jne 0x100319ec
mov byte [0x1007d6ac], 1
cmp dword [ebp - 0x38], 0
jne 0x1003188c
mov al, byte [edi + esi + 1]
inc esi
test al, al
jne 0x10031875
mov dword [0x1007d720], 0
mov eax, 0x1388
mov esi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
push eax
push 0x1007d724
call esi
xor edi, edi
mov dword [0x1007d7b8], edi
mov dword [0x1007d73c], edi
mov eax, 0x1388
push eax
push 0x1007d6b0
call esi
mov dword [0x1007d6c8], edi
mov dword [0x1007d6cc], edi
mov dword [0x1007d6d0], edi
mov dword [0x1007d71c], edi
mov dword [0x1007d714], edi
mov eax, 0x1388
push eax
push 0x1007d6f0
call esi
mov dword [0x1007d764], edi
mov dword [0x1007d768], edi
mov dword [ebp - 0x30], edi
mov eax, dword [0x1007d024]
mov dword [ebp - 0x34], eax
mov eax, 0x1388
push eax
push 0x1007d744
call esi
test eax, eax
je 0x10031a0c
lea edx, [ebp - 0x34]
xor ecx, ecx
call fcn.10025e30
mov dword [0x1007d75c], eax
test eax, eax
je 0x10031a22
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 0x10031a18
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 0x100317be
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 0x10031a58
mov eax, dword [0x1007d024]
test eax, eax
je 0x10031a79
add eax, eax
je 0x100318a5
mov dword [0x1007d024], eax
jmp 0x100318a5
mov dword [0x1007d75c], 0
jmp 0x10031a22
mov dword [0x1007d6ec], 0
xor ebx, ebx
jmp 0x100319b8
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x38], eax
movsx eax, byte [edi + esi + 1]
inc esi
mov ecx, eax
add ecx, 0xffffffd0
cmp ecx, 0xa
jb 0x10031a2d
cmp dword [ebp - 0x38], 0
je 0x100318ab
jmp 0x1003188f
cmp ecx, 0x52
jne 0x10031a69
mov byte [0x1007d6ac], 0
jmp 0x100318a5
cmp ecx, 0x66
jne 0x10031a88
shr dword [0x1007d024], 1
jmp 0x100318a5
mov dword [0x1007d024], 1
jmp 0x100318a5
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, 0x1007441b
call fcn.10034840
jmp 0x100318a5