Function at 0x4e8d44
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x29
push 0
push 0
dec ecx
jne 0x4e8d4c
push ebx
push esi
push edi
mov dword [ebp - 0x54], eax
xor eax, eax
push ebp
push 0x4e99da
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
mov edx, 0x4e99f8
call fcn.00405fb4
xor eax, eax
push ebp
push 0x4e8de8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
push eax
push 0x65
push 0
call sub.Netapi32.dll_NetServerGetInfo
test eax, eax
jne 0x4e8dde
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 8]
and eax, 0xf
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xbc], 0
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0
lea edx, [ebp - 0xc0]
mov ecx, 1
mov eax, 0x4e9a0c
call fcn.0040d79c
mov eax, dword [ebp - 0x6c]
push eax
call sub.Netapi32.dll_NetApiBufferFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e8df2
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x398]
lea eax, [ebp - 4]
mov ecx, 0x4e9a24
call fcn.0040631c
mov eax, dword [ebp - 4]
call fcn.0040cd44
test al, al
je 0x4e8e86
mov dl, 1
mov eax, dword [0x41f298]
call fcn.004247b4
mov ebx, eax
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x398]
lea eax, [ebp - 0xc4]
mov ecx, 0x4e9a24
call fcn.0040631c
mov edx, dword [ebp - 0xc4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x68]
lea edx, [ebp - 0x20]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, ebx
call fcn.0040428c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4e8e76
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4e8e76
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x20]
call fcn.004056d0
test eax, eax
je 0x4e8e7f
sub eax, 4
mov eax, dword [eax]
dec eax
jg 0x4e96ec
xor eax, eax
push ebp
push 0x4e8f06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x398]
lea eax, [ebp - 0xc8]
mov ecx, 0x4e9a68
call fcn.0040631c
mov ecx, dword [ebp - 0xc8]
mov dl, 1
mov eax, dword [0x42d1ac]
call fcn.0042d270
mov ebx, eax
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4e9a8c
mov edx, 0x4e9ab4
mov eax, ebx
mov esi, dword [eax]
call dword [esi]
lea eax, [ebp - 0x48]
push eax
xor ecx, ecx
mov edx, 0x4e9ad0
mov eax, dword [ebp - 0xc]
call fcn.0040a21c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x48]
call fcn.0040ba28
mov eax, ebx
call fcn.0040428c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e8f10
push 0
push 0
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x398]
xor ecx, ecx
mov edx, 0x4e9ae0
call fcn.004bb6f0
mov edx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0x54]
add eax, 0x3b4
call fcn.00405f60
push 2
push 0
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x398]
xor ecx, ecx
mov edx, 0x4e9afc
call fcn.004bb6f0
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0x54]
add eax, 0x3b8
call fcn.00405f60
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x54]
call fcn.004e8cd0
mov eax, dword [ebp - 0x54]
call fcn.004eb150
mov edi, eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x54]
call fcn.004eb190
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x54]
call fcn.004eb558
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x394]
call fcn.004bcb04
lea eax, [ebp - 0x4c]
push eax
xor ecx, ecx
mov edx, 0x4e9ad0
mov eax, dword [ebp - 0x34]
call fcn.0040a21c
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x4c]
call fcn.00405fb4
push 0
push 0x3e8
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x39c]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00407170
mov esi, eax
lea edx, [ebp - 0x2c]
mov eax, 0x4e9b1c
call fcn.004bcb04
mov edx, dword [ebp - 0x2c]
mov eax, 0x4e9ad0
call fcn.004068b4
mov ebx, eax
cmp ebx, 1
jle 0x4e9050
lea eax, [ebp - 0xd8]
mov edx, dword [ebp - 0x2c]
call fcn.004061c4
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd4]
mov edx, ebx
dec edx
call fcn.0040a33c
mov edx, dword [ebp - 0xd4]
lea eax, [ebp - 0x2c]
call fcn.004061b0
jmp 0x4e905d
lea eax, [ebp - 0x2c]
mov edx, 0x4e9b40
call fcn.00405fb4
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x398]
lea eax, [ebp - 0xdc]
mov ecx, 0x4e9b50
call fcn.0040631c
mov eax, dword [ebp - 0xdc]
lea edx, [ebp - 0x38]
call fcn.004bcb04
lea eax, [ebp - 0x50]
push eax
xor ecx, ecx
mov edx, 0x4e9ad0
mov eax, dword [ebp - 0x38]
call fcn.0040a21c
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x50]
call fcn.00405fb4
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x3a4]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x398]
mov ecx, dword [ebp - 0x34]
call fcn.004bc7ec
mov dword [ebp - 0xb0], 0x40
lea eax, [ebp - 0xb0]
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
push 0
push 0xf4240
mov eax, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xa4]
call fcn.00407204
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
push 0
push 0xf4240
mov eax, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x9c]
call fcn.00407204
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
call fcn.004e1540
lea ecx, [ebp - 0xe0]
mov eax, dword [ebp - 0x54]
lea edx, [eax + 0x3ac]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x398]
call fcn.004bd4a8
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0x54]
add eax, 0x3a8
call fcn.00405f60
lea edx, [ebp - 0xe4]
mov al, 1
call fcn.004bcc9c
mov eax, dword [ebp - 0xe4]
lea edx, [ebp - 0x14]
call fcn.0040ba28
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x394]
call fcn.0040d078
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4e9190
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4e9190
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x18]
call fcn.004056d0
mov ebx, eax
test ebx, ebx
je 0x4e919b
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0xf4]
mov edx, dword [ebp - 0x18]
call fcn.004061c4
mov eax, dword [ebp - 0xf4]
lea ecx, [ebp - 0xf0]
mov edx, ebx
sub edx, 4
call fcn.0040a33c
mov edx, dword [ebp - 0xf0]
lea eax, [ebp - 0xec]
call fcn.004061b0
mov eax, dword [ebp - 0xec]
lea edx, [ebp - 0xe8]
call fcn.0040ba28
mov edx, dword [ebp - 0xe8]
lea eax, [ebp - 0x18]
call fcn.00405fb4
push 0x4e9b80
lea edx, [ebp - 0xf8]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x38c]
call fcn.0040c63c
push dword [ebp - 0xf8]
mov eax, dword [ebp - 0x54]
push dword [eax + 0x3a4]
mov eax, dword [ebp - 0x54]
push dword [eax + 0x3a8]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004063ec
mov dl, 1
mov eax, dword [0x4d3958]
call fcn.004d39f8
mov ebx, eax
lea ecx, [ebp - 0x100]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.004d36f0
mov eax, dword [ebp - 0x100]
lea edx, [ebp - 0xfc]
call fcn.0040ba28
mov edx, dword [ebp - 0xfc]
lea eax, [ebp - 0x1c]
call fcn.00405fb4
mov eax, ebx
call fcn.0040428c
mov eax, dword [ebp - 0x54]
push dword [eax + 0x390]
push 0x4e9b98
push dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9bb0
lea edx, [ebp - 0x104]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x38c]
call fcn.0040c63c
push dword [ebp - 0x104]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9bcc
mov eax, dword [ebp - 0x54]
push dword [eax + 0x3a4]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9be4
mov eax, dword [ebp - 0x54]
push dword [eax + 0x3a8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9bfc
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9c14
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.0040c63c
push dword [ebp - 0x108]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9c2c
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3a0]
call fcn.0040c63c
push dword [ebp - 0x10c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9c44
push dword [ebp - 0x44]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9c5c
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
lea eax, [ebp - 0x110]
call fcn.0040c848
push dword [ebp - 0x110]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9c74
push dword [ebp - 0x64]
push dword [ebp - 0x68]
lea eax, [ebp - 0x114]
call fcn.0040c848
push dword [ebp - 0x114]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9c8c
lea edx, [ebp - 0x118]
mov eax, edi
call fcn.0040c63c
push dword [ebp - 0x118]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9ca4
push dword [ebp - 0x28]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9cbc
push dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9cd4
mov eax, dword [0x4f61f0]
push dword [eax]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9cec
mov eax, dword [0x4f60b0]
push dword [eax]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9d04
push dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9d1c
push dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9d34
mov eax, dword [0x4f6908]
mov eax, dword [eax]
call fcn.00473568
lea edx, [ebp - 0x11c]
call fcn.0040c63c
push dword [ebp - 0x11c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9d4c
mov eax, dword [0x4f6908]
mov eax, dword [eax]
call fcn.0047355c
lea edx, [ebp - 0x120]
call fcn.0040c63c
push dword [ebp - 0x120]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9d64
mov eax, dword [ebp - 0x54]
push dword [eax + 0x3b4]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9d80
mov eax, dword [ebp - 0x54]
push dword [eax + 0x3b8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9d9c
push dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9dc0
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 0x18]
call fcn.0040ba28
push dword [ebp - 0x124]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9de0
push dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9dfc
push dword [ebp - 0x40]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9e14
push dword [ebp - 0x3c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9e2c
push dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
push dword [ebp - 8]
push 0x4e9e44
mov eax, dword [ebp - 0x54]
push dword [eax + 0x3ac]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004063ec
mov eax, 0x4e9e64
call fcn.0040cd44
test al, al
je 0x4e9613
lea eax, [ebp - 8]
mov edx, 0x4e9e8c
call fcn.0040629c
lea eax, [ebp - 0x128]
mov edx, dword [ebp - 8]
call fcn.004061c4
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x37c]
call fcn.00480a90
mov eax, dword [0x4f6634]
mov eax, dword [eax]
call fcn.00476158
mov ebx, 1
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x37c]
mov edx, 0xd4
call fcn.0047c2a8
cmp ax, 1
sbb eax, eax
inc eax
test al, al
je 0x4e967d
push 0x64
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x4f6634]
mov eax, dword [eax]
call fcn.00476158
inc ebx
cmp ebx, 0x65
jne 0x4e9646
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x37c]
call fcn.0049df44
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x38c]
cmp eax, 1
je 0x4e969e
cmp eax, 2
jne 0x4e96af
mov eax, dword [0x4f6634]
mov eax, dword [eax]
call fcn.00476274
jmp 0x4e9934
xor eax, eax
push ebp
push 0x4e96d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x37c]
call fcn.0049e8c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e96ec
mov eax, dword [ebp - 0x54]
call fcn.004eb93c
test al, al
jne 0x4e9934
mov eax, dword [ebp - 0x54]
add eax, 0x3c0
mov edx, dword [ebp - 0x20]
call fcn.00405f60
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3c0]
mov ecx, 0x4e9eb4
mov edx, 0x4e9ec8
call fcn.004bd7a8
mov eax, dword [ebp - 0x12c]
mov edx, 0x4e9ef4
call fcn.00406594
jne 0x4e9828
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3c0]
mov ecx, 0x4e9eb4
mov edx, 0x4e9f08
call fcn.004bd7a8
mov eax, dword [ebp - 0x130]
mov edx, 0x4e9ef4
call fcn.00406594
jne 0x4e9828
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3c0]
mov ecx, 0x4e9f30
mov edx, 0x4e9f60
call fcn.004bd7a8
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x54]
add eax, 0x3c0
call fcn.00405f60
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x3c0]
mov eax, 0x4e9f94
call fcn.004068b4
dec eax
jne 0x4e9801
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 0x54]
mov edx, dword [edx + 0x3c0]
call fcn.004061c4
mov eax, dword [ebp - 0x13c]
mov ecx, 0xf4240
mov edx, 6
call fcn.0040a388
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x54]
add eax, 0x3c0
call fcn.004061b0
lea edx, [ebp - 0x140]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3c0]
call fcn.004be058
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x54]
add eax, 0x3c0
call fcn.00405f60
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3c0]
mov ecx, 0x4e9eb4
mov edx, 0x4e9fac
call fcn.004bd7a8
mov eax, dword [ebp - 0x10]
mov edx, 0x4e9ef4
call fcn.00406594
je 0x4e9864
mov eax, dword [0x4f6634]
mov eax, dword [eax]
call fcn.00476274
jmp 0x4e9934
lea eax, [ebp - 0x144]
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3c0]
mov ecx, 0x4e9eb4
mov edx, 0x4e9fe4
call fcn.004bd7a8
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x54]
add eax, 0x3b4
call fcn.00405f60
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x3c0]
mov ecx, 0x4e9eb4
mov edx, 0x4ea010
call fcn.004bd7a8
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x54]
add eax, 0x3b8
call fcn.00405f60
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x3b4]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x398]
mov edx, 0x4e9ae0
call fcn.004bc324
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x3b8]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x398]
mov edx, 0x4e9afc
call fcn.004bc324
mov ebx, 1
mov eax, dword [ebp - 0x54]
xor edx, edx
mov dword [eax + ebx*4 + 0x420], edx
inc ebx
cmp ebx, 0x65
jne 0x4e9905
mov eax, dword [ebp - 0x54]
mov dword [eax + 0x5b4], 1
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x380]
mov dl, 1
call fcn.00442798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e99e4
lea eax, [ebp - 0x148]
mov edx, 3
call fcn.00405f58
lea eax, [ebp - 0x13c]
mov edx, 2
call fcn.00405b18
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.00405f58
lea eax, [ebp - 0x128]
call fcn.00405b00
lea eax, [ebp - 0x124]
mov edx, 0xc
call fcn.00405f58
lea eax, [ebp - 0xf4]
mov edx, 2
call fcn.00405b18
lea eax, [ebp - 0xec]
mov edx, 5
call fcn.00405f58
lea eax, [ebp - 0xd8]
mov edx, 2
call fcn.00405b18
lea eax, [ebp - 0xd0]
mov edx, 4
call fcn.00405f58
lea eax, [ebp - 0x50]
mov edx, 0x14
call fcn.00405f58
ret