Function at 0x1002ce1b
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ae7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002ce71
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax]
test eax, eax
je 0x1002ce6c
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
jmp 0x1002d3d6
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], 0x9ad59e57
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0xd8], 0xfffffffe
mov dword [ebp - 0x30], 0
jmp 0x1002ceb7
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jge 0x1002cecd
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0xc8], 1
jmp 0x1002ceb0
mov dword [ebp - 0x14], 0
jmp 0x1002cedd
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jg 0x1002cfde
mov dword [ebp - 0x4c], 6
mov dword [ebp - 0xa8], 1
push 0x7cfd
lea eax, [ebp - 0x4c]
push eax
push 0x14d8
push 0
push 0x70a6
call fcn.10028c61
add esp, 0x14
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0xc8]
cmp dword [ebp - 0x14], eax
jg 0x1002cf2d
mov dword [ebp - 0x68], 1
jmp 0x1002cf31
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x68], eax
jl 0x1002cf45
mov dword [ebp - 0x88], 1
jmp 0x1002cf4c
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x4c]
dec ecx
cmp dword [ebp + eax*4 - 0xc8], ecx
jl 0x1002cf65
mov dword [ebp - 0x48], 1
jmp 0x1002cf69
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0xffff
jb 0x1002cf7b
mov dword [ebp - 0x6c], 1
jmp 0x1002cf7f
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x6c]
add eax, 0x44421408
cmp eax, 4
jl 0x1002cf95
mov dword [ebp - 0x54], 1
jmp 0x1002cf99
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1002cfb7
mov eax, 0x5fa2ef70
test eax, eax
je 0x1002cfb7
mov dword [ebp - 0x64], 1
jmp 0x1002cfbb
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x64], eax
jne 0x1002cfcc
mov dword [ebp - 0x5c], 1
jmp 0x1002cfd0
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xa8], eax
jmp 0x1002ced6
mov dword [ebp - 0x18], 0
jmp 0x1002cfee
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x1002d004
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xc8], 0x6d0811fc
jmp 0x1002cfe7
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x28], 0x251d69f4
lea eax, [ebp - 0x28]
push eax
push 0
push 0x281b
call fcn.1002d507
add esp, 0xc
mov dword [ebp - 0x28], 0xffffffe6
jmp 0x1002d03a
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x18
jl 0x1002d070
mov dword [ebp - 0x80], 0xccb03629
push 0
push 0x6326
push 0x32b2
push 0x544b
push 0x4529
push 0x55a1
lea eax, [ebp - 0x80]
push eax
call fcn.1003510a
add esp, 0x1c
jmp 0x1002d033
cmp dword [ebp - 0x38], 0
jle 0x1002d3d6
push 4
push 0x1000
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xa4]
add ecx, dword [eax + 0xc]
push ecx
push 0x850c
push 0x91b6
call fcn.10028215
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
mov dword [ebp - 0x10], 0x17ca0029
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x44], 0xfffffffd
push 3
lea ecx, [ebp - 0x7c]
call fcn.10018b61
and dword [ebp - 4], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0xe8], 6
mov dword [ebp - 0xdc], 1
push 0
push 0x4b13
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.1002e86a
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0x6d73
lea eax, [ebp - 0x44]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.10028c61
add esp, 0x14
mov dword [ebp - 0x10], 2
jmp 0x1002d12c
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x1002d397
mov dword [ebp - 0xac], 0xf0adc109
mov dword [ebp - 0x60], 0xd978029
mov dword [ebp - 0x90], 0xe360abed
mov dword [ebp - 0xec], 0xce5f1497
push 3
lea ecx, [ebp - 0xbc]
call fcn.10018b61
mov byte [ebp - 4], 1
mov dword [ebp - 0xe0], 1
push 0x5a4a
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xbc]
push eax
push 0
push 0x520
call fcn.1003285b
add esp, 0x14
mov dword [ebp - 0x2c], 0
jmp 0x1002d1a5
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x1002d1bb
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0xa0], 0x9f7e48ff
jmp 0x1002d19e
mov dword [ebp - 0x24], 0
jmp 0x1002d1cb
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 2
jg 0x1002d209
mov dword [ebp - 0x9c], 1
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1002ec6d
add esp, 0x20
jmp 0x1002d1c4
push 1
lea ecx, [ebp - 0x7c]
call fcn.10018bff
cmp dword [eax], 0
jne 0x1002d22e
push dword [ebp - 0x10]
lea ecx, [ebp - 0x7c]
call fcn.10018bff
cmp dword [eax], 0
jne 0x1002d22e
and dword [ebp - 0x50], 0
jmp 0x1002d235
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x50]
jl 0x1002d246
mov dword [ebp - 0x58], 1
jmp 0x1002d24a
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0xbab
jl 0x1002d265
cmp dword [ebp - 0x90], 0
jne 0x1002d265
and dword [ebp - 0x8c], 0
jmp 0x1002d26f
mov dword [ebp - 0x8c], 1
push 2
lea ecx, [ebp - 0x7c]
call fcn.10018bff
push dword [ebp - 0x10]
lea ecx, [ebp - 0x7c]
call fcn.10018bff
mov eax, dword [eax]
add eax, 0x722d53d0
mov ecx, dword [ebp - 0x60]
add ecx, 0x1ec8e12b
cmp eax, ecx
jl 0x1002d2a1
mov dword [ebp - 0x40], 1
jmp 0x1002d2a5
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x40], eax
jl 0x1002d2ee
mov dword [ebp - 0x20], 0
jmp 0x1002d2bd
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jg 0x1002d2e9
mov byte [ebp - 0x19], 0
push 0x629e
push 0x455b
push 0
lea eax, [ebp - 0x19]
push eax
call fcn.10031de3
add esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x1002d2e7
jmp 0x1002d2b6
jmp 0x1002d2b6
jmp 0x1002d383
mov dword [ebp - 0x84], 0xffffffff
push 2
lea ecx, [ebp - 0xd4]
call fcn.10018b61
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], 0
jmp 0x1002d319
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
jge 0x1002d335
push dword [ebp - 0x34]
lea ecx, [ebp - 0xd4]
call fcn.10018bff
mov dword [eax], 0xdd7081dc
jmp 0x1002d312
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0xa0], 1
mov dword [ebp - 0x20], 1
mov esi, dword [ebp - 0x20]
push 1
lea ecx, [ebp - 0xd4]
call fcn.10018bff
mov dword [eax], esi
mov esi, dword [ebp - 0x84]
push 1
lea ecx, [ebp - 0xbc]
call fcn.10018bff
mov dword [eax], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd4]
call fcn.10018be3
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.10018be3
jmp 0x1002d125
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.10018be3
lea eax, [ebp - 0x70]
push eax
push 0x6881
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x2579
push 0x6c4d
call fcn.1003319e
add esp, 0x18
push dword [ebp - 0x38]
push 0
mov eax, dword [ebp - 0x3c]
push dword [eax]
call fcn.1002830f
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret