Function at 0x10007ef0
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 0x10008358
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, ecx
mul esi
seto al
test al, 1
jne 0x1000853a
imul esi, ecx
test al, al
jne 0x1000854e
test esi, esi
je 0x1000833a
cmp esi, 0x200
ja 0x1000814b
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax + 8]
test edi, edi
je 0x1000831a
cmp esi, 8
jbe 0x1000819b
add esi, 0xf
and esi, 0xfffffff0
mov dword [esp + 0x1c], esi
lea ebx, [edi + esi*2 + 0x50]
cmp byte [edi + 0x3c], 0
mov dword [esp + 8], edi
mov dword [esp + 0x20], ebx
jne 0x1000803f
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 0x10008183
cmp dword [eax + 8], 0
je 0x10008183
mov ecx, dword [eax + 4]
mov esi, dword [eax + ecx*4 + 0xc]
mov dword [esp + 0x18], ecx
test esi, esi
je 0x100081dc
mov ecx, dword [esp + 8]
mov ebx, dword [ecx + 0x40]
test ebx, ebx
jne 0x100080be
bsf edx, esi
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
btc esi, edx
mov edi, ebx
shl edi, 5
or edi, edx
imul edi, dword [ecx + 8]
mov ecx, dword [ecx + 0x18]
mov dword [eax + ebx*4 + 0xc], esi
mov esi, dword [esp + 8]
add ecx, eax
add edi, ecx
dec dword [eax + 8]
test edi, edi
je 0x10008544
mov ebx, dword [esp + 0x1c]
add dword [esi + 0x2c], ebx
push dword [esp + 0x28]
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push ebx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x1000854e
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.10069260
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [edi + 0x40], 0
jne 0x10007f8e
lea eax, [esp + 0x40]
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 edi, [esp + 0x30]
push edi
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 [edi + 8], 0
mov ecx, 0
mov edi, 0
je 0x1000808b
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
cmp byte [esp + 0x48], 0
mov ebx, 0
je 0x1000809f
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov dword [edi + 0x40], eax
mov byte [edi + 0x3c], 1
jmp 0x10007f8e
mov edi, dword [ebx + 4]
mov ecx, dword [ebx]
mov dword [esp + 0x14], eax
mov edx, edi
mov eax, edi
mov edi, ecx
shl edi, 0x17
shld edx, ecx, 0x17
xor edi, ecx
mov ecx, dword [ebx + 0xc]
xor edx, eax
mov dword [esp + 0xc], edi
mov edi, edx
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, edx
shld edx, ecx, 0xf
mov ecx, edi
mov edi, dword [esp + 4]
shld ecx, edi, 6
xor ecx, dword [esp + 4]
xor ecx, edx
mov edx, dword [esp + 4]
xor ecx, dword [esp + 0xc]
mov dword [ebx], edx
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], ecx
add ecx, edx
mov edx, esi
ror edx, cl
test edx, edx
je 0x10008144
bsf edx, edx
mov eax, dword [esp + 0x14]
add edx, ecx
and edx, 0x1f
jmp 0x10007fd5
mov edx, 0x20
jmp 0x10008136
mov edi, dword [0x1007a728]
cmp esi, 0x801
jae 0x10008248
dec esi
je 0x10008269
bsr ecx, esi
xor ecx, 0x1f
neg cl
xor eax, eax
inc eax
shl eax, cl
mov dword [esp + 0x1c], eax
shr eax, 9
or eax, 1
bsr eax, eax
xor eax, 0x20
jmp 0x100081d0
mov ecx, edi
mov edx, ebx
call fcn.100033b0
test eax, eax
mov dword [ebx], eax
jne 0x10007fb0
jmp 0x10008544
mov eax, esi
dec eax
je 0x10008273
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor eax, eax
inc eax
mov edx, eax
shl edx, cl
cmp esi, eax
cmovbe edx, eax
mov eax, 8
cmp edx, 8
cmova eax, edx
mov dword [esp + 0x1c], eax
shr eax, 3
or eax, 1
bsr eax, eax
shl eax, 5
lea ebx, [edi + eax + 0x50]
jmp 0x10007f7c
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x14]
mov edi, esi
shl edi, 5
mov ebx, esi
inc esi
cmp esi, ecx
jae 0x10008541
mov edx, dword [eax + ebx*4 + 0x10]
add edi, 0x20
test edx, edx
mov dword [esp + 4], edx
je 0x100081e8
mov ecx, dword [esp + 8]
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], ebx
mov esi, dword [ecx + 0x40]
test esi, esi
jne 0x1000827d
mov ecx, dword [esp + 4]
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bsf edx, ecx
btc ecx, edx
or edi, edx
mov edx, ecx
mov ecx, dword [esp + 0x20]
imul edi, dword [ecx + 8]
mov ecx, dword [ecx + 0x18]
mov dword [eax + ebx*4 + 0x10], edx
mov edx, dword [esp + 0x18]
add ecx, eax
mov dword [eax + 4], edx
jmp 0x10007ff8
mov ecx, edi
mov edx, esi
cmp esi, 0xfe000
ja 0x10008344
push 1
call fcn.100046a0
add esp, 4
mov edi, eax
jmp 0x10008022
mov ecx, 0x20
jmp 0x1000816a
mov ecx, 0x20
jmp 0x100081aa
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], ecx
shld ecx, ebx, 0x17
mov edx, ebx
xor ecx, dword [esp + 0x10]
shl edx, 0x17
xor edx, ebx
mov ebx, dword [esi + 0xc]
mov dword [esp + 0x14], edx
mov edx, ecx
shr edx, 0x11
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], edx
mov edx, ebx
shr edx, 0x1a
xor edx, ebx
mov ebx, dword [esi + 8]
xor edx, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x24]
xor edx, ecx
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x14]
shld ecx, ebx, 0xf
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi], ebx
mov dword [esi + 0xc], edx
mov edx, dword [esp + 4]
shld ecx, ebx, 6
xor ecx, ebx
xor ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x14]
mov dword [esi + 8], ecx
add ecx, ebx
ror edx, cl
test edx, edx
je 0x10008313
bsf edx, edx
add edx, ecx
mov esi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 4]
and edx, 0x1f
jmp 0x10008224
mov edx, 0x20
jmp 0x100082fd
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 0x10007f65
mov esi, 1
jmp 0x10007f3c
push 1
push 0x100000
call fcn.10005ff0
add esp, 8
jmp 0x10008262
push 0x1007a738
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1007a70c]
test eax, eax
jne 0x1000852a
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 0x100083c3
push 0x1007a740
call fcn.10069bc2
add esp, 4
cmp dword [0x1007a740], 0xffffffff
jne 0x100083c3
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 0x10008589
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 0x10008432
mov al, byte [edi]
test al, al
je 0x10008432
xor ebx, ebx
movsx ecx, al
add ecx, 0xffffffd0
cmp ecx, 9
jbe 0x100085d3
xor esi, esi
inc esi
jmp 0x10008411
mov al, byte [edi + ebx]
movsx ecx, al
dec esi
cmp ecx, 0x72
jne 0x10008561
mov byte [0x1007a674], 1
test esi, esi
jne 0x1000840e
mov al, byte [edi + ebx + 1]
inc ebx
test al, al
jne 0x100083fa
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 0x100085ad
lea edx, [esp + 0x40]
xor ecx, ecx
call fcn.10007350
test eax, eax
mov dword [0x1007a728], eax
je 0x100085c3
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 0x100085b9
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]
jmp 0x10007f14
xor esi, esi
jmp 0x10007f2c
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 edi, edi
mov dword [eax], 0xc
jmp 0x1000802a
cmp ecx, 0x46
jne 0x100085f8
mov eax, dword [0x1007a024]
test eax, eax
je 0x10008619
add eax, eax
je 0x10008425
mov dword [0x1007a024], eax
jmp 0x10008425
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 0x100085c3
mov dword [0x1007a6b4], 0
push 0x1007a738
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x1000854e
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 0x100085d5
test esi, esi
je 0x10008429
jmp 0x10008411
cmp ecx, 0x52
jne 0x10008609
mov byte [0x1007a674], 0
jmp 0x10008425
cmp ecx, 0x66
jne 0x10008628
shr dword [0x1007a024], 1
jmp 0x10008425
mov dword [0x1007a024], 1
jmp 0x10008425
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 0x10008425