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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1800a6010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [0x1800a6698]
mov sil, 1
test eax, eax
je 0x18004c686
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18004b970
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1800a66e8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1800a6698]
mov sil, 1
test eax, eax
jne 0x18004c89f
mov eax, dword [0x1800a66f8]
mov ecx, dword [0x1800a64f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x18004c6fe
lea rcx, [0x1800a66f8]
call fcn.18004a330
cmp dword [0x1800a66f8], 0xffffffff
jne 0x18004c6fe
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsi + 4]
mov qword [0x1800a66f0], rax
lea rcx, [0x1800a66f8]
call fcn.18004a398
mov eax, 0x1000
xor edx, edx
div qword [0x1800a66f0]
test rdx, rdx
jne 0x18004c8df
lea rcx, str.MALLOC_OPTIONS
lea rsi, [0x1800a6700]
mov rdx, rsi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor edi, edi
test eax, eax
cmovne rdi, rsi
je 0x18004c77f
mov al, byte [rdi]
test al, al
je 0x18004c77f
xor ebx, ebx
movsx eax, al
add eax, 0xffffffd0
mov esi, 1
cmp eax, 9
jbe 0x18004c92a
mov r15d, ebx
mov al, byte [rdi + r15]
movsx ecx, al
cmp ecx, 0x72
jne 0x18004c8b1
mov byte [0x1800a6588], 1
dec esi
jne 0x18004c75b
inc ebx
mov al, byte [rdi + rbx]
test al, al
jne 0x18004c744
mov qword [0x1800a6658], 0
lea rcx, [0x1800a6660]
mov rsi, qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov edx, 0x1388
call rsi
xor edi, edi
mov qword [0x1800a6690], rdi
mov qword [0x1800a6688], rdi
lea rcx, [0x1800a6590]
mov edx, 0x1388
call rsi
mov qword [0x1800a65b8], rdi
mov qword [0x1800a65c0], rdi
mov qword [0x1800a65c8], rdi
lea rcx, [0x1800a6600]
mov edx, 0x1388
call rsi
mov qword [0x1800a6650], rdi
mov qword [0x1800a6640], rdi
xorps xmm0, xmm0
movups xmmword [0x1800a66d8], xmm0
lea rcx, [0x1800a66a0]
mov dword [rsp + 0x28], 0
mov rax, qword [0x1800a6038]
mov qword [rsp + 0x20], rax
mov edx, 0x1388
call rsi
test eax, eax
je 0x18004c90b
xor esi, esi
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.18003dc70
mov qword [0x1800a66c8], rax
test rax, rax
je 0x18004c89f
mov ecx, dword [0x1800a64f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov qword [rcx + 8], rax
lea rcx, [0x1800a65d0]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov ecx, 0x20
call fcn.180002230
test rax, rax
je 0x18004c918
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov qword [0x1800a65f8], rax
mov eax, 1
xchg dword [0x1800a6698], eax
call fcn.180002560
mov sil, 1
lea rcx, [0x1800a66e8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x18004c669
cmp ecx, 0x46
jne 0x18004c94d
mov rax, qword [0x1800a6038]
test rax, rax
je 0x18004c96f
add rax, rax
je 0x18004c772
mov qword [0x1800a6038], rax
jmp 0x18004c772
lea rcx, str._jemalloc_
lea rdx, str.Compile_time_page_size_does_not_divide_the_runtime_one._n
call fcn.1800515f0
lea rax, str.MOZ_CRASH__
mov qword [sym.mozglue.dll_gMozCrashReason], rax
int3
mov qword [0x1800a66c8], 0
jmp 0x18004c923
mov qword [0x1800a65f8], 0
xor esi, esi
jmp 0x18004c89f
xor esi, esi
lea ecx, [rsi + rsi*4]
lea esi, [rax + rcx*2]
inc ebx
movsx eax, byte [rdi + rbx]
add eax, 0xffffffd0
cmp eax, 0xa
jb 0x18004c92c
test esi, esi
je 0x18004c776
jmp 0x18004c758
cmp ecx, 0x52
jne 0x18004c95e
mov byte [0x1800a6588], 0
jmp 0x18004c772
cmp ecx, 0x66
jne 0x18004c97f
shr qword [0x1800a6038], 1
jmp 0x18004c772
mov qword [0x1800a6038], 1
jmp 0x18004c772
lea r14, [rsp + 0x20]
mov byte [r14], al
mov byte [r14 + 1], 0
lea rdx, str._jemalloc_
mov r12, qword [0x1800a2e88]
mov ecx, 2
mov r8d, 0xa
call r12
lea rdx, str.:__malloc__Unsupported_character_in_malloc_options:_
mov ecx, 2
mov r8d, 0x35
call r12
lea rdx, [0x18009ac18]
mov rcx, r14
call fcn.1800515f0
jmp 0x18004c772