Function at 0x18004c9d0
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 0x18004ca16
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18004bde0
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 0x18004cc2f
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 0x18004ca8e
lea rcx, [0x1800a66f8]
call fcn.18004a800
cmp dword [0x1800a66f8], 0xffffffff
jne 0x18004ca8e
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.18004a7a0
mov eax, 0x1000
xor edx, edx
div qword [0x1800a66f0]
test rdx, rdx
jne 0x18004cc6f
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 0x18004cb0f
mov al, byte [rdi]
test al, al
je 0x18004cb0f
xor ebx, ebx
movsx eax, al
add eax, 0xffffffd0
mov esi, 1
cmp eax, 9
jbe 0x18004ccba
mov r15d, ebx
mov al, byte [rdi + r15]
movsx ecx, al
cmp ecx, 0x72
jne 0x18004cc41
mov byte [0x1800a6588], 1
dec esi
jne 0x18004caeb
inc ebx
mov al, byte [rdi + rbx]
test al, al
jne 0x18004cad4
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 0x18004cc9b
xor esi, esi
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.18003dfc0
mov qword [0x1800a66c8], rax
test rax, rax
je 0x18004cc2f
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.180002210
test rax, rax
je 0x18004cca8
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.180002410
mov sil, 1
lea rcx, [0x1800a66e8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x18004c9f9
cmp ecx, 0x46
jne 0x18004ccdd
mov rax, qword [0x1800a6038]
test rax, rax
je 0x18004ccff
add rax, rax
je 0x18004cb02
mov qword [0x1800a6038], rax
jmp 0x18004cb02
lea rcx, str._jemalloc_
lea rdx, str.Compile_time_page_size_does_not_divide_the_runtime_one._n
call fcn.180051bf0
lea rax, str.MOZ_CRASH__
mov qword [sym.mozglue.dll_gMozCrashReason], rax
int3
mov qword [0x1800a66c8], 0
jmp 0x18004ccb3
mov qword [0x1800a65f8], 0
xor esi, esi
jmp 0x18004cc2f
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 0x18004ccbc
test esi, esi
je 0x18004cb06
jmp 0x18004cae8
cmp ecx, 0x52
jne 0x18004ccee
mov byte [0x1800a6588], 0
jmp 0x18004cb02
cmp ecx, 0x66
jne 0x18004cd0f
shr qword [0x1800a6038], 1
jmp 0x18004cb02
mov qword [0x1800a6038], 1
jmp 0x18004cb02
lea r14, [rsp + 0x20]
mov byte [r14], al
mov byte [r14 + 1], 0
lea rdx, str._jemalloc_
mov r12, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
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, [0x18009ab44]
mov rcx, r14
call fcn.180051bf0
jmp 0x18004cb02