Function at 0x1000f5d0
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 [0x1007a00c]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1007a70c]
test eax, eax
je 0x1000f602
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069260
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1007a738
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1007a70c]
mov bl, 1
test eax, eax
jne 0x1000f7ef
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 0x1000f66e
push 0x1007a740
call fcn.10069bc2
add esp, 4
cmp dword [0x1007a740], 0xffffffff
jne 0x1000f66e
lea esi, [ebp - 0x34]
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 0x1000f827
mov edi, 0x1007a744
push 0x40
push edi
push str.MALLOC_OPTIONS
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
cmove edi, eax
je 0x1000f6eb
mov al, byte [edi]
test al, al
je 0x1000f6eb
mov dword [ebp - 0x38], 0
movsx ecx, al
add ecx, 0xffffffd0
cmp ecx, 9
jbe 0x1000f865
xor esi, esi
inc esi
jmp 0x1000f6c4
mov eax, dword [ebp - 0x38]
mov al, byte [edi + eax]
movsx ecx, al
dec esi
cmp ecx, 0x72
jne 0x1000f7ff
mov byte [0x1007a674], 1
test esi, esi
jne 0x1000f6be
mov ecx, dword [ebp - 0x38]
mov al, byte [edi + ecx + 1]
inc ecx
mov dword [ebp - 0x38], ecx
test al, al
jne 0x1000f6aa
mov esi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
mov eax, 0x1388
mov dword [0x1007a6e8], 0
push eax
push 0x1007a6ec
call esi
xor edi, edi
mov eax, 0x1388
mov dword [0x1007a708], edi
mov dword [0x1007a704], edi
push eax
push 0x1007a678
call esi
mov eax, 0x1388
mov dword [0x1007a690], edi
mov dword [0x1007a694], edi
mov dword [0x1007a698], edi
mov dword [0x1007a6e4], edi
mov dword [0x1007a6dc], edi
push eax
push 0x1007a6b8
call esi
mov eax, dword [0x1007a024]
mov dword [ebp - 0x30], edi
mov dword [0x1007a730], edi
mov dword [0x1007a734], edi
mov dword [ebp - 0x34], eax
mov eax, 0x1388
push eax
push 0x1007a710
call esi
test eax, eax
je 0x1000f84b
lea edx, [ebp - 0x34]
xor ecx, ecx
call fcn.10007350
test eax, eax
mov dword [0x1007a728], eax
je 0x1000f861
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 0x1000f857
mov esi, eax
push 0x4000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [0x1007a6b4], esi
inc eax
xchg dword [0x1007a70c], eax
call fcn.10006190
push 0x1007a738
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x1000f5ee
cmp ecx, 0x46
jne 0x1000f890
mov eax, dword [0x1007a024]
test eax, eax
je 0x1000f8b1
add eax, eax
je 0x1000f6d8
mov dword [0x1007a024], eax
jmp 0x1000f6d8
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 0x1000f861
mov dword [0x1007a6b4], 0
xor ebx, ebx
jmp 0x1000f7ef
xor esi, esi
lea eax, [esi + esi*4]
lea esi, [ecx + eax*2]
mov ecx, dword [ebp - 0x38]
movsx eax, byte [edi + ecx + 1]
inc ecx
mov dword [ebp - 0x38], ecx
mov ecx, eax
add ecx, 0xffffffd0
cmp ecx, 0xa
jb 0x1000f867
test esi, esi
je 0x1000f6dc
jmp 0x1000f6c4
cmp ecx, 0x52
jne 0x1000f8a1
mov byte [0x1007a674], 0
jmp 0x1000f6d8
cmp ecx, 0x66
jne 0x1000f8c0
shr dword [0x1007a024], 1
jmp 0x1000f6d8
mov dword [0x1007a024], 1
jmp 0x1000f6d8
mov byte [ebp - 0x34], al
mov byte [ebp - 0x33], 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, [ebp - 0x34]
mov edx, 0x10071d10
call fcn.100076e0
jmp 0x1000f6d8