Function at 0x1002e490
Capabilities:
Get memory capacity

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x10098070]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x10]
push esi
push edi
mov edi, dword [ebx + 0xc]
lea eax, [ecx + 0xa50]
mov dword [ebp - 0x270], eax
cmp ecx, eax
mov al, byte [ebp - 0x251]
mov dword [ebp - 0x274], edx
ja 0x1002e5f4
movaps xmm0, xmmword [ebp - 0x2b0]
mov dword [ebp - 0x258], eax
movaps xmmword [ebp - 0x2b0], xmm0
nop word [eax + eax]
cmp ecx, 0x3b22
ja 0x1002e662
je 0x1002e648
cmp ecx, 0x1c58
ja 0x1002e5a3
je 0x1002e58a
mov eax, ecx
sub eax, 0x1063
je 0x1002e575
sub eax, 0xb55
je 0x1002e553
sub eax, 0x50
jne 0x1002e7c7
mov eax, dword [edi]
mov eax, dword [eax]
mov dword [ebp - 0x260], eax
cmp dword [eax + 0x14], 0x10
jb 0x1002e54b
mov eax, dword [eax]
mov dword [edi + 0x48], eax
jmp 0x1002e7c7
cmp byte [edi + 0x13c], 0
je 0x1002e7c7
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100685c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edx
mov ecx, edi
call fcn.1002e7f0
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
mov dword [edi + 0x64], eax
jmp 0x1002e7c4
mov eax, dword [ebp - 0x260]
add eax, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x1002e59b
mov eax, dword [eax]
mov dword [edi + 0x4c], eax
jmp 0x1002e7c7
mov eax, ecx
sub eax, 0x1ca8
je 0x1002e5d7
sub eax, 0x1dda
je 0x1002e5c1
sub eax, 0x50
je 0x1002e639
jmp 0x1002e7c7
mov byte [ebp - 0x251], 1
mov dword [ebp - 0x250], 0x40
jmp 0x1002e7c7
mov esi, 0x3b33
nop dword [eax]
mov eax, esi
sub eax, 0x3b33
je 0x1002e607
sub eax, 9
jne 0x1002e62b
mov eax, dword [ebp - 0x258]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100685c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x5deb
push dword [edi + 0x54]
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x18]
push eax
call fcn.1002bb20
add esp, 0x10
mov dword [ebp - 0x258], eax
mov byte [edi + 0x13c], al
add esi, 9
cmp esi, 0x3b3c
jbe 0x1002e5e0
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x25c], 0
jmp 0x1002e7c7
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1002e560
jmp 0x1002e7c4
cmp ecx, 0x3c64
ja 0x1002e797
je 0x1002e784
mov eax, ecx
sub eax, 0x3b72
je 0x1002e716
sub eax, 0x50
je 0x1002e6a8
sub eax, 0x50
jne 0x1002e7c7
cmp dword [edi + 4], eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop edi
pop esi
call fcn.100685c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0
push eax
lea eax, [ebp - 0x298]
mov ecx, edi
push eax
call fcn.1005ed60
mov eax, dword [ebp - 0x298]
xor ecx, ecx
movaps xmm0, xmmword [ebp - 0x2b0]
cmp dword [ebp - 0x26c], ecx
movups xmmword [eax + 0x18], xmm0
movzx eax, byte [ebp - 0x251]
cmovne ecx, eax
mov byte [ebp - 0x251], cl
test cl, cl
je 0x1002e7c4
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x268]
push dword [ebp - 0x25c]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x1002e7c4
mov esi, dword [ebp - 0x248]
mov ecx, esi
sub ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x244]
mov eax, edx
sbb eax, dword [ebp - 0x23c]
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
push dword [ebp - 0x25c]
mov dword [ebp - 0x290], ecx
mov dword [ebp - 0x284], edx
mov dword [ebp - 0x288], esi
movaps xmm0, xmmword [ebp - 0x290]
mov dword [ebp - 0x268], 0
movaps xmmword [ebp - 0x2b0], xmm0
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
mov dword [ebp - 0x26c], eax
jmp 0x1002e7c4
push esi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0x334]
call fcn.100277b0
jmp 0x1002e7c4
mov eax, ecx
sub eax, 0x3cb4
je 0x1002e7bb
sub eax, 0x50
jne 0x1002e7c7
call fcn.1002cbd0
and dword [esi + 0x300], 0
xor eax, eax
inc eax
pop esi
pop ebp
ret 4
push dword [ebp + 8]
lea ecx, [esi + 0x218]
mov ecx, dword [ebx + 8]
add ecx, 0x50
mov dword [ebx + 8], ecx
cmp ecx, dword [ebp - 0x270]
ja 0x1002e5ee
mov edx, dword [ebp - 0x274]
jmp 0x1002e500