Function at 0x42b510
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xae
push 0
push 0
dec ecx
jne 0x42b518
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42bd11
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, 0x42bd28
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x4c8]
call fcn.004047b8
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x36
jbe 0x42b57e
call fcn.00405468
imul eax, eax, 2
jno 0x42b588
call fcn.00405470
mov eax, dword [ebp + eax*8 - 0x4c0]
mov edx, dword [ebp - 0x20]
cmp edx, 0x36
jbe 0x42b59c
call fcn.00405468
imul edx, edx, 2
jno 0x42b5a6
call fcn.00405470
mul dword [ebp + edx*8 - 0x4c4]
jae 0x42b5b4
call fcn.00405470
xor edx, edx
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
jno 0x42b5c3
call fcn.00405470
mov eax, dword [ebp - 0x20]
cmp eax, 0x36
jbe 0x42b5d0
call fcn.00405468
imul eax, eax, 2
jno 0x42b5da
call fcn.00405470
mov eax, dword [ebp + eax*8 - 0x4bc]
xor edx, edx
add dword [ebp - 0x18], eax
adc dword [ebp - 0x14], edx
jno 0x42b5f0
call fcn.00405470
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x37
jne 0x42b571
mov eax, dword [ebp - 0x154]
xor edx, edx
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
jno 0x42b612
call fcn.00405470
mov eax, dword [ebp - 0x148]
xor edx, edx
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
jno 0x42b627
call fcn.00405470
mov eax, dword [ebp - 0x150]
xor edx, edx
add dword [ebp - 0x18], eax
adc dword [ebp - 0x14], edx
jno 0x42b63c
call fcn.00405470
mov eax, dword [ebp - 0x144]
xor edx, edx
add dword [ebp - 0x18], eax
adc dword [ebp - 0x14], edx
jno 0x42b651
call fcn.00405470
push 0x42bd5c
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x4d0]
call fcn.004298c0
push dword [ebp - 0x4d0]
push 0x42bd88
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x4d4]
call fcn.004298c0
push dword [ebp - 0x4d4]
lea eax, [ebp - 0x4cc]
mov edx, 4
call fcn.004075b8
mov eax, dword [ebp - 0x4cc]
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov edx, 0x42bdb4
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x30], eax
mov eax, dword [0x43d29c]
mov eax, dword [eax]
cdq
push edx
push eax
lea eax, [ebp - 0x4dc]
call fcn.004298c0
mov ecx, dword [ebp - 0x4dc]
lea eax, [ebp - 0x4d8]
mov edx, 0x42bdd8
call fcn.00407530
mov eax, dword [ebp - 0x4d8]
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x19], 0
mov al, byte [ebp - 0x19]
lea edx, [ebp - 0xd4]
call fcn.00428c80
test al, al
je 0x42b7d5
xor eax, eax
mov al, byte [ebp - 0x19]
mov edx, dword [0x43d198]
push dword [edx + eax*4]
push 0x42bdfc
mov eax, dword [ebp - 0xd4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4e4]
call fcn.00429810
push dword [ebp - 0x4e4]
push 0x42be28
mov eax, dword [ebp - 0xd0]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4e8]
call fcn.00429810
push dword [ebp - 0x4e8]
push 0x42be54
mov eax, dword [ebp - 0xcc]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4ec]
call fcn.00429810
push dword [ebp - 0x4ec]
push 0x42be84
lea edx, [ebp - 0x4f0]
mov eax, dword [ebp - 0xc8]
call fcn.0041a40c
push dword [ebp - 0x4f0]
lea eax, [ebp - 0x4e0]
mov edx, 9
call fcn.004075b8
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x3c], eax
xor ecx, ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x40], eax
inc byte [ebp - 0x19]
cmp byte [ebp - 0x19], 3
jne 0x42b70c
xor ecx, ecx
mov edx, 0x42beac
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x118]
xor ecx, ecx
mov edx, 0x40
call fcn.00405114
mov dword [ebp - 0x118], 0x40
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
test eax, eax
je 0x42ba0c
mov eax, dword [ebp - 0x114]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4f8]
call fcn.0041a3c8
mov ecx, dword [ebp - 0x4f8]
lea eax, [ebp - 0x4f4]
mov edx, 0x42becc
call fcn.00407530
mov eax, dword [ebp - 0x4f4]
mov dword [ebp - 0x48], eax
xor ecx, ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
lea eax, [ebp - 0x500]
call fcn.00429810
mov ecx, dword [ebp - 0x500]
lea eax, [ebp - 0x4fc]
mov edx, 0x42bef4
call fcn.00407530
mov eax, dword [ebp - 0x4fc]
mov dword [ebp - 0x50], eax
xor ecx, ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x54], eax
push dword [ebp - 0x104]
push dword [ebp - 0x108]
lea eax, [ebp - 0x508]
call fcn.00429810
mov ecx, dword [ebp - 0x508]
lea eax, [ebp - 0x504]
mov edx, 0x42bf18
call fcn.00407530
mov eax, dword [ebp - 0x504]
mov dword [ebp - 0x58], eax
xor ecx, ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x5c], eax
push dword [ebp - 0xfc]
push dword [ebp - 0x100]
lea eax, [ebp - 0x510]
call fcn.00429810
mov ecx, dword [ebp - 0x510]
lea eax, [ebp - 0x50c]
mov edx, 0x42bf3c
call fcn.00407530
mov eax, dword [ebp - 0x50c]
mov dword [ebp - 0x60], eax
xor ecx, ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x64], eax
push dword [ebp - 0xf4]
push dword [ebp - 0xf8]
lea eax, [ebp - 0x518]
call fcn.00429810
mov ecx, dword [ebp - 0x518]
lea eax, [ebp - 0x514]
mov edx, 0x42bf68
call fcn.00407530
mov eax, dword [ebp - 0x514]
mov dword [ebp - 0x68], eax
xor ecx, ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x6c], eax
push dword [ebp - 0xec]
push dword [ebp - 0xf0]
lea eax, [ebp - 0x520]
call fcn.00429810
mov ecx, dword [ebp - 0x520]
lea eax, [ebp - 0x51c]
mov edx, 0x42bf94
call fcn.00407530
mov eax, dword [ebp - 0x51c]
mov dword [ebp - 0x70], eax
xor ecx, ecx
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x74], eax
push dword [ebp - 0xe4]
push dword [ebp - 0xe8]
lea eax, [ebp - 0x528]
call fcn.00429810
mov ecx, dword [ebp - 0x528]
lea eax, [ebp - 0x524]
mov edx, 0x42bfc0
call fcn.00407530
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x78], eax
xor ecx, ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x140]
xor ecx, ecx
mov edx, 0x28
call fcn.00405114
mov dword [ebp - 0x140], 0x28
push 0x28
lea eax, [ebp - 0x140]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.psapi.dll_GetProcessMemoryInfo
test eax, eax
je 0x42bcf3
mov eax, dword [ebp - 0x13c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x530]
call fcn.0041a3c8
mov ecx, dword [ebp - 0x530]
lea eax, [ebp - 0x52c]
mov edx, 0x42bfec
call fcn.00407530
mov eax, dword [ebp - 0x52c]
mov dword [ebp - 0x80], eax
xor ecx, ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x138]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x538]
call fcn.00429810
mov ecx, dword [ebp - 0x538]
lea eax, [ebp - 0x534]
mov edx, 0x42c01c
call fcn.00407530
mov eax, dword [ebp - 0x534]
mov dword [ebp - 0x88], eax
xor ecx, ecx
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x134]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x540]
call fcn.00429810
mov ecx, dword [ebp - 0x540]
lea eax, [ebp - 0x53c]
mov edx, 0x42c054
call fcn.00407530
mov eax, dword [ebp - 0x53c]
mov dword [ebp - 0x90], eax
xor ecx, ecx
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x130]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x548]
call fcn.00429810
mov ecx, dword [ebp - 0x548]
lea eax, [ebp - 0x544]
mov edx, 0x42c084
call fcn.00407530
mov eax, dword [ebp - 0x544]
mov dword [ebp - 0x98], eax
xor ecx, ecx
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x12c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x550]
call fcn.00429810
mov ecx, dword [ebp - 0x550]
lea eax, [ebp - 0x54c]
mov edx, 0x42c0c4
call fcn.00407530
mov eax, dword [ebp - 0x54c]
mov dword [ebp - 0xa0], eax
xor ecx, ecx
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x128]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x558]
call fcn.00429810
mov ecx, dword [ebp - 0x558]
lea eax, [ebp - 0x554]
mov edx, 0x42c0fc
call fcn.00407530
mov eax, dword [ebp - 0x554]
mov dword [ebp - 0xa8], eax
xor ecx, ecx
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x124]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x560]
call fcn.00429810
mov ecx, dword [ebp - 0x560]
lea eax, [ebp - 0x55c]
mov edx, 0x42c144
call fcn.00407530
mov eax, dword [ebp - 0x55c]
mov dword [ebp - 0xb0], eax
xor ecx, ecx
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x120]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x568]
call fcn.00429810
mov ecx, dword [ebp - 0x568]
lea eax, [ebp - 0x564]
mov edx, 0x42c184
call fcn.00407530
mov eax, dword [ebp - 0x564]
mov dword [ebp - 0xb8], eax
xor ecx, ecx
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x11c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x570]
call fcn.00429810
mov ecx, dword [ebp - 0x570]
lea eax, [ebp - 0x56c]
mov edx, 0x42c1b0
call fcn.00407530
mov eax, dword [ebp - 0x56c]
mov dword [ebp - 0xc0], eax
xor ecx, ecx
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 8]
call fcn.0042b010
mov dword [ebp - 0xc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42bd18
lea eax, [ebp - 0x570]
mov edx, 0x2a
call fcn.00406b9c
ret