Function at 0x4160b5
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 0x4163e0
push ebx
mov ecx, esi
call fcn.0041e84d
cmp al, 0x3c
je 0x4160ea
mov ecx, esi
call fcn.0041f593
push eax
call fcn.00427fa3
pop ecx
jmp 0x4163e2
cmp dword [0x481624], ebx
push 1
mov dword [ebp + 8], ebx
pop edi
jle 0x416124
push dword [ebp + 8]
mov ecx, 0x481618
call fcn.0042168b
mov ebx, eax
push edi
push esi
mov ecx, ebx
call fcn.0041e9e0
test al, al
jne 0x416152
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [0x481624]
jl 0x4160f8
xor ebx, ebx
push edi
push str._CPUSpeed_
mov ecx, esi
call fcn.0041ea64
test al, al
je 0x41616d
mov eax, dword [0x481838]
cmp eax, 0xffffffff
jne 0x4163e2
call fcn.00406e4e
mov dword [0x481838], eax
jmp 0x4163e2
cmp dword [ebx + 0x10], 0xffffffff
je 0x416165
push dword [ebp + 8]
mov ecx, 0x4810c0
call fcn.0041d1d0
mov eax, dword [ebx + 0x54]
jmp 0x4163e2
push edi
push str._CPUType_
mov ecx, esi
call fcn.0041ea64
test al, al
je 0x4161ba
mov eax, dword [0x48183c]
cmp eax, 0xffffffff
jne 0x4163e2
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.00406896
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add esp, 0x10
mov dword [0x48183c], eax
mov dword [0x481840], ecx
jmp 0x4163e2
push edi
push str._CPUFlags_
mov ecx, esi
call fcn.0041ea64
test al, al
je 0x416206
cmp dword [0x48183c], 0xffffffff
jne 0x4161fc
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.00406896
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [0x48183c], eax
mov eax, dword [ebp - 4]
mov dword [0x481840], eax
mov eax, dword [0x481840]
jmp 0x4163e2
push edi
push str._LanguageID_
mov ecx, esi
call fcn.0041ea64
test al, al
je 0x416221
mov eax, dword [0x481758]
jmp 0x4163e2
push edi
push str._OSBuild_
mov ecx, esi
call fcn.0041ea64
test al, al
je 0x416241
mov eax, dword [0x481300]
and eax, 0xffff
jmp 0x4163e2
push edi
push str._CurXRes_
mov ecx, esi
call fcn.0041ea64
test al, al
je 0x41628e
cmp dword [0x481844], 0xffffffff
jne 0x416284
push dword [0x481290]
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 [0x481844], eax
push dword [0x481290]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x481844]
jmp 0x4163e2
push edi
push str._CurYRes_
mov ecx, esi
call fcn.0041ea64
test al, al
je 0x4162db
cmp dword [0x481848], 0xffffffff
jne 0x4162d1
push dword [0x481290]
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 [0x481848], eax
push dword [0x481290]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x481848]
jmp 0x4163e2
push edi
push str._CurBPP_
mov ecx, esi
call fcn.0041ea64
test al, al
je 0x416328
cmp dword [0x48184c], 0xffffffff
jne 0x41631e
push dword [0x481290]
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 [0x48184c], eax
push dword [0x481290]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x48184c]
jmp 0x4163e2
push edi
push str._RAM_
mov ecx, esi
call fcn.0041ea64
test al, al
je 0x416378
mov ecx, dword [0x481850]
cmp ecx, 0xffffffff
jne 0x416374
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 [0x481850], ecx
test edx, edx
je 0x416374
inc ecx
mov dword [0x481850], ecx
mov eax, ecx
jmp 0x4163e2
push edi
push str._DirectXVer_
mov ecx, esi
call fcn.0041ea64
test al, al
je 0x4163b0
mov ecx, dword [0x481854]
cmp ecx, 0xffffffff
jne 0x4163a1
call fcn.00422d80
mov ecx, eax
mov dword [0x481854], ecx
mov eax, ecx
movzx ecx, cx
shr eax, 0x10
shl ecx, 0x10
or eax, ecx
jmp 0x4163e2
push edi
push str._.NETVersion_
mov ecx, esi
call fcn.0041ea64
test al, al
je 0x4163e0
push ebx
call fcn.004229a6
cmp eax, ebx
pop ecx
jl 0x4163e0
cmp eax, 2
jge 0x4163d9
add eax, 0x64
imul eax, eax, 0x64
jmp 0x4163e2
mov eax, 0x4e20
jmp 0x4163e2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret