Function at 0x4165ae
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x416965
push ebx
mov ecx, esi
call fcn.0041f1a1
cmp al, 0x3c
je 0x4165e3
mov ecx, esi
call fcn.0041fee9
push eax
call fcn.00428da3
pop ecx
jmp 0x416967
cmp dword [0x48298c], ebx
push 1
mov dword [ebp + 8], ebx
pop edi
jle 0x41661d
push dword [ebp + 8]
mov ecx, 0x482980
call fcn.00421fe1
mov ebx, eax
push edi
push esi
mov ecx, ebx
call fcn.0041f334
test al, al
jne 0x41664b
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [0x48298c]
jl 0x4165f1
xor ebx, ebx
push edi
push str._CPUSpeed_
mov ecx, esi
call fcn.0041f3b8
test al, al
je 0x416666
mov eax, dword [0x482ba0]
cmp eax, 0xffffffff
jne 0x416967
call fcn.00406e91
mov dword [0x482ba0], eax
jmp 0x416967
cmp dword [ebx + 0x10], 0xffffffff
je 0x41665e
push dword [ebp + 8]
mov ecx, 0x482408
call fcn.0041d96c
mov eax, dword [ebx + 0x54]
jmp 0x416967
push edi
push str._CPUType_
mov ecx, esi
call fcn.0041f3b8
test al, al
je 0x4166b3
mov eax, dword [0x482ba4]
cmp eax, 0xffffffff
jne 0x416967
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 [0x482ba4], eax
mov dword [0x482ba8], ecx
jmp 0x416967
push edi
push str._CPUFlags_
mov ecx, esi
call fcn.0041f3b8
test al, al
je 0x4166ff
cmp dword [0x482ba4], 0xffffffff
jne 0x4166f5
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 [0x482ba4], eax
mov eax, dword [ebp - 4]
mov dword [0x482ba8], eax
mov eax, dword [0x482ba8]
jmp 0x416967
push edi
push str._LanguageID_
mov ecx, esi
call fcn.0041f3b8
test al, al
je 0x41671a
mov eax, dword [0x482ac0]
jmp 0x416967
push edi
push str._OSBuild_
mov ecx, esi
call fcn.0041f3b8
test al, al
je 0x41673a
mov eax, dword [0x482668]
and eax, 0xffff
jmp 0x416967
push edi
push str._CurXRes_
mov ecx, esi
call fcn.0041f3b8
test al, al
je 0x416787
cmp dword [0x482bac], 0xffffffff
jne 0x41677d
push dword [0x4825f8]
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 [0x482bac], eax
push dword [0x4825f8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x482bac]
jmp 0x416967
push edi
push str._CurYRes_
mov ecx, esi
call fcn.0041f3b8
test al, al
je 0x4167d4
cmp dword [0x482bb0], 0xffffffff
jne 0x4167ca
push dword [0x4825f8]
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 [0x482bb0], eax
push dword [0x4825f8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x482bb0]
jmp 0x416967
push edi
push str._CurBPP_
mov ecx, esi
call fcn.0041f3b8
test al, al
je 0x416821
cmp dword [0x482bb4], 0xffffffff
jne 0x416817
push dword [0x4825f8]
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 [0x482bb4], eax
push dword [0x4825f8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x482bb4]
jmp 0x416967
push edi
push str._RAM_
mov ecx, esi
call fcn.0041f3b8
test al, al
je 0x4168c2
mov ecx, dword [0x482bb8]
cmp ecx, 0xffffffff
jne 0x4168bb
push str.GlobalMemoryStatusEx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x416881
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x40
push ecx
call eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
push 0x14
pop ecx
call fcn.00428e40
mov ecx, eax
mov dword [0x482bb8], ecx
jmp 0x416887
mov ecx, dword [0x482bb8]
cmp ecx, ebx
jg 0x4168a8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 0x24]
shr ecx, 0x14
mov dword [0x482bb8], ecx
mov eax, ecx
push 2
cdq
pop esi
idiv esi
test edx, edx
je 0x4168bb
inc ecx
mov dword [0x482bb8], ecx
mov eax, ecx
jmp 0x416967
push edi
push str._DirectXVer_
mov ecx, esi
call fcn.0041f3b8
test al, al
je 0x4168fa
mov ecx, dword [0x482bbc]
cmp ecx, 0xffffffff
jne 0x4168eb
call fcn.00423aad
mov ecx, eax
mov dword [0x482bbc], ecx
mov eax, ecx
movzx ecx, cx
shr eax, 0x10
shl ecx, 0x10
or eax, ecx
jmp 0x416967
push edi
push str._.NETVersion_
mov ecx, esi
call fcn.0041f3b8
test al, al
je 0x416965
push ebx
push ebx
push ebx
call fcn.004233d7
add esp, 0xc
cmp eax, ebx
jl 0x416965
cmp eax, 2
jge 0x416927
add eax, 0x64
imul eax, eax, 0x64
jmp 0x416967
cmp eax, 3
jge 0x416933
mov eax, 0x4e20
jmp 0x416967
jne 0x41693c
mov eax, 0x7530
jmp 0x416967
cmp eax, 4
jne 0x416948
mov eax, 0x7724
jmp 0x416967
cmp eax, 5
jne 0x416954
mov eax, 0x772e
jmp 0x416967
cmp eax, 6
je 0x41695e
cmp eax, 7
jne 0x416967
mov eax, 0x9c40
jmp 0x416967
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret