Function at 0x421b0c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x728b86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xb0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
cmp dword [ebp + 8], 0
jne 0x421b3e
xor eax, eax
jmp 0x42220f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x218]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x21c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x230]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x44]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
mov esi, eax
sar esi, 5
shl esi, 2
imul esi, dword [ebp - 0x3c]
mov ecx, dword [ebp + 8]
call fcn.005e5e6f
and eax, 0xffff
lea eax, [esi + eax*4 + 0x2c]
mov dword [ebp - 0x14], eax
mov dword [0x79dee4], 0x87654321
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0x20
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov edx, dword [ebp - 0x2c]
shr edx, 4
cmp dword [ebp - 0x14], edx
jbe 0x421cfc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x79dee4], eax
mov dword [ebp - 0x14], 0x46c
mov eax, dword [ebp - 0x14]
push eax
push 0x42
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc_1]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x421cf4
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [eax], 0x28
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 4], 8
mov edx, dword [ebp - 0x4c]
mov dword [edx + 8], 8
mov eax, dword [ebp - 0x4c]
mov word [eax + 0xc], 1
mov ecx, dword [ebp - 0x4c]
mov word [ecx + 0xe], 8
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x214]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [eax + 0x18]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x214]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x4c]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x5c]
add eax, 0x28
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
call fcn.005e5e6f
and eax, 0xffff
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
jmp 0x421ca9
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
cmp edx, dword [ebp - 0x54]
jge 0x421cb3
jmp 0x421ca0
mov eax, dword [ebp - 0x5c]
add eax, 0x428
mov dword [ebp - 0x58], eax
push 0x40
push 0
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.006ed960
add esp, 0xc
mov edx, dword [ebp - 0x58]
add edx, 0x40
mov dword [ebp - 0x58], edx
push 4
push 0x79dee4
mov eax, dword [ebp - 0x58]
push eax
call fcn.006ede90
add esp, 0xc
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, dword [ebp - 0x40]
jmp 0x42220f
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x44]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
mov esi, eax
sar esi, 5
shl esi, 2
imul esi, dword [ebp - 0x3c]
mov ecx, dword [ebp + 8]
call fcn.005e5e6f
and eax, 0xffff
lea edx, [esi + eax*4 + 0x2c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
push 0x42
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc_1]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x42220c
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
mov dword [eax], 0x28
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x218]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x21c]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x64]
mov word [ecx + 0xc], 1
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x230]
mov word [edx + 0xe], cx
mov edx, dword [ebp - 0x64]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x44]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul eax, dword [ebp - 0x3c]
add eax, 4
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x214]
mov ecx, dword [ebp - 0x64]
mov edx, dword [eax + 0x18]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x214]
mov edx, dword [ebp - 0x64]
mov eax, dword [ecx + 0x18]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x64]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x88]
add eax, 0x28
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp + 8]
call fcn.005e5e6f
mov word [ebp - 0xac], ax
mov ecx, dword [ebp - 0xac]
and ecx, 0xffff
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 0
jmp 0x421e47
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x78]
jge 0x421e69
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x210]
mov eax, dword [ebp - 0x74]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x60]
mov dword [eax + edx*4], ecx
jmp 0x421e3e
mov ecx, dword [ebp + 8]
call fcn.005e5e6f
mov word [ebp - 0xb0], ax
mov ecx, dword [ebp - 0xb0]
and ecx, 0xffff
mov edx, dword [ebp - 0x88]
lea eax, [edx + ecx*4 + 0x28]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x44]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 8]
call fcn.005e5e00
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], 0
mov edx, dword [ebp - 0x38]
add edx, 4
push edx
call fcn.007090c9
add esp, 4
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
push edx
lea ecx, [ebp - 0x6c]
call fcn.0042fc60
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x74], 0
jmp 0x421f26
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x7c]
add ecx, dword [ebp - 0x70]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x74]
cmp eax, dword [edx + 0x21c]
jge 0x42208f
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x230]
cmp edx, 1
je 0x421f78
push 0xffffffffffffffff
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x218]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x21c]
sub ecx, dword [ebp - 0x74]
sub ecx, 1
push ecx
push 0
mov ecx, dword [ebp + 8]
call fcn.005e73de
jmp 0x42208a
mov edx, dword [ebp - 0x84]
push edx
push 0
mov eax, dword [ebp - 0x7c]
push eax
call fcn.006ed960
add esp, 0xc
push 1
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x218]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x21c]
sub edx, dword [ebp - 0x74]
sub edx, 1
push edx
push 0
mov ecx, dword [ebp + 8]
call fcn.005e73de
mov dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x8c], 0
jmp 0x421ff4
mov ecx, dword [ebp - 0x8c]
add ecx, 1
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x90]
add edx, 1
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebp - 0x38]
jge 0x42205c
cmp dword [ebp - 0x90], 8
jne 0x42202a
mov dword [ebp - 0x90], 0
mov ecx, dword [ebp - 0x94]
add ecx, 1
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
mov byte [edx], 0
mov eax, dword [ebp - 0x94]
mov cl, byte [eax]
shl cl, 1
mov edx, dword [ebp - 0x94]
mov byte [edx], cl
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x94]
mov dl, byte [ecx]
add dl, byte [eax]
mov eax, dword [ebp - 0x94]
mov byte [eax], dl
jmp 0x421fd6
jmp 0x42206d
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x90], 8
jge 0x42208a
mov edx, dword [ebp - 0x94]
mov al, byte [edx]
shl al, 1
mov ecx, dword [ebp - 0x94]
mov byte [ecx], al
jmp 0x42205e
jmp 0x421f14
mov ecx, dword [ebp + 8]
call fcn.005e5e6f
mov word [ebp - 0xc0], ax
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x44]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0xc0]
and edx, 0xffff
mov ecx, dword [ebp - 0x88]
lea edx, [ecx + edx*4 + 0x28]
add edx, eax
mov dword [ebp - 0x7c], edx
push 4
push 0x79dee4
mov eax, dword [ebp - 0x7c]
push eax
call fcn.006ede90
add esp, 0xc
mov ecx, dword [ebp - 0x7c]
add ecx, 4
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0049f6d0
jmp 0x422205
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret