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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov eax, dword [0x1007a00c]
mov edi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0x68], eax
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, dword [0x1007a70c]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x1000ca4f
xor esi, esi
lea edx, [ebx + 1]
inc esi
test edx, edx
cmove edx, esi
cmp edx, 0x200
ja 0x1000c838
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1000ca15
cmp edx, 8
jbe 0x1000c88f
add edx, 0xf
and edx, 0xfffffff0
lea edi, [ecx + edx*2 + 0x50]
cmp byte [ecx + 0x3c], 0
mov dword [esp + 0x2c], edx
mov dword [esp], ecx
mov dword [esp + 0x1c], edi
jne 0x1000c734
lea eax, [ecx + 0xc]
mov dword [esp + 0x24], eax
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [edi]
mov ecx, dword [esp]
test edx, edx
je 0x1000c871
cmp dword [edx + 8], 0
je 0x1000c871
mov eax, dword [edx + 4]
mov ebx, dword [edx + eax*4 + 0xc]
test ebx, ebx
je 0x1000c8d1
mov esi, dword [ecx + 0x40]
test esi, esi
jne 0x1000c7b2
bsf edi, ebx
mov esi, eax
btc ebx, edi
shl esi, 5
or esi, edi
mov edi, eax
mov eax, dword [esp + 0x1c]
imul esi, dword [eax + 8]
mov eax, dword [eax + 0x18]
mov dword [edx + edi*4 + 0xc], ebx
mov ebx, dword [esp + 0x10]
add eax, edx
add esi, eax
mov edi, dword [ebp + 8]
dec dword [edx + 8]
test esi, esi
je 0x1000cc3b
mov eax, dword [esp + 0x2c]
add dword [ecx + 0x2c], eax
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
test esi, esi
je 0x1000cc45
push ebx
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
add esp, 0xc
mov byte [esi + ebx], 0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.10069260
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ecx + 0x40], 0
jne 0x1000c683
lea eax, [esp + 0x40]
mov byte [ecx + 0x3c], 0
push eax
call sym.mozglue.dll_class_mozilla::Maybe_unsigned_long_long_unsigned___int64_____cdecl_mozilla::RandomUint64_void_
add esp, 4
lea esi, [esp + 0x30]
push esi
call sym.mozglue.dll_class_mozilla::Maybe_unsigned_long_long_unsigned___int64_____cdecl_mozilla::RandomUint64_void_
add esp, 4
mov ecx, 0x10
call fcn.1000cea0
xor edx, edx
cmp byte [esi + 8], 0
mov ecx, 0
mov esi, 0
je 0x1000c780
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp byte [esp + 0x48], 0
mov edi, 0
je 0x1000c794
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov dword [eax], edi
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp]
mov edi, dword [esp + 0x1c]
mov dword [eax + 8], esi
mov dword [ecx + 0x40], eax
mov byte [ecx + 0x3c], 1
jmp 0x1000c683
mov ecx, dword [esi]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 4]
mov dword [esp + 8], eax
mov eax, ecx
mov edi, edx
shl eax, 0x17
shld edi, ecx, 0x17
xor eax, ecx
mov ecx, dword [esi + 0xc]
xor edi, edx
mov dword [esp + 4], eax
mov edx, edi
shr edx, 0x11
mov eax, ecx
shr eax, 0x1a
xor eax, ecx
xor eax, edx
mov edx, dword [esi + 8]
mov dword [esi + 4], ecx
xor eax, edi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 4]
shld edi, edx, 0xf
mov edx, dword [esp + 0x14]
shld ecx, edx, 6
mov dword [esi], edx
mov dword [esi + 0xc], eax
xor ecx, edx
xor ecx, edi
xor ecx, dword [esp + 4]
mov dword [esi + 8], ecx
add ecx, edx
mov esi, ebx
ror esi, cl
test esi, esi
je 0x1000c831
bsf edi, esi
add edi, ecx
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp]
and edi, 0x1f
jmp 0x1000c6c5
mov edi, 0x20
jmp 0x1000c81c
mov ecx, dword [0x1007a728]
cmp edx, 0x801
jae 0x1000c94a
mov eax, esi
mov esi, ecx
dec edx
je 0x1000c971
bsr ecx, edx
xor ecx, 0x1f
mov edx, eax
neg cl
shl edx, cl
mov eax, edx
shr eax, 9
or eax, 1
bsr eax, eax
xor eax, 0x20
jmp 0x1000c8c3
mov ecx, dword [esp]
mov edx, edi
call fcn.100033b0
mov ecx, dword [esp]
mov edx, eax
test eax, eax
mov dword [edi], eax
jne 0x1000c6a8
jmp 0x1000cc3b
mov eax, edx
mov edi, esi
mov esi, ecx
dec eax
je 0x1000c967
bsr ecx, eax
xor ecx, 0x1f
mov eax, edi
neg cl
shl eax, cl
cmp edx, edi
mov edx, 8
cmovbe eax, edi
cmp eax, 8
cmova edx, eax
mov eax, edx
shr eax, 3
or eax, 1
bsr eax, eax
shl eax, 5
mov ecx, esi
lea edi, [esi + eax + 0x50]
jmp 0x1000c66e
mov ecx, dword [edi + 0x14]
mov esi, eax
shl esi, 5
mov dword [esp + 8], ecx
mov ebx, eax
inc eax
cmp eax, dword [esp + 8]
jae 0x1000cc38
mov ecx, dword [edx + ebx*4 + 0x10]
add esi, 0x20
test ecx, ecx
mov dword [esp + 4], ecx
je 0x1000c8dd
mov ecx, dword [esp]
mov dword [esp + 0x18], ebx
mov dword [esp + 8], eax
mov edi, dword [ecx + 0x40]
test edi, edi
jne 0x1000c97b
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x10]
bsf edi, eax
btc eax, edi
or esi, edi
mov edi, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
imul esi, dword [eax + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 4]
mov dword [edx + edi*4 + 0x10], eax
mov eax, dword [esp]
mov edi, dword [esp + 8]
add eax, edx
mov dword [edx + 4], edi
jmp 0x1000c6e6
cmp edx, 0xfe000
ja 0x1000ca3b
push 0
call fcn.100046a0
add esp, 4
mov esi, eax
jmp 0x1000c707
mov ecx, 0x20
jmp 0x1000c8a2
mov ecx, 0x20
jmp 0x1000c85b
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0xc], ecx
shld ecx, ebx, 0x17
mov eax, ebx
xor ecx, dword [esp + 0xc]
shl eax, 0x17
xor eax, ebx
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x14], eax
mov eax, ecx
shr eax, 0x11
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], eax
mov eax, ebx
shr eax, 0x1a
xor eax, ebx
mov ebx, dword [edi + 8]
xor eax, dword [esp + 0xc]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x20]
xor eax, ecx
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x14]
shld ecx, ebx, 0xf
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi], ebx
mov dword [edi + 0xc], eax
mov eax, dword [esp + 4]
shld ecx, ebx, 6
xor ecx, ebx
xor ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x14]
mov dword [edi + 8], ecx
add ecx, ebx
mov edi, eax
ror edi, cl
test edi, edi
je 0x1000ca0e
bsf edi, edi
add edi, ecx
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp]
and edi, 0x1f
jmp 0x1000c916
mov edi, 0x20
jmp 0x1000c9fd
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov edi, esi
mov esi, dword [0x1007a728]
mov eax, dword [ecx + eax*4]
mov ecx, esi
mov esi, edi
mov dword [eax + 8], ecx
jmp 0x1000c65b
push 0
push 0x100000
call fcn.10005ff0
add esp, 8
jmp 0x1000c960
push 0x1007a738
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1007a70c]
test eax, eax
jne 0x1000cc21
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 0x1000caba
push 0x1007a740
call fcn.10069281
add esp, 4
cmp dword [0x1007a740], 0xffffffff
jne 0x1000caba
lea esi, [esp + 0x40]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x1007a73c], eax
push 0x1007a740
call fcn.10069281
add esp, 4
mov eax, 0x1000
xor edx, edx
div dword [0x1007a73c]
test edx, edx
jne 0x1000cc80
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 0x1000cb29
mov al, byte [edi]
test al, al
je 0x1000cb29
xor ebx, ebx
movsx ecx, al
add ecx, 0xffffffd0
cmp ecx, 9
jbe 0x1000ccca
xor esi, esi
inc esi
jmp 0x1000cb08
mov al, byte [edi + ebx]
movsx ecx, al
dec esi
cmp ecx, 0x72
jne 0x1000cc58
mov byte [0x1007a674], 1
test esi, esi
jne 0x1000cb05
mov al, byte [edi + ebx + 1]
inc ebx
test al, al
jne 0x1000caf1
mov edi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
mov esi, 0x1388
mov dword [0x1007a6e8], 0
push esi
push 0x1007a6ec
call edi
xor ebx, ebx
mov dword [0x1007a708], ebx
mov dword [0x1007a704], ebx
push esi
push 0x1007a678
call edi
mov dword [0x1007a690], ebx
mov dword [0x1007a694], ebx
mov dword [0x1007a698], ebx
mov dword [0x1007a6e4], ebx
mov dword [0x1007a6dc], ebx
push esi
push 0x1007a6b8
call edi
mov eax, dword [0x1007a024]
mov dword [0x1007a730], ebx
mov dword [esp + 0x44], ebx
mov dword [0x1007a734], ebx
mov dword [esp + 0x40], eax
push esi
push 0x1007a710
call edi
test eax, eax
je 0x1000cca4
lea edx, [esp + 0x40]
xor ecx, ecx
call fcn.10007350
test eax, eax
mov dword [0x1007a728], eax
je 0x1000ccba
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 0x1000ccb0
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]
mov edi, dword [ebp + 8]
mov ebx, dword [esp + 0x10]
jmp 0x1000c627
dec dword [edx + 8]
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
xor esi, esi
jmp 0x1000c71f
cmp ecx, 0x46
jne 0x1000ccef
mov eax, dword [0x1007a024]
test eax, eax
je 0x1000cd10
add eax, eax
je 0x1000cb1c
mov dword [0x1007a024], eax
jmp 0x1000cb1c
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 0x1000ccba
mov dword [0x1007a6b4], 0
push 0x1007a738
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x1000cc45
xor esi, esi
lea eax, [esi + esi*4]
lea esi, [ecx + eax*2]
movsx eax, byte [edi + ebx + 1]
inc ebx
mov ecx, eax
add ecx, 0xffffffd0
cmp ecx, 0xa
jb 0x1000cccc
test esi, esi
je 0x1000cb20
jmp 0x1000cb08
cmp ecx, 0x52
jne 0x1000cd00
mov byte [0x1007a674], 0
jmp 0x1000cb1c
cmp ecx, 0x66
jne 0x1000cd1f
shr dword [0x1007a024], 1
jmp 0x1000cb1c
mov dword [0x1007a024], 1
jmp 0x1000cb1c
mov byte [esp + 0x40], al
mov byte [esp + 0x41], 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, [esp + 0x40]
mov edx, 0x10071d10
call fcn.100076e0
jmp 0x1000cb1c