Function at 0x414c7c
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x414f75
push ebx
mov ecx, esi
call fcn.0041c9c9
cmp al, 0x3c
je 0x414cb1
mov ecx, esi
call fcn.0041d704
push eax
call fcn.00425ad3
pop ecx
jmp 0x414f77
cmp dword [0x47f54c], ebx
push 1
mov dword [ebp + 8], ebx
pop edi
jle 0x414ce9
push dword [ebp + 8]
mov ecx, 0x47f540
call fcn.0041f2e9
mov ebx, eax
push edi
push esi
mov ecx, ebx
call fcn.0041cb5c
test al, al
jne 0x414d17
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [0x47f54c]
jl 0x414cbf
push edi
push str._CPUSpeed_
mov ecx, esi
call fcn.0041cbe0
test al, al
je 0x414d32
mov eax, dword [0x47f748]
cmp eax, 0xffffffff
jne 0x414f77
call fcn.00406ca1
mov dword [0x47f748], eax
jmp 0x414f77
cmp dword [ebx + 0x10], 0xffffffff
je 0x414d2a
push dword [ebp + 8]
mov ecx, 0x47f028
call fcn.0041b498
mov eax, dword [ebx + 0x54]
jmp 0x414f77
push edi
push str._CPUType_
mov ecx, esi
call fcn.0041cbe0
test al, al
je 0x414d7f
mov eax, dword [0x47f74c]
cmp eax, 0xffffffff
jne 0x414f77
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004066e9
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add esp, 0x10
mov dword [0x47f74c], eax
mov dword [0x47f750], ecx
jmp 0x414f77
push edi
push str._CPUFlags_
mov ecx, esi
call fcn.0041cbe0
test al, al
je 0x414dcb
cmp dword [0x47f74c], 0xffffffff
jne 0x414dc1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004066e9
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [0x47f74c], eax
mov eax, dword [ebp - 4]
mov dword [0x47f750], eax
mov eax, dword [0x47f750]
jmp 0x414f77
push edi
push str._LanguageID_
mov ecx, esi
call fcn.0041cbe0
test al, al
je 0x414de6
mov eax, dword [0x47f67c]
jmp 0x414f77
push edi
push str._OSBuild_
mov ecx, esi
call fcn.0041cbe0
test al, al
je 0x414e06
mov eax, dword [0x47f258]
and eax, 0xffff
jmp 0x414f77
push edi
push str._CurXRes_
mov ecx, esi
call fcn.0041cbe0
test al, al
je 0x414e53
cmp dword [0x47f754], 0xffffffff
jne 0x414e49
push dword [0x47f1e8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 8
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
mov dword [0x47f754], eax
push dword [0x47f1e8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x47f754]
jmp 0x414f77
push edi
push str._CurYRes_
mov ecx, esi
call fcn.0041cbe0
test al, al
je 0x414ea0
cmp dword [0x47f758], 0xffffffff
jne 0x414e96
push dword [0x47f1e8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0xa
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
mov dword [0x47f758], eax
push dword [0x47f1e8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x47f758]
jmp 0x414f77
push edi
push str._CurBPP_
mov ecx, esi
call fcn.0041cbe0
test al, al
je 0x414eed
cmp dword [0x47f75c], 0xffffffff
jne 0x414ee3
push dword [0x47f1e8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0xc
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
mov dword [0x47f75c], eax
push dword [0x47f1e8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x47f75c]
jmp 0x414f77
push edi
push str._RAM_
mov ecx, esi
call fcn.0041cbe0
test al, al
je 0x414f3d
mov ecx, dword [0x47f760]
cmp ecx, 0xffffffff
jne 0x414f39
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 0x24]
push 2
shr ecx, 0x14
mov eax, ecx
pop esi
cdq
idiv esi
mov dword [0x47f760], ecx
test edx, edx
je 0x414f39
inc ecx
mov dword [0x47f760], ecx
mov eax, ecx
jmp 0x414f77
push edi
push str._DirectXVer_
mov ecx, esi
call fcn.0041cbe0
test al, al
je 0x414f75
mov ecx, dword [0x47f764]
cmp ecx, 0xffffffff
jne 0x414f66
call fcn.00420982
mov ecx, eax
mov dword [0x47f764], ecx
mov eax, ecx
movzx ecx, cx
shr eax, 0x10
shl ecx, 0x10
or eax, ecx
jmp 0x414f77
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret