Function at 0x1000a800
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]
xor eax, ebp
mov dword [esp + 0x68], eax
mov eax, dword [0x1007a70c]
test eax, eax
je 0x1000ae7e
push 0x1007a710
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edi, dword [0x1007a734]
test edi, edi
je 0x1000ae69
mov eax, dword [ebp + 8]
mov ecx, 0xffffffff
xor edx, edx
cmp dword [edi + 8], eax
setb dl
cmova edx, ecx
test edx, edx
je 0x1000a878
cmp edx, 0xffffffff
jne 0x1000a870
mov edi, dword [edi]
test edi, edi
jne 0x1000a845
jmp 0x1000ae69
mov edi, dword [edi + 4]
and edi, 0xfffffffe
jmp 0x1000a85b
push 0x1007a710
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [0x1007a70c]
test eax, eax
je 0x1000ac7f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1000ae85
test edi, edi
je 0x1000ae8f
cmp esi, 0x800
ja 0x1000aba1
cmp esi, 9
jb 0x1000aae4
cmp esi, 0x201
jae 0x1000aab9
add esi, 0xf
mov eax, esi
shr esi, 4
and eax, 0xfffffff0
mov dword [esp + 0x20], eax
shl esi, 5
cmp byte [edi + 0x3c], 0
lea ebx, [edi + esi + 0x50]
mov dword [esp + 0x1c], esi
jne 0x1000a981
lea eax, [edi + 0xc]
mov dword [esp + 0x28], eax
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebx]
test eax, eax
je 0x1000aaa1
cmp dword [eax + 8], 0
je 0x1000aaa1
mov ecx, dword [eax + 4]
mov edx, dword [eax + ecx*4 + 0xc]
test edx, edx
je 0x1000ab24
mov ebx, dword [edi + 0x40]
test ebx, ebx
jne 0x1000aa04
bsf esi, edx
mov ebx, ecx
btc edx, esi
shl ebx, 5
or ebx, esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
imul ebx, dword [edi + ecx + 0x58]
mov ecx, dword [edi + ecx + 0x68]
mov dword [eax + esi*4 + 0xc], edx
add ecx, eax
add ebx, ecx
dec dword [eax + 8]
test ebx, ebx
je 0x1000aee8
mov eax, dword [esp + 0x20]
add dword [edi + 0x2c], eax
push dword [esp + 0x28]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x1000aef2
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.10069260
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [edi + 0x40], 0
jne 0x1000a8e8
lea eax, [esp + 0x40]
mov dword [esp + 8], edi
mov byte [edi + 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 edi, 0
mov esi, 0
je 0x1000a9d1
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp byte [esp + 0x48], 0
mov ecx, 0
je 0x1000a9e5
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x1c]
mov dword [edi + 0x40], eax
mov byte [edi + 0x3c], 1
jmp 0x1000a8e8
mov dword [esp + 0x14], ecx
mov dword [esp + 8], edi
mov edi, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [esp + 0x10], eax
mov esi, edi
mov eax, edi
mov edi, ecx
shl edi, 0x17
shld esi, ecx, 0x17
xor edi, ecx
mov ecx, dword [ebx + 0xc]
xor esi, eax
mov dword [esp + 0xc], edi
mov edi, esi
shr edi, 0x11
mov dword [esp + 4], edi
mov eax, ecx
mov edi, ecx
shr eax, 0x1a
xor eax, ecx
mov ecx, dword [ebx + 8]
mov dword [ebx + 4], edi
xor eax, dword [esp + 4]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xc]
xor eax, esi
shld esi, ecx, 0xf
mov ecx, edi
mov edi, dword [esp + 4]
shld ecx, edi, 6
xor ecx, dword [esp + 4]
xor ecx, esi
mov esi, dword [esp + 4]
xor ecx, dword [esp + 0xc]
mov dword [ebx], esi
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], ecx
add ecx, esi
mov esi, edx
ror esi, cl
test esi, esi
je 0x1000aa9a
bsf esi, esi
add esi, ecx
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x14]
and esi, 0x1f
jmp 0x1000a927
mov esi, 0x20
jmp 0x1000aa84
mov ecx, edi
mov edx, ebx
call fcn.100033b0
test eax, eax
mov dword [ebx], eax
jne 0x1000a90a
jmp 0x1000aee8
dec esi
je 0x1000ab8d
bsr ecx, esi
xor ecx, 0x1f
mov eax, 1
neg cl
shl eax, cl
mov dword [esp + 0x20], eax
shr eax, 9
or eax, 1
bsr esi, eax
xor esi, 0x20
jmp 0x1000a8d3
mov eax, esi
dec eax
je 0x1000ab97
bsr ecx, eax
xor ecx, 0x1f
mov edx, 1
neg cl
mov eax, 1
shl edx, cl
cmp esi, 1
cmovbe edx, eax
mov eax, 8
cmp edx, 8
cmova eax, edx
mov dword [esp + 0x20], eax
shr eax, 3
or eax, 1
bsr esi, eax
jmp 0x1000a8d3
mov edx, dword [edi + esi + 0x64]
mov ebx, ecx
mov dword [esp + 0x14], ebx
shl ebx, 5
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + 1]
cmp edx, dword [esp + 4]
mov dword [esp + 0x14], edx
jae 0x1000aee5
mov edx, dword [eax + ecx*4 + 0x10]
add ebx, 0x20
test edx, edx
je 0x1000ab35
mov dword [esp + 4], ecx
mov ecx, dword [edi + 0x40]
test ecx, ecx
jne 0x1000abc2
mov esi, edx
bsf edx, edx
mov ecx, dword [esp + 0x1c]
or ebx, edx
btc esi, edx
mov edx, dword [esp + 4]
imul ebx, dword [edi + ecx + 0x58]
mov ecx, dword [edi + ecx + 0x68]
mov dword [eax + edx*4 + 0x10], esi
mov edx, dword [esp + 0x14]
add ecx, eax
mov dword [eax + 4], edx
jmp 0x1000a946
mov ecx, 0x20
jmp 0x1000aac6
mov ecx, 0x20
jmp 0x1000aaf3
mov ecx, edi
mov edx, esi
cmp esi, 0xfe000
ja 0x1000ac6b
push 0
call fcn.100046a0
add esp, 4
mov ebx, eax
jmp 0x1000a964
mov dword [esp + 8], edi
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x2c], edx
mov ecx, edi
mov dword [esp + 0x18], esi
shld esi, edi, 0x17
shl ecx, 0x17
xor esi, dword [esp + 0x18]
xor ecx, edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc]
mov edi, esi
shr edi, 0x11
mov ecx, dword [ecx + 0xc]
mov edx, ecx
mov dword [esp + 0x24], ecx
shr edx, 0x1a
xor edx, ecx
mov ecx, dword [esp + 0xc]
xor edx, edi
xor edx, esi
mov edi, dword [ecx + 8]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x24]
mov dword [ecx + 4], edi
mov edi, esi
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
shld edi, esi, 0xf
mov esi, dword [esp + 0x18]
shld ecx, esi, 6
xor ecx, esi
mov esi, dword [esp + 0xc]
xor ecx, edi
mov edi, dword [esp + 0x18]
xor ecx, dword [esp + 0x10]
mov dword [esi], edi
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 8], ecx
add ecx, edi
mov esi, edx
ror edx, cl
test edx, edx
je 0x1000ac64
bsf edx, edx
mov edi, dword [esp + 8]
add edx, ecx
and edx, 0x1f
jmp 0x1000ab65
mov edx, 0x20
jmp 0x1000ac56
push 0
push 0x100000
call fcn.10005ff0
add esp, 8
jmp 0x1000abbb
mov dword [esp + 8], edi
push 0x1007a738
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1007a70c]
test eax, eax
jne 0x1000ae55
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 0x1000acee
push 0x1007a740
call fcn.10069bc2
add esp, 4
cmp dword [0x1007a740], 0xffffffff
jne 0x1000acee
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.10069bc2
add esp, 4
mov eax, 0x1000
xor edx, edx
div dword [0x1007a73c]
test edx, edx
jne 0x1000af2d
mov ebx, 0x1007a744
push 0x40
push ebx
push str.MALLOC_OPTIONS
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
cmove ebx, eax
je 0x1000ad5d
mov al, byte [ebx]
test al, al
je 0x1000ad5d
xor esi, esi
movsx ecx, al
add ecx, 0xffffffd0
cmp ecx, 9
jbe 0x1000af77
xor edi, edi
inc edi
jmp 0x1000ad3c
mov al, byte [ebx + esi]
movsx ecx, al
dec edi
cmp ecx, 0x72
jne 0x1000af05
mov byte [0x1007a674], 1
test edi, edi
jne 0x1000ad39
mov al, byte [ebx + esi + 1]
inc esi
test al, al
jne 0x1000ad25
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 0x1000af51
lea edx, [esp + 0x40]
xor ecx, ecx
call fcn.10007350
test eax, eax
mov dword [0x1007a728], eax
je 0x1000af67
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 0x1000af5d
mov edi, eax
push 0x4000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [0x1007a6b4], edi
inc eax
xchg dword [0x1007a70c], eax
call fcn.10006190
push 0x1007a738
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov edi, dword [esp + 8]
jmp 0x1000a890
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_result_
mov ecx, 0x115a
int3
xor edi, edi
jmp 0x1000a883
mov esi, 1
jmp 0x1000a89b
mov edx, esi
cmp esi, 0x201
jb 0x1000aea6
mov edi, dword [0x1007a728]
mov esi, edx
jmp 0x1000a8a3
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov esi, edx
mov eax, dword [ecx + eax*4]
mov edi, dword [eax + 8]
test edi, edi
jne 0x1000a8af
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov edi, dword [0x1007a728]
mov eax, dword [ecx + eax*4]
mov dword [eax + 8], edi
jmp 0x1000a8af
dec dword [eax + 8]
push dword [esp + 0x28]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ebx, ebx
mov dword [eax], 0xc
jmp 0x1000a96c
cmp ecx, 0x46
jne 0x1000af9c
mov eax, dword [0x1007a024]
test eax, eax
je 0x1000afbd
add eax, eax
je 0x1000ad50
mov dword [0x1007a024], eax
jmp 0x1000ad50
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 0x1000af67
mov dword [0x1007a6b4], 0
push 0x1007a738
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x1000aef2
xor edi, edi
lea eax, [edi + edi*4]
lea edi, [ecx + eax*2]
movsx eax, byte [ebx + esi + 1]
inc esi
mov ecx, eax
add ecx, 0xffffffd0
cmp ecx, 0xa
jb 0x1000af79
test edi, edi
je 0x1000ad54
jmp 0x1000ad3c
cmp ecx, 0x52
jne 0x1000afad
mov byte [0x1007a674], 0
jmp 0x1000ad50
cmp ecx, 0x66
jne 0x1000afcc
shr dword [0x1007a024], 1
jmp 0x1000ad50
mov dword [0x1007a024], 1
jmp 0x1000ad50
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 0x1000ad50