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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x100a400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x100a4810], 0
je 0x10024967
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, ecx
mul edi
jo 0x10024c1c
imul edi, ecx
xor esi, esi
inc esi
test edi, edi
cmovne esi, edi
cmp esi, 0x1f0
ja 0x100248f4
mov eax, dword [0x100a43c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 8], 0
je 0x10024b82
mov eax, dword [0x100a43c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax + 0xc]
test edi, edi
je 0x10024917
mov ecx, edi
mov edx, esi
push 1
call fcn.10024cd0
add esp, 4
mov esi, eax
test eax, eax
je 0x10024c1c
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004f020
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [0x100a4744]
cmp esi, 0xf00
jbe 0x100248c8
mov ecx, edi
mov edx, esi
cmp esi, 0xfd000
ja 0x10024953
push 1
call fcn.10035340
jmp 0x100248d3
mov edi, dword [0x100a4744]
mov eax, dword [0x100a43c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 8], 0
je 0x10024b8c
mov eax, dword [0x100a43c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0xc], edi
jmp 0x100248c8
push 1
push 0x100000
call fcn.100023d0
add esp, 8
jmp 0x100248d6
push 0x100a4814
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
cmp dword [0x100a4810], 0
jne 0x10024b72
mov eax, dword [0x100a43c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 8], 0
je 0x10024bbe
mov eax, dword [0x100a481c]
mov ecx, dword [0x100a43c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x100249ed
push 0x100a481c
call fcn.1004f02e
add esp, 4
cmp dword [0x100a481c], 0xffffffff
jne 0x100249ed
lea esi, [ebp - 0x34]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x100a4818], eax
push 0x100a481c
call fcn.1004f02e
add esp, 4
mov eax, 0x1000
xor edx, edx
div dword [0x100a4818]
test edx, edx
jne 0x10024bc8
mov edi, 0x100a4820
push 0x40
push edi
push str.MALLOC_OPTIONS
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
cmove edi, eax
je 0x10024a58
mov al, byte [edi]
test al, al
je 0x10024a58
xor ebx, ebx
movsx eax, al
add eax, 0xffffffd0
cmp eax, 9
jbe 0x10024c2f
xor esi, esi
inc esi
mov al, byte [edi + ebx]
movsx ecx, al
cmp ecx, 0x72
jne 0x10024b96
mov byte [0x100a4778], 1
dec esi
jne 0x10024a36
mov al, byte [edi + ebx + 1]
inc ebx
test al, al
jne 0x10024a24
xor ebx, ebx
mov dword [0x100a47dc], ebx
mov edi, 0x1388
mov esi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
push edi
push 0x100a47bc
call esi
mov dword [0x100a47d4], ebx
mov dword [0x100a47d8], ebx
push edi
push 0x100a477c
call esi
mov dword [0x100a4794], ebx
mov dword [0x100a4798], ebx
mov dword [0x100a479c], ebx
push edi
push 0x100a47e0
call esi
mov dword [0x100a480c], ebx
mov dword [0x100a4804], ebx
mov dword [0x100a474c], ebx
mov dword [0x100a4750], ebx
mov dword [0x100a4754], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [0x100a4024]
mov dword [ebp - 0x34], eax
push edi
push 0x100a472c
call esi
test eax, eax
je 0x10024bec
lea edx, [ebp - 0x34]
xor ecx, ecx
call fcn.10040920
mov dword [0x100a4744], eax
test eax, eax
je 0x10024c11
mov ecx, dword [0x100a43c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp byte [ecx + 8], 0
je 0x10024bf8
mov ecx, dword [0x100a43c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 0xc], eax
push 0x1388
push 0x100a47a0
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
mov ecx, 0x4000
call fcn.100123e0
test eax, eax
je 0x10024c07
mov esi, eax
push 0x4000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x100a47b8], esi
xor eax, eax
inc eax
xchg dword [0x100a4810], eax
call fcn.10001250
push 0x100a4814
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x10024870
call fcn.1004eb54
jmp 0x100248af
call fcn.1004eb54
jmp 0x10024939
cmp ecx, 0x46
jne 0x10024c52
mov eax, dword [0x100a4024]
test eax, eax
je 0x10024c73
add eax, eax
je 0x10024a4c
mov dword [0x100a4024], eax
jmp 0x10024a4c
call fcn.1004eb54
jmp 0x1002499b
mov ecx, str._jemalloc_
mov edx, str.Compile_time_page_size_does_not_divide_the_runtime_one._n
call fcn.10054100
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_CRASH__
int3
mov dword [0x100a4744], 0
jmp 0x10024c11
call fcn.1004eb54
mov eax, dword [0x100a4744]
jmp 0x10024b14
mov dword [0x100a47b8], 0
push 0x100a4814
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
xor esi, esi
jmp 0x100248e0
xor esi, esi
lea ecx, [esi + esi*4]
lea esi, [eax + ecx*2]
movsx eax, byte [edi + ebx + 1]
inc ebx
add eax, 0xffffffd0
cmp eax, 0xa
jb 0x10024c31
test esi, esi
je 0x10024a4f
jmp 0x10024a36
cmp ecx, 0x52
jne 0x10024c63
mov byte [0x100a4778], 0
jmp 0x10024a4c
cmp ecx, 0x66
jne 0x10024c82
shr dword [0x100a4024], 1
jmp 0x10024a4c
mov dword [0x100a4024], 1
jmp 0x10024a4c
lea ecx, [ebp - 0x34]
mov byte [ecx], al
mov byte [ecx + 1], 0
mov eax, 2
push 0xa
push str._jemalloc_
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, [ebp - 0x34]
mov edx, 0x1009a0a1
call fcn.10054100
jmp 0x10024a4c