Function at 0x458bb4
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x104
mov ecx, dword [esp + 0x114]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x10c]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x100], eax
movsx edx, byte [ecx + 0x489400]
mov byte [esp + 0xfc], dl
movsx edi, dl
movsx esi, word [edi*2 + 0x483480]
mov ecx, dword [esp + 0x110]
mov dword [ecx], esi
movsx edx, byte [esp + 0xfc]
lea esi, [eax + edx*4]
mov edi, dword [esi + 0xb4]
test edi, edi
mov dword [esp + 0x2c], edi
jne 0x458e17
lea ecx, [eax + edx*4]
cmp dword [ecx + 0x100], 0
je 0x458c44
mov dword [esp + 0xa8], eax
push dword [esp + 0xfc]
mov eax, dword [esp + 0xac]
call fcn.00459fbc
lea eax, [esp + 0x100]
call fcn.00458fec
xor al, 1
je 0x458e17
mov ecx, 8
xor eax, eax
lea edi, [esp + 0xc8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc8]
push ecx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xe0]
mov edx, 0xcccccccd
mul edx
shr edx, 4
cmp dword [esp + 0xe4], edx
jb 0x458d6e
mov edx, dword [esp + 0x100]
cmp dword [edx + 0xa0], 0
jne 0x458ccc
xor edi, edi
mov dword [esp + 0x1c], edi
mov esi, dword [edx + 0xf4]
mov dword [esp + 0x18], esi
fild qword [esp + 0x18]
fcomp dword [edx + 0xec]
fnstsw ax
sahf
jae 0x458d6e
jp 0x458d6e
mov edx, dword [esp + 0x100]
mov dword [esp + 0xac], edx
push 1
push 0
mov eax, dword [esp + 0xb4]
call fcn.00459458
test eax, eax
jne 0x458dd6
mov esi, dword [esp + 0x100]
mov dword [esp + 0xe8], esi
push 0
mov eax, dword [esp + 0xec]
call fcn.0045a114
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x88]
push ecx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xa0]
mov edx, 0xcccccccd
mul edx
shr edx, 4
cmp dword [esp + 0xa4], edx
jae 0x458d51
mov eax, dword [esp + 0x100]
call fcn.00458a0c
mov edx, dword [esp + 0x100]
mov dword [esp + 0x28], edx
push dword [esp + 0xfc]
mov eax, dword [esp + 0x2c]
call fcn.00459fbc
jmp 0x458dd6
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x68], ecx
push 0
mov eax, dword [esp + 0x6c]
call fcn.0045a114
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x48]
push edx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0x60]
mov edx, 0xcccccccd
mul edx
shr edx, 4
cmp dword [esp + 0x64], edx
jae 0x458dbb
mov eax, dword [esp + 0x100]
call fcn.00458a0c
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x34], ecx
push dword [esp + 0xfc]
mov eax, dword [esp + 0x38]
call fcn.00459fbc
lea eax, [esp + 0x100]
call fcn.00458fec
xor al, 1
je 0x458e17
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x30], ecx
push 1
push 0
mov eax, dword [esp + 0x38]
call fcn.00459458
test eax, eax
je 0x458e12
lea eax, [esp + 0x100]
call fcn.00458fec
xor al, 1
je 0x458e17
call fcn.00457e1c
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx]
movsx edx, byte [esp + 0xfc]
mov esi, dword [esp + 0x100]
lea edx, [esi + edx*4]
mov dword [edx + 0xb4], ecx
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi + 0x5c]
sub edx, dword [edi]
sar edx, cl
mov dword [esp + 0xf8], edx
mov edx, dword [edi + 0x14]
mov ecx, dword [esp + 0xf8]
btr dword [edx], ecx
test ebx, ebx
je 0x458f97
mov esi, ecx
mov ebp, 1
and ecx, 0x1f
shr esi, 5
shl ebp, cl
mov eax, dword [esp + 0xf8]
test ebx, 0x20
je 0x458ecc
cmp dword [edi + 0x28], 0
jne 0x458ec4
lea ecx, [edi + 0x24]
mov edx, dword [edi + 0x10]
mov dword [ecx + 4], edx
mov dword [esp + 4], 4
mov edx, dword [ecx + 4]
add edx, 0x1f
shr edx, 5
mov dword [esp + 0xf4], ecx
mov dword [esp], edx
call fcn.004688d4
mov ecx, dword [esp + 0xf4]
test eax, eax
mov dword [ecx], eax
je 0x458f82
mov ecx, dword [edi + 0x24]
mov edx, ebp
or dword [ecx + esi*4], edx
test ebx, 1
je 0x458f18
cmp dword [edi + 0x20], 0
jne 0x458f10
lea ecx, [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov dword [ecx + 4], edx
mov dword [esp + 4], 4
mov edx, dword [ecx + 4]
add edx, 0x1f
shr edx, 5
mov dword [esp + 0xec], ecx
mov dword [esp], edx
call fcn.004688d4
mov ecx, dword [esp + 0xec]
test eax, eax
mov dword [ecx], eax
je 0x458f82
mov ecx, dword [edi + 0x1c]
mov edx, ebp
or dword [ecx + esi*4], edx
test ebx, 2
je 0x458f28
mov ecx, dword [edi + 0x2c]
mov edx, ebp
or dword [ecx + esi*4], edx
test ebx, 8
je 0x458f38
mov ecx, dword [edi + 0x34]
mov edx, ebp
or dword [ecx + esi*4], edx
cmp byte [edi + 0x58], 0
je 0x458f97
test ebx, 0x10
je 0x458f97
cmp dword [edi + 0x40], 0
jne 0x458f8f
lea ecx, [edi + 0x3c]
mov edx, dword [edi + 0x10]
mov dword [ecx + 4], edx
mov dword [esp + 4], 4
mov edx, dword [ecx + 4]
add edx, 0x1f
shr edx, 5
mov dword [esp + 0xf0], ecx
mov dword [esp], edx
call fcn.004688d4
mov ecx, dword [esp + 0xf0]
test eax, eax
mov dword [ecx], eax
jne 0x458f8f
call fcn.004244f8
mov dword [esp], eax
call fcn.0041de30
mov ecx, dword [edi + 0x3c]
mov edx, ebp
or dword [ecx + esi*4], edx
cmp byte [0x49d398], 0
je 0x458fcc
test ebx, 2
mov edx, dword [esp + 0x110]
mov esi, dword [edx]
jne 0x458fcc
push dword [esp + 0x2c]
mov eax, edi
push dword [esp + 0x118]
push esi
push dword [esp + 0x114]
push ebx
call fcn.0045d400
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add esp, 0x104
ret 0x10