Function at 0x404910
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
mov dword [esp + 4], 0
mov ecx, dword [esi + 0x2a6e8]
test ecx, ecx
je 0x404bce
test dword [esi + 0x2a728], 0x10000
je 0x40495a
lea eax, [esi + 0x2a5d4]
push 0
push eax
push 0xffffff00
push 0
push 0x40000000
call fcn.004038e0
mov dword [esp + 4], 0x3f800000
mov eax, dword [esi + 0x2a728]
test ah, 0x80
je 0x40499f
fld dword [esp + 4]
fmul dword [0x5883d4]
lea ecx, [esi + 0x2a62e]
push 0
push ecx
push 0xffffff00
push ecx
mov ecx, dword [esi + 0x2a6e8]
fstp dword [esp]
push 0x40000000
call fcn.004038e0
fld dword [esp + 4]
fadd dword [0x588318]
fstp dword [esp + 4]
test dword [esi + 0x2a728], 0x20000
je 0x404a69
mov eax, dword [esi + 0x2c6d8]
push eax
shr eax, 0xa
push eax
push str.SystemMem:__8d_KB___d_byte_
push 0x5e008c
call fcn.005753d0
fld dword [esp + 0x14]
fmul dword [0x5883d4]
add esp, 0x10
push 0
push 0x5e008c
push 0xffffff00
push ecx
mov ecx, dword [esi + 0x2a6e8]
fstp dword [esp]
push 0x40000000
call fcn.004038e0
mov eax, dword [esi + 0x35060]
mov edx, dword [esi + 0x3505c]
mov ecx, dword [esi + 0x35058]
add eax, edx
fld dword [esp + 4]
fadd dword [0x588318]
add eax, ecx
push eax
shr eax, 0xa
fstp dword [esp + 8]
push eax
push str.VideoMem:__8d_KB___d_byte_
push 0x5e008c
call fcn.005753d0
fld dword [esp + 0x14]
fmul dword [0x5883d4]
add esp, 0x10
push 0
push 0x5e008c
push 0xffffff00
push ecx
mov ecx, dword [esi + 0x2a6e8]
fstp dword [esp]
push 0x41200000
call fcn.004038e0
fld dword [esp + 4]
fadd dword [0x588318]
fstp dword [esp + 4]
test dword [esi + 0x2a728], 0x40000
je 0x404b84
lea edx, [esp + 8]
mov dword [esp + 8], 0x20
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
shr eax, 0xa
shr ecx, 0xa
push eax
push ecx
push str.P_MEM:__10ld_KB____10ld_KB
push 0x5e008c
call fcn.005753d0
fld dword [esp + 0x14]
fmul dword [0x5883d4]
add esp, 0x10
push 0
push 0x5e008c
push 0xffffff00
push ecx
mov ecx, dword [esi + 0x2a6e8]
fstp dword [esp]
push 0x41200000
call fcn.004038e0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
fld dword [esp + 4]
fadd dword [0x588318]
shr edx, 0xa
shr eax, 0xa
push edx
push eax
fstp dword [esp + 0xc]
push str.P_FIL:__10ld_KB____10ld_KB
push 0x5e008c
call fcn.005753d0
fld dword [esp + 0x14]
fmul dword [0x5883d4]
add esp, 0x10
push 0
push 0x5e008c
push 0xffffff00
push ecx
mov ecx, dword [esi + 0x2a6e8]
fstp dword [esp]
push 0x41200000
call fcn.004038e0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
shr ecx, 0xa
shr edx, 0xa
push ecx
push edx
push str.V_MEM:__10ld_KB____10ld_KB
push 0x5e008c
call fcn.005753d0
fld dword [esp + 0x14]
fadd dword [0x588318]
add esp, 0x10
push 0
push 0x5e008c
fmul dword [0x5883d4]
push 0xffffff00
push ecx
mov ecx, dword [esi + 0x2a6e8]
fstp dword [esp]
push 0x41200000
call fcn.004038e0
mov eax, dword [esi + 0x2a728]
test ah, 0x80
je 0x404bce
fld dword [esi + 0x2a6e4]
sub esp, 8
fstp qword [esp]
push str.PT:__.02f
push 0x5e008c
call fcn.005753d0
mov ecx, dword [esi + 0x2a6e8]
add esp, 0x10
push 0
push 0x5e008c
push 0xffffff00
push 0x40000000
push 0x44110000
call fcn.004038e0
xor eax, eax
pop esi
add esp, 0x24
ret