Function at 0x100271a0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100addfc
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x100e2524]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xa0], eax
lea edi, [eax + 0x28]
mov esi, dword [edi]
mov ecx, edi
mov dword [ebp - 4], 0
push dword [esi + 4]
call fcn.10028a50
mov eax, dword [edi]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
call fcn.100205f0
mov ecx, eax
call fcn.10035700
push eax
lea ecx, [ebp - 0xf8]
call fcn.100187d0
mov esi, dword [ebp - 0xf8]
mov dword [ebp - 4], 1
test esi, esi
je 0x100278da
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xac], 0
push ecx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xa8], 0
mov eax, dword [esi]
push ecx
push 0
push esi
call dword [eax + 0x24]
mov ebx, eax
test ebx, ebx
jns 0x10027273
push 0x100ba898
push esi
push ebx
call fcn.10063db0
test ebx, ebx
jne 0x100278da
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x100278da
push eax
push dword [ebp - 0xac]
lea ecx, [ebp - 0x118]
call fcn.10077fe0
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x104]
call fcn.10077eb0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0
push eax
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x9c], 0
call fcn.10077fb0
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x104]
call fcn.10077fb0
cmp dword [ebp - 0x9c], 0xf10
jb 0x100278cf
mov eax, dword [ebp - 0x114]
cmp dword [eax + 8], 0
jne 0x100278cf
push 0x3c
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], 0x40
push 0
push eax
call fcn.100832e0
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xor ebx, ebx
mov dword [ebp - 0xf4], ebx
cmp dword [ebp - 0xa4], ebx
jle 0x100278cf
mov esi, dword [ebp - 0xa0]
nop dword [eax + eax]
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x98], 0
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0xb0], 0
push eax
lea ecx, [ebp - 0x104]
call fcn.10077f50
mov eax, dword [ebp - 0xb0]
cmp eax, dword [ebp - 0x9c]
jne 0x100278c9
cmp dword [ebp - 0x98], 0
je 0x100278c9
push str.machine
lea ecx, [ebp - 0xb4]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 4
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 2
call fcn.10009500
push 0x100bb010
lea ecx, [ebp - 0xb8]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 0xce
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.10009500
push 0x100b9b80
lea ecx, [ebp - 0xbc]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 0x198
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 2
call fcn.10009500
push 0x100bb018
lea ecx, [ebp - 0xc0]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 0x262
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.10009500
push str.chip
lea ecx, [ebp - 0xc4]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 0x32c
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 2
call fcn.10009500
push 0x100bb02c
lea ecx, [ebp - 0xc8]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 0x3f6
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 2
call fcn.10009500
push str.ram_capacity
lea ecx, [ebp - 0xcc]
call fcn.10012b10
push dword [ebp - 0x88]
lea eax, [ebp - 0x12]
mov byte [ebp - 4], 9
push dword [ebp - 0x8c]
push eax
call fcn.1001b530
mov ecx, eax
mov dword [ebp - 0x44], 0
xor eax, eax
add esp, 0xc
mov word [ebp - 0x54], ax
mov edx, 7
lea eax, [ebp - 0x12]
mov dword [ebp - 0x40], edx
cmp ecx, eax
je 0x1002758d
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.100185f0
mov edx, dword [ebp - 0x40]
cmp edx, 8
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x54]
mov ecx, edi
cmovae eax, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0x54]
call fcn.10009710
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 2
call fcn.10009500
push 0x100bb050
lea ecx, [ebp - 0xd0]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 0x4c0
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 2
call fcn.10009500
push str.directx
lea ecx, [ebp - 0xd4]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 0xa52
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 2
call fcn.10009500
push 0x100bb074
lea ecx, [ebp - 0xd8]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 0x58a
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 2
call fcn.10009500
push str.monitor
lea ecx, [ebp - 0xdc]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 0x654
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call fcn.10009500
push str.cdrom
lea ecx, [ebp - 0xe0]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 0x71e
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0xe0]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.10009500
push str.sound_card
lea ecx, [ebp - 0xe4]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 0x7e8
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 2
call fcn.10009500
push str.net_card
lea ecx, [ebp - 0xe8]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov ecx, edi
add eax, 0x8b2
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 2
call fcn.10009500
push str.is_notebook
lea ecx, [ebp - 0xec]
call fcn.10012b10
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 0x12
push dword [eax + 0x97c]
lea eax, [ebp - 0x54]
push eax
call fcn.10029260
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x13
jb 0x100277dc
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xec]
mov ecx, edi
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0x54]
call fcn.10009710
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 2
call fcn.10009500
push str.release_id
lea ecx, [ebp - 0xa0]
call fcn.10012b10
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 0x14
push eax
mov ecx, esi
call fcn.10020920
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0x15
push eax
mov ecx, edi
call fcn.1001c170
mov ecx, eax
call fcn.1001c030
lea ecx, [ebp - 0xfc]
call fcn.10009500
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.10009500
cmp dword [ebp - 0x9c], 0x10ac
jb 0x100278b6
mov ebx, dword [ebp - 0x98]
lea ecx, [ebp - 0xf0]
push str.os_ver
call fcn.10012b10
lea eax, [ebx + 0xfe0]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.1001c170
mov ecx, eax
call fcn.1001c0a0
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 2
call fcn.10009500
mov ebx, dword [ebp - 0xf4]
inc ebx
mov dword [ebp - 0xf4], ebx
cmp ebx, dword [ebp - 0xa4]
jl 0x10027350
mov esi, dword [ebp - 0xf8]
lea ecx, [ebp - 0x118]
call fcn.10078010
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100278eb
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007850b
mov esp, ebp
pop ebp
ret