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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x100a580c], 0
je 0x1004da03
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edi, edi
inc edi
test ecx, ecx
cmovne edi, ecx
cmp eax, 5
mov esi, 4
cmovae esi, eax
cmp edi, 0x1f1
jb 0x1004d98f
mov ecx, dword [0x100a5744]
lea eax, [esi + edi]
dec eax
mov edx, esi
neg edx
and edx, eax
xor ebx, ebx
cmp edx, edi
jb 0x1004d97b
cmp edx, 0x1001
jae 0x1004dc18
cmp edx, 0xf00
ja 0x1004dc28
push 0
call fcn.10024830
add esp, 4
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004fb50
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x100a53c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 8], 0
je 0x1004dc9d
mov eax, dword [0x100a53c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x1004d947
mov ebx, dword [0x100a5744]
mov eax, dword [0x100a53c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 8], 0
jne 0x1004d9e7
call fcn.1004f684
mov eax, dword [0x100a53c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, ebx
mov dword [eax + 0xc], ebx
jmp 0x1004d947
push 0x100a5810
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
cmp dword [0x100a580c], 0
jne 0x1004dc08
mov eax, dword [0x100a53c8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 8], 0
je 0x1004dcdd
mov eax, dword [0x100a5818]
mov ecx, dword [0x100a53c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x1004da89
push 0x100a5818
call fcn.1004fb5e
add esp, 4
cmp dword [0x100a5818], 0xffffffff
jne 0x1004da89
lea esi, [ebp - 0x34]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x100a5814], eax
push 0x100a5818
call fcn.1004fb5e
add esp, 4
mov eax, 0x1000
xor edx, edx
div dword [0x100a5814]
test edx, edx
jne 0x1004dce7
mov edi, 0x100a581c
push 0x40
push edi
push str.MALLOC_OPTIONS
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
cmove edi, eax
je 0x1004daf4
mov al, byte [edi]
test al, al
je 0x1004daf4
xor ebx, ebx
movsx eax, al
add eax, 0xffffffd0
cmp eax, 9
jbe 0x1004dd42
xor esi, esi
inc esi
mov al, byte [edi + ebx]
movsx ecx, al
cmp ecx, 0x72
jne 0x1004dcb5
mov byte [0x100a5774], 1
dec esi
jne 0x1004dad2
mov al, byte [edi + ebx + 1]
inc ebx
test al, al
jne 0x1004dac0
xor ebx, ebx
mov dword [0x100a57d8], ebx
mov edi, 0x1388
mov esi, dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
push edi
push 0x100a57b8
call esi
mov dword [0x100a57d0], ebx
mov dword [0x100a57d4], ebx
push edi
push 0x100a5778
call esi
mov dword [0x100a5790], ebx
mov dword [0x100a5794], ebx
mov dword [0x100a5798], ebx
push edi
push 0x100a57dc
call esi
mov dword [0x100a5808], ebx
mov dword [0x100a5800], ebx
mov dword [0x100a574c], ebx
mov dword [0x100a5750], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [0x100a5024]
mov dword [ebp - 0x34], eax
push edi
push 0x100a572c
call esi
test eax, eax
je 0x1004dd0b
lea edx, [ebp - 0x34]
xor ecx, ecx
call fcn.10041370
mov dword [0x100a5744], eax
test eax, eax
je 0x1004dd30
mov ecx, dword [0x100a53c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp byte [ecx + 8], 0
je 0x1004dd17
mov ecx, dword [0x100a53c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 0xc], eax
push 0x1388
push 0x100a579c
call dword [sym.imp.kernel32.dll_InitializeCriticalSectionAndSpinCount]
mov ecx, 0x4000
call fcn.10011e30
test eax, eax
je 0x1004dd26
mov esi, eax
push 0x4000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x100a57b4], esi
xor eax, eax
inc eax
xchg dword [0x100a580c], eax
call fcn.10001250
push 0x100a5810
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x1004d920
cmp esi, 0x1000
ja 0x1004dc34
cmp edx, 0xfd001
jae 0x1004dc34
push 0
call fcn.1003a880
jmp 0x1004d976
mov dword [ebp - 0x38], ecx
mov edx, 0xfff
mov ecx, 0xfffff000
lea eax, [edi + edx]
and eax, ecx
cmp eax, edi
jb 0x1004d97b
add esi, edx
and esi, ecx
mov edi, eax
add edi, esi
jb 0x1004d97b
lea ecx, [esi + esi]
cmp eax, esi
cmovb edi, ecx
add edi, 0xfffff000
cmp edi, 0xfd000
jbe 0x1004dca7
cmp esi, 0x100000
ja 0x1004dc88
mov ecx, dword [ebp - 0x38]
mov edx, eax
push 0
push 0x100000
jmp 0x1004dc90
mov ecx, dword [ebp - 0x38]
mov edx, eax
push 0
push esi
call fcn.100029a0
add esp, 8
jmp 0x1004d979
call fcn.1004f684
jmp 0x1004d9ab
mov ecx, dword [ebp - 0x38]
mov edx, esi
push edi
push eax
call fcn.10054a40
jmp 0x1004dc95
cmp ecx, 0x46
jne 0x1004dd65
mov eax, dword [0x100a5024]
test eax, eax
je 0x1004dd86
add eax, eax
je 0x1004dae8
mov dword [0x100a5024], eax
jmp 0x1004dae8
call fcn.1004f684
jmp 0x1004da37
mov ecx, str._jemalloc_
mov edx, str.Compile_time_page_size_does_not_divide_the_runtime_one._n
call fcn.10054c10
mov dword [sym.mozglue.dll_gMozCrashReason], str.MOZ_CRASH__
int3
mov dword [0x100a5744], 0
jmp 0x1004dd30
call fcn.1004f684
mov eax, dword [0x100a5744]
jmp 0x1004dbaa
mov dword [0x100a57b4], 0
push 0x100a5810
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
xor ebx, ebx
jmp 0x1004d97b
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 0x1004dd44
test esi, esi
je 0x1004daeb
jmp 0x1004dad2
cmp ecx, 0x52
jne 0x1004dd76
mov byte [0x100a5774], 0
jmp 0x1004dae8
cmp ecx, 0x66
jne 0x1004dd95
shr dword [0x100a5024], 1
jmp 0x1004dae8
mov dword [0x100a5024], 1
jmp 0x1004dae8
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, 0x1009afc9
call fcn.10054c10
jmp 0x1004dae8