Function at 0x1005c8b8
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1005cb64
mov dword [ebp - 0x34], 0x7fff
mov dword [ebp - 0x4c], 0x1000e0bc
cmp dword [ebp - 0x34], 0x8135
jle 0x1005c957
and dword [ebp - 0x24], 0
jmp 0x1005c8f1
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x37c8
jge 0x1005c957
and dword [ebp - 0x30], 0
jmp 0x1005c907
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x6de2
jge 0x1005c955
mov eax, dword [ebp - 0x24]
or eax, dword [ebp - 0x30]
cdq
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
push dword [ebp - 0x80]
push dword [ebp - 0x84]
lea ecx, [ebp - 0xcc]
call fcn.1001072e
pop ecx
pop ecx
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
call fcn.1001d53e
push eax
call fcn.10067b63
pop ecx
lea ecx, [ebp - 0xcc]
call fcn.1001d534
jmp 0x1005c900
jmp 0x1005c8ea
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x34], 0x7fda
jge 0x1005c972
push dword [ebp - 0x4c]
call fcn.10067b63
pop ecx
lea eax, [ebp + 0xc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
movzx eax, byte [eax]
test eax, eax
je 0x1005ca84
mov dword [ebp - 0x3c], 0x6227
mov dword [ebp - 0x54], 0x1000e0d8
cmp dword [ebp - 0x3c], 0x6570
jle 0x1005ca3c
and dword [ebp - 0x28], 0
jmp 0x1005c9b4
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3f54
jge 0x1005ca3c
and dword [ebp - 0x14], 0
jmp 0x1005c9ca
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6e53
jge 0x1005ca37
and dword [ebp - 0x2c], 0
jmp 0x1005c9e0
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x383e
jge 0x1005ca35
and dword [ebp - 0x1c], 0
jmp 0x1005c9f6
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3475
jge 0x1005ca33
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
sar eax, cl
or eax, dword [ebp - 0x28]
cdq
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
mov ecx, 0x10082bb8
call fcn.1001d55e
jmp 0x1005c9ef
jmp 0x1005c9d9
jmp 0x1005c9c3
jmp 0x1005c9ad
mov byte [ebp - 1], 0
push 0x1712
push 1
lea eax, [ebp - 1]
push eax
push 0x4f28
push 0x39da
push 1
push 0x1cf
push 0x7909
call fcn.1005a48d
add esp, 0x20
cmp dword [ebp - 0x3c], 0x5ffa
jge 0x1005ca7f
mov edx, dword [ebp - 0x54]
mov ecx, 0x10082bb8
call fcn.100202a3
jmp 0x1005cb5f
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
movzx eax, byte [eax]
test eax, eax
je 0x1005caab
push 0
call dword [sym.imp.GDI32.dll_CreateHalftonePalette]
mov dword [ebp - 0x38], 0x4396
mov dword [ebp - 0x94], 0x1000e100
cmp dword [ebp - 0x38], 0x4544
jle 0x1005cb4a
and dword [ebp - 8], 0
jmp 0x1005cad6
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x4b2
jge 0x1005cb42
and dword [ebp - 0xc], 0
jmp 0x1005caec
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x352a
jge 0x1005cb40
mov eax, dword [ebp - 8]
and eax, dword [ebp - 0xc]
cdq
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], edx
push dword [ebp - 0x98]
push dword [ebp - 0x9c]
lea ecx, [ebp - 0xe4]
call fcn.1001072e
pop ecx
pop ecx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
call fcn.1001d53e
push eax
call fcn.10067b63
pop ecx
lea ecx, [ebp - 0xe4]
call fcn.1001d534
jmp 0x1005cae5
jmp 0x1005cacf
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
cmp dword [ebp - 0x38], 0x4156
jge 0x1005cb5f
push dword [ebp - 0x94]
call fcn.10067b63
pop ecx
jmp 0x1005cca6
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xb4], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
test eax, eax
je 0x1005cc7f
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x40], 0x6d93
mov dword [ebp - 0x48], 0x1000e14c
cmp dword [ebp - 0x40], 0x6e2a
jle 0x1005cc52
and dword [ebp - 0x20], 0
jmp 0x1005cbc1
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x6b7
jge 0x1005cc52
and dword [ebp - 0x10], 0
jmp 0x1005cbdb
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x4914
jge 0x1005cc4d
and dword [ebp - 0x18], 0
jmp 0x1005cbf1
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4a3f
jge 0x1005cc4b
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x18]
or edx, dword [ebp - 0x20]
mov eax, edx
cdq
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edx
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xfc]
call fcn.1001072e
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
call fcn.1001d53e
push eax
call fcn.10067b63
pop ecx
lea ecx, [ebp - 0xfc]
call fcn.1001d534
jmp 0x1005cbea
jmp 0x1005cbd4
jmp 0x1005cbba
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax]
test eax, eax
je 0x1005cc6b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x40], 0x69e4
jge 0x1005cc7d
push dword [ebp - 0x48]
call fcn.10067b63
pop ecx
jmp 0x1005cca6
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret