Function at 0x4f40c0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x124
mov edx, dword [esp + 0x12c]
mov dword [esp], ecx
movsx ecx, dx
mov eax, 4
push ebx
push ebp
add ecx, eax
push esi
mov esi, dword [esp + 0x134]
shl ecx, 8
push edi
lea edi, [esp + 0x14]
lea ebp, [ecx + esi]
mov ecx, 0x40
mov esi, ebp
cmp edx, 0xd
rep movsd dword es:[edi], dword [esi]
ja case.default.0x4f4102
jmp dword [edx*4 + 0x4f4330]
xor esi, esi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
jmp case.default.0x4f4102
mov eax, 2
mov ebx, 1
mov word [esp + 0x14], ax
mov word [esp + 0x16], 7
mov word [esp + 0x18], 0x64
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebx
mov word [esp + 0x28], ax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jmp case.default.0x4f4102
mov ebx, 1
xor esi, esi
mov byte [esp + 0x14], 3
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
jmp case.default.0x4f4102
mov ebx, 1
mov word [esp + 0x14], 6
mov word [esp + 0x1e], bx
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], ebx
mov word [esp + 0x1c], bx
jmp case.default.0x4f4102
mov edi, str.Classic
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
lea edx, [esp + 0x24]
mov eax, ecx
mov esi, edi
mov edi, edx
mov word [esp + 0x14], 1
shr ecx, 2
mov word [esp + 0x1c], 0x1e
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x4f4102
mov ebx, 1
mov byte [esp + 0x15], 0
mov byte [esp + 0x14], bl
mov byte [esp + 0x17], bl
mov byte [esp + 0x16], bl
jmp case.default.0x4f4102
xor esi, esi
mov dword [esp + 0x18], 1
mov word [esp + 0x14], si
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
jmp case.default.0x4f4102
mov word [esp + 0x14], ax
jmp case.default.0x4f4102
mov word [esp + 0x14], ax
mov dword [esp + 0x18], 1
jmp case.default.0x4f4102
mov word [esp + 0x14], 2
jmp case.default.0x4f4102
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 1
mov byte [esp + 0x16], al
jmp case.default.0x4f4102
mov ebx, 1
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], bl
jmp case.default.0x4f4102
mov ebx, 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jmp case.default.0x4f4102
lea ecx, [esp + 0x114]
mov ebx, 1
xor esi, esi
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x11c]
and edx, 0xfff00000
cmp edx, 0x1e00000
jbe 0x4f42de
mov eax, dword [0x5a32d4]
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jne 0x4f42e2
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x13c]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004f4370
mov ecx, 0x40
xor eax, eax
mov edi, ebp
lea esi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, 0x40
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 8