Function at 0x1000f910
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, edx
mov edx, dword [ebp + 8]
xor eax, ebp
xor esi, esi
mov dword [esp + 0x68], eax
inc esi
test edx, edx
mov eax, dword [0x1007a70c]
cmove edx, esi
test edi, edi
je 0x1000f9dc
test eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0x14], edx
je 0x10010065
mov ebx, edi
and ebx, 0xfff00000
cmp ebx, edi
je 0x1000fe0d
mov eax, edi
shr eax, 0xc
movzx eax, al
lea eax, [eax + eax*2]
mov eax, dword [ebx + eax*4 + 0x18]
mov esi, eax
and esi, 0xfffff000
test al, 2
jne 0x1000f981
mov eax, dword [esi]
mov esi, dword [eax + 8]
cmp esi, 0xfe000
ja 0x1000fdeb
mov ecx, dword [ebx]
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x1000f9a5
cmp ecx, eax
jne 0x1001009c
mov edx, edi
cmp ebx, 0xfe000
ja 0x1000fddf
push esi
push ebx
call fcn.100061b0
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x100100ba
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
test eax, eax
je 0x1000fe61
mov ecx, dword [ecx]
test ecx, ecx
jne 0x1000fdb8
cmp edx, 0x201
jae 0x1000fdb2
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1001007a
cmp edx, 9
mov dword [esp + 8], ecx
jb 0x1000fc46
cmp edx, 0x201
jae 0x1000fc1e
add edx, 0xf
mov esi, edx
shr edx, 4
and esi, 0xfffffff0
shl edx, 5
cmp byte [ecx + 0x3c], 0
lea ebx, [ecx + edx + 0x50]
mov eax, edx
mov dword [esp + 0x14], edx
jne 0x1000fadb
lea eax, [ecx + 0xc]
mov dword [esp + 4], eax
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edi, dword [ebx]
mov ecx, dword [esp + 8]
test edi, edi
je 0x1000fbfe
cmp dword [edi + 8], 0
je 0x1000fbfe
mov eax, dword [edi + 4]
mov dword [esp + 0x20], esi
mov edx, dword [edi + eax*4 + 0xc]
test edx, edx
je 0x1000fc78
mov esi, dword [ecx + 0x40]
test esi, esi
jne 0x1000fb65
bsf esi, edx
mov ebx, eax
btc edx, esi
shl ebx, 5
or ebx, esi
mov esi, eax
mov eax, dword [esp + 0x14]
imul ebx, dword [ecx + eax + 0x58]
mov eax, dword [ecx + eax + 0x68]
mov dword [edi + esi*4 + 0xc], edx
mov esi, dword [esp + 0x20]
add eax, edi
add ebx, eax
dec dword [edi + 8]
test ebx, ebx
je 0x100100b0
add dword [ecx + 0x2c], esi
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x1000f9bf
cmp dword [ecx + 0x40], 0
jne 0x1000fa52
mov edi, esi
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 esi, 0
mov dword [esp + 4], 0
je 0x1000fb30
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov dword [esp + 4], ecx
cmp byte [esp + 0x48], 0
mov ecx, 0
je 0x1000fb44
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov esi, edi
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 8]
mov dword [ecx + 0x40], eax
mov byte [ecx + 0x3c], 1
jmp 0x1000fa52
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [esp + 0xc], edi
mov ebx, eax
mov edi, eax
mov eax, ecx
shl eax, 0x17
shld ebx, ecx, 0x17
xor eax, ecx
mov ecx, dword [esi + 0xc]
xor ebx, edi
mov dword [esp + 0x18], eax
mov eax, ebx
shr eax, 0x11
mov dword [esp + 0x10], eax
mov eax, ecx
mov edi, ecx
shr eax, 0x1a
xor eax, ecx
mov ecx, dword [esi + 8]
mov dword [esi + 4], edi
xor eax, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
xor eax, ebx
shld ebx, ecx, 0xf
mov ecx, edi
mov edi, dword [esp + 0x10]
shld ecx, edi, 6
xor ecx, dword [esp + 0x10]
xor ecx, ebx
mov ebx, dword [esp + 0x10]
xor ecx, dword [esp + 0x18]
mov dword [esi], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], ecx
add ecx, ebx
mov esi, edx
ror esi, cl
test esi, esi
je 0x1000fbf7
bsf esi, esi
add esi, ecx
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
and esi, 0x1f
jmp 0x1000fa99
mov esi, 0x20
jmp 0x1000fbe1
mov ecx, dword [esp + 8]
mov edx, ebx
call fcn.100033b0
mov ecx, dword [esp + 8]
mov edi, eax
test eax, eax
mov dword [ebx], eax
jne 0x1000fa78
jmp 0x100100b0
dec edx
je 0x1000fcfb
bsr ecx, edx
xor ecx, 0x1f
neg cl
shl esi, cl
mov eax, esi
shr eax, 9
or eax, 1
bsr edx, eax
xor edx, 0x20
mov ecx, dword [esp + 8]
jmp 0x1000fa3b
mov eax, edx
dec eax
je 0x1000fd05
bsr ecx, eax
xor ecx, 0x1f
mov eax, esi
neg cl
shl eax, cl
cmp edx, esi
cmovbe eax, esi
mov esi, 8
cmp eax, 8
cmova esi, eax
mov eax, esi
shr eax, 3
or eax, 1
bsr edx, eax
jmp 0x1000fc3d
mov edx, eax
mov eax, dword [esp + 0x14]
mov ebx, edx
shl ebx, 5
mov eax, dword [ecx + eax + 0x64]
mov dword [esp + 0x18], eax
mov eax, edx
mov edx, eax
inc eax
cmp eax, dword [esp + 0x18]
jae 0x100100ad
mov ecx, dword [edi + edx*4 + 0x10]
add ebx, 0x20
test ecx, ecx
mov dword [esp + 0x10], ecx
je 0x1000fc8d
mov ecx, dword [esp + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 0x40]
test edx, edx
jne 0x1000fd0f
mov eax, dword [esp + 0x10]
bsf edx, eax
btc eax, edx
or ebx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
imul ebx, dword [ecx + eax + 0x58]
mov eax, dword [ecx + eax + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov dword [edi + edx*4 + 0x10], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add eax, edi
mov dword [edi + 4], edx
jmp 0x1000fabc
mov ecx, 0x20
jmp 0x1000fc2b
mov ecx, 0x20
jmp 0x1000fc55
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc], esi
shld esi, ecx, 0x17
mov eax, ecx
xor esi, dword [esp + 0xc]
shl eax, 0x17
xor eax, ecx
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x24], eax
mov eax, esi
shr eax, 0x11
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], eax
mov eax, ecx
shr eax, 0x1a
xor eax, ecx
mov ecx, dword [edx + 8]
xor eax, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x28]
xor eax, esi
mov dword [edx + 4], ecx
mov edx, ecx
mov ecx, dword [esp + 0x24]
shld esi, ecx, 0xf
mov ecx, edx
mov edx, dword [esp + 0xc]
shld ecx, edx, 6
mov edx, dword [esp + 0x2c]
xor ecx, dword [esp + 0xc]
xor ecx, esi
mov esi, dword [esp + 0xc]
xor ecx, dword [esp + 0x24]
mov dword [edx], esi
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 8], ecx
add ecx, esi
mov edx, eax
ror edx, cl
test edx, edx
je 0x1000fdab
bsf edx, edx
add edx, ecx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 8]
and edx, 0x1f
jmp 0x1000fcc3
mov edx, 0x20
jmp 0x1000fd99
mov ecx, dword [0x1007a728]
cmp edx, 0x800
jbe 0x1000fa17
cmp edx, 0xfe000
ja 0x100100cd
push 0
call fcn.100046a0
add esp, 4
jmp 0x1000f9bd
push esi
push ebx
call fcn.100070e0
jmp 0x1000f9ba
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x18]
cmp eax, dword [ecx + 8]
je 0x1000f98f
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_mNode__mArenaId__mNode__mArena__mId_
mov ecx, 0xc3a
jmp 0x10010074
push 0x1007a678
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [0x1007a690]
test ecx, ecx
je 0x100100de
xor eax, eax
mov ebx, ecx
dec eax
xor ecx, ecx
cmp dword [ebx + 0x10], edi
setb cl
cmova ecx, eax
test ecx, ecx
je 0x1000fe4c
cmp ecx, 0xffffffff
je 0x1000fe47
mov ebx, dword [ebx + 0xc]
and ebx, 0xfffffffe
jmp 0x1000fe2b
mov ebx, dword [ebx + 8]
jmp 0x1000fe2b
mov ecx, ebx
mov esi, dword [ecx + 0x14]
push 0x1007a678
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
jmp 0x1000f981
mov dword [esp + 8], ecx
mov dword [esp + 0x14], edx
push 0x1007a738
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1007a70c]
test eax, eax
jne 0x1001004a
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 0x1000fed4
push 0x1007a740
call fcn.10069bc2
add esp, 4
cmp dword [0x1007a740], 0xffffffff
jne 0x1000fed4
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 0x1001010d
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 0x1000ff52
mov al, byte [ebx]
test al, al
je 0x1000ff52
xor esi, esi
mov edi, 2
movsx ecx, al
add ecx, 0xffffffd0
cmp ecx, 9
jbe 0x10010156
xor ecx, ecx
inc ecx
mov dword [esp + 4], ecx
jmp 0x1000ff2b
mov al, byte [ebx + esi]
dec dword [esp + 4]
movsx ecx, al
cmp ecx, 0x72
jne 0x100100e5
mov byte [0x1007a674], 1
cmp dword [esp + 4], 0
jne 0x1000ff28
mov al, byte [ebx + esi + 1]
inc esi
test al, al
jne 0x1000ff10
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 0x10010130
lea edx, [esp + 0x40]
xor ecx, ecx
call fcn.10007350
test eax, eax
mov dword [0x1007a728], eax
je 0x10010146
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 0x1001013c
mov ebx, eax
push 0x4000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [0x1007a6b4], ebx
inc eax
xchg dword [0x1007a70c], eax
call fcn.10006190
push 0x1007a738
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 8]
xor esi, esi
inc esi
jmp 0x1000f9e4
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT_malloc_initialized_
mov ecx, 0x100d
int3
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov edi, dword [0x1007a728]
mov eax, dword [ecx + eax*4]
mov ecx, edi
mov dword [eax + 8], edi
jmp 0x1000fa17
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_RELEASE_ASSERT__mArena__arena__mArena_
mov ecx, 0x1011
jmp 0x10010074
dec dword [edi + 8]
push dword [esp + 4]
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 0x1000f9c7
push 0
push 0x100000
call fcn.10005ff0
jmp 0x1000f9ba
xor ebx, ebx
jmp 0x1000fe4e
cmp ecx, 0x46
jne 0x1001018c
mov eax, dword [0x1007a024]
test eax, eax
je 0x100101ad
add eax, eax
je 0x1000ff42
mov dword [0x1007a024], eax
jmp 0x1000ff42
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
jmp 0x10010074
mov dword [0x1007a728], 0
jmp 0x10010146
mov dword [0x1007a6b4], 0
push 0x1007a738
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x100100ba
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
mov dword [esp + 4], eax
movsx eax, byte [ebx + esi + 1]
inc esi
mov ecx, eax
add ecx, 0xffffffd0
cmp ecx, 0xa
jb 0x1001015e
cmp dword [esp + 4], 0
je 0x1000ff49
jmp 0x1000ff2b
cmp ecx, 0x52
jne 0x1001019d
mov byte [0x1007a674], 0
jmp 0x1000ff42
cmp ecx, 0x66
jne 0x100101bc
shr dword [0x1007a024], 1
jmp 0x1000ff42
mov dword [0x1007a024], 1
jmp 0x1000ff42
mov byte [esp + 0x40], al
mov byte [esp + 0x41], 0
push 0xa
push str._jemalloc_
push edi
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:_
push edi
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 0x1000ff42