Function at 0x10007780
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 0x10007bd4
mov edx, dword [ebp + 8]
test edx, edx
je 0x10007b94
cmp edx, 0x200
ja 0x100079a3
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10007b9e
cmp edx, 8
jbe 0x10007a09
add edx, 0xf
and edx, 0xfffffff0
lea ebx, [ecx + edx*2 + 0x50]
cmp byte [ecx + 0x3c], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 4], ecx
jne 0x1000789d
lea edi, [ecx + 0xc]
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [ebx]
mov ecx, dword [esp + 4]
test esi, esi
je 0x100079e9
cmp dword [esi + 8], 0
je 0x100079e9
mov eax, dword [esi + 4]
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], ebx
mov edi, dword [esi + eax*4 + 0xc]
test edi, edi
je 0x10007a52
mov ebx, dword [ecx + 0x40]
test ebx, ebx
jne 0x1000791c
bsf edx, edi
mov ebx, eax
btc edi, edx
shl ebx, 5
or ebx, edx
mov edx, eax
mov eax, dword [esp + 0x24]
imul ebx, dword [eax + 8]
mov eax, dword [eax + 0x18]
mov dword [esi + edx*4 + 0xc], edi
mov edi, dword [esp + 0x10]
add eax, esi
add ebx, eax
dec dword [esi + 8]
test ebx, ebx
je 0x10007dbd
mov eax, dword [esp + 0x2c]
add dword [ecx + 0x2c], eax
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x10007dc4
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 [ecx + 0x40], 0
jne 0x100077fd
mov esi, ebx
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 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 0x100078eb
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
cmp byte [esp + 0x48], 0
mov ebx, 0
je 0x100078ff
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 4]
mov ebx, esi
mov dword [eax + 8], edi
mov dword [ecx + 0x40], eax
mov byte [ecx + 0x3c], 1
jmp 0x100077fd
mov ecx, dword [ebx]
mov dword [esp + 0x18], esi
mov esi, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, ecx
mov edx, esi
shl eax, 0x17
shld edx, ecx, 0x17
xor eax, ecx
mov ecx, dword [ebx + 0xc]
xor edx, esi
mov dword [esp + 8], eax
mov esi, edx
shr esi, 0x11
mov eax, ecx
shr eax, 0x1a
xor eax, ecx
xor eax, esi
mov esi, dword [ebx + 8]
mov dword [ebx + 4], ecx
xor eax, edx
mov dword [esp + 0x14], esi
mov esi, dword [esp + 8]
shld edx, esi, 0xf
mov esi, dword [esp + 0x14]
shld ecx, esi, 6
mov dword [ebx], esi
mov dword [ebx + 0xc], eax
xor ecx, esi
xor ecx, edx
mov edx, edi
xor ecx, dword [esp + 8]
mov dword [ebx + 8], ecx
add ecx, esi
ror edx, cl
test edx, edx
je 0x1000799c
bsf edx, edx
add edx, ecx
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 4]
and edx, 0x1f
jmp 0x10007844
mov edx, 0x20
jmp 0x10007986
mov ecx, dword [0x1007a728]
cmp edx, 0x801
jae 0x10007ac8
mov esi, ecx
dec edx
je 0x10007aef
bsr ecx, edx
xor ecx, 0x1f
mov edx, 1
neg cl
shl edx, cl
mov ecx, esi
mov eax, edx
shr eax, 9
or eax, 1
bsr eax, eax
xor eax, 0x20
shl eax, 5
lea ebx, [esi + eax + 0x50]
jmp 0x100077eb
mov ecx, dword [esp + 4]
mov edx, ebx
call fcn.100033b0
mov ecx, dword [esp + 4]
mov esi, eax
test eax, eax
mov dword [ebx], eax
jne 0x1000781f
jmp 0x10007dbd
mov eax, edx
mov edi, ecx
dec eax
je 0x10007ae5
bsr ecx, eax
xor ecx, 0x1f
mov esi, 1
neg cl
mov eax, 1
shl esi, cl
cmp edx, 1
mov edx, 8
mov ecx, edi
cmovbe esi, eax
cmp esi, 8
cmova edx, esi
mov eax, edx
shr eax, 3
or eax, 1
bsr eax, eax
shl eax, 5
lea ebx, [edi + eax + 0x50]
jmp 0x100077eb
mov ecx, dword [ebx + 0x14]
mov ebx, eax
shl ebx, 5
mov edx, eax
inc eax
cmp eax, ecx
jae 0x10007db6
mov edi, dword [esi + edx*4 + 0x10]
add ebx, 0x20
test edi, edi
mov dword [esp + 8], edi
je 0x10007a5a
mov ecx, dword [esp + 4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 0x40]
test edx, edx
jne 0x10007af9
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x10]
bsf edx, eax
btc eax, edx
or ebx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
imul ebx, dword [eax + 8]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov dword [esi + edx*4 + 0x10], eax
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x1c]
add eax, esi
mov dword [esi + 4], edx
jmp 0x10007865
cmp edx, 0xfe000
ja 0x10007bc0
push 0
call fcn.100046a0
add esp, 4
mov ebx, eax
jmp 0x10007880
mov ecx, 0x20
jmp 0x10007a1a
mov ecx, 0x20
jmp 0x100079c4
mov edi, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0xc], ecx
shld ecx, edi, 0x17
mov eax, edi
xor ecx, dword [esp + 0xc]
shl eax, 0x17
xor eax, edi
mov edi, dword [edx + 0xc]
mov dword [esp + 0x14], eax
mov eax, ecx
shr eax, 0x11
mov dword [esp + 0x20], edi
mov dword [esp + 0xc], eax
mov eax, edi
shr eax, 0x1a
xor eax, edi
mov edi, dword [edx + 8]
xor eax, dword [esp + 0xc]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x20]
xor eax, ecx
mov dword [edx + 4], edi
mov edi, dword [esp + 0x14]
shld ecx, edi, 0xf
mov edi, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x20]
mov dword [edx], edi
mov dword [edx + 0xc], eax
mov eax, dword [esp + 8]
shld ecx, edi, 6
xor ecx, edi
xor ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x14]
mov dword [edx + 8], ecx
add ecx, edi
mov edx, eax
ror edx, cl
test edx, edx
je 0x10007b8d
bsf edx, edx
add edx, ecx
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 4]
and edx, 0x1f
jmp 0x10007a92
mov edx, 0x20
jmp 0x10007b7b
mov edx, 1
jmp 0x100077af
mov eax, dword [0x1007a2f0]
mov ecx, dword fs:[0x2c]
mov esi, dword [0x1007a728]
mov eax, dword [ecx + eax*4]
mov ecx, esi
mov dword [eax + 8], esi
jmp 0x100077d8
push 0
push 0x100000
call fcn.10005ff0
add esp, 8
jmp 0x10007ade
push 0x1007a738
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x1007a70c]
test eax, eax
jne 0x10007da6
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 0x10007c3f
push 0x1007a740
call fcn.10069281
add esp, 4
cmp dword [0x1007a740], 0xffffffff
jne 0x10007c3f
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 0x10007dff
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 0x10007cae
mov al, byte [edi]
test al, al
je 0x10007cae
xor ebx, ebx
movsx ecx, al
add ecx, 0xffffffd0
cmp ecx, 9
jbe 0x10007e49
xor esi, esi
inc esi
jmp 0x10007c8d
mov al, byte [edi + ebx]
movsx ecx, al
dec esi
cmp ecx, 0x72
jne 0x10007dd7
mov byte [0x1007a674], 1
test esi, esi
jne 0x10007c8a
mov al, byte [edi + ebx + 1]
inc ebx
test al, al
jne 0x10007c76
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 0x10007e23
lea edx, [esp + 0x40]
xor ecx, ecx
call fcn.10007350
test eax, eax
mov dword [0x1007a728], eax
je 0x10007e39
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 0x10007e2f
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 0x100077a4
dec dword [esi + 8]
mov edi, dword [esp + 0x10]
push edi
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 0x10007888
cmp ecx, 0x46
jne 0x10007e6e
mov eax, dword [0x1007a024]
test eax, eax
je 0x10007e8f
add eax, eax
je 0x10007ca1
mov dword [0x1007a024], eax
jmp 0x10007ca1
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 0x10007e39
mov dword [0x1007a6b4], 0
push 0x1007a738
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x10007dc4
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 0x10007e4b
test esi, esi
je 0x10007ca5
jmp 0x10007c8d
cmp ecx, 0x52
jne 0x10007e7f
mov byte [0x1007a674], 0
jmp 0x10007ca1
cmp ecx, 0x66
jne 0x10007e9e
shr dword [0x1007a024], 1
jmp 0x10007ca1
mov dword [0x1007a024], 1
jmp 0x10007ca1
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 0x10007ca1