Function at 0x413691
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 0x41398a
push ebx
mov ecx, esi
call fcn.00419e82
cmp al, 0x3c
je 0x4136c6
mov ecx, esi
call fcn.0041ab9e
push eax
call fcn.00422203
pop ecx
jmp 0x41398c
cmp dword [0x47a3c4], ebx
push 1
mov dword [ebp + 8], ebx
pop edi
jle 0x4136fe
push dword [ebp + 8]
mov ecx, 0x47a3b8
call fcn.0041c45e
mov ebx, eax
push edi
push esi
mov ecx, ebx
call fcn.0041a015
test al, al
jne 0x41372c
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [0x47a3c4]
jl 0x4136d4
push edi
push str._CPUSpeed_
mov ecx, esi
call fcn.0041a099
test al, al
je 0x413747
mov eax, dword [0x47a570]
cmp eax, 0xffffffff
jne 0x41398c
call fcn.00406cc0
mov dword [0x47a570], eax
jmp 0x41398c
cmp dword [ebx + 0x10], 0xffffffff
je 0x41373f
push dword [ebp + 8]
mov ecx, 0x479ee8
call fcn.00418bcc
mov eax, dword [ebx + 0x54]
jmp 0x41398c
push edi
push str._CPUType_
mov ecx, esi
call fcn.0041a099
test al, al
je 0x413794
mov eax, dword [0x47a574]
cmp eax, 0xffffffff
jne 0x41398c
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.00406708
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add esp, 0x10
mov dword [0x47a574], eax
mov dword [0x47a578], ecx
jmp 0x41398c
push edi
push str._CPUFlags_
mov ecx, esi
call fcn.0041a099
test al, al
je 0x4137e0
cmp dword [0x47a574], 0xffffffff
jne 0x4137d6
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.00406708
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [0x47a574], eax
mov eax, dword [ebp - 4]
mov dword [0x47a578], eax
mov eax, dword [0x47a578]
jmp 0x41398c
push edi
push str._LanguageID_
mov ecx, esi
call fcn.0041a099
test al, al
je 0x4137fb
mov eax, dword [0x47a4e0]
jmp 0x41398c
push edi
push str._OSBuild_
mov ecx, esi
call fcn.0041a099
test al, al
je 0x41381b
mov eax, dword [0x47a114]
and eax, 0xffff
jmp 0x41398c
push edi
push str._CurXRes_
mov ecx, esi
call fcn.0041a099
test al, al
je 0x413868
cmp dword [0x47a57c], 0xffffffff
jne 0x41385e
push dword [0x47a0a0]
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 [0x47a57c], eax
push dword [0x47a0a0]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x47a57c]
jmp 0x41398c
push edi
push str._CurYRes_
mov ecx, esi
call fcn.0041a099
test al, al
je 0x4138b5
cmp dword [0x47a580], 0xffffffff
jne 0x4138ab
push dword [0x47a0a0]
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 [0x47a580], eax
push dword [0x47a0a0]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x47a580]
jmp 0x41398c
push edi
push str._CurBPP_
mov ecx, esi
call fcn.0041a099
test al, al
je 0x413902
cmp dword [0x47a584], 0xffffffff
jne 0x4138f8
push dword [0x47a0a0]
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 [0x47a584], eax
push dword [0x47a0a0]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x47a584]
jmp 0x41398c
push edi
push str._RAM_
mov ecx, esi
call fcn.0041a099
test al, al
je 0x413952
mov ecx, dword [0x47a588]
cmp ecx, 0xffffffff
jne 0x41394e
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 [0x47a588], ecx
test edx, edx
je 0x41394e
inc ecx
mov dword [0x47a588], ecx
mov eax, ecx
jmp 0x41398c
push edi
push str._DirectXVer_
mov ecx, esi
call fcn.0041a099
test al, al
je 0x41398a
mov ecx, dword [0x47a58c]
cmp ecx, 0xffffffff
jne 0x41397b
call fcn.0041d87b
mov ecx, eax
mov dword [0x47a58c], ecx
mov eax, ecx
movzx ecx, cx
shr eax, 0x10
shl ecx, 0x10
or eax, ecx
jmp 0x41398c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4