Function at 0x416530
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 0x4168ca
push ebx
mov ecx, esi
call fcn.0041f608
cmp al, 0x3c
je 0x416565
mov ecx, esi
call fcn.0041fa6a
push eax
call fcn.00428713
pop ecx
jmp 0x4168cc
cmp dword [0x482884], ebx
push 1
mov dword [ebp + 8], ebx
pop edi
jle 0x41659f
push dword [ebp + 8]
mov ecx, 0x482878
call fcn.00421b62
mov ebx, eax
push edi
push esi
mov ecx, ebx
call fcn.0041eea2
test al, al
jne 0x4165cd
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [0x482884]
jl 0x416573
xor ebx, ebx
push edi
push str._CPUSpeed_
mov ecx, esi
call fcn.0041ef26
test al, al
je 0x4165e8
mov eax, dword [0x482a98]
cmp eax, 0xffffffff
jne 0x4168cc
call fcn.00406e91
mov dword [0x482a98], eax
jmp 0x4168cc
cmp dword [ebx + 0x10], 0xffffffff
je 0x4165e0
push dword [ebp + 8]
mov ecx, 0x482320
call fcn.0041d6e0
mov eax, dword [ebx + 0x54]
jmp 0x4168cc
push edi
push str._CPUType_
mov ecx, esi
call fcn.0041ef26
test al, al
je 0x416635
mov eax, dword [0x482a9c]
cmp eax, 0xffffffff
jne 0x4168cc
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 [0x482a9c], eax
mov dword [0x482aa0], ecx
jmp 0x4168cc
push edi
push str._CPUFlags_
mov ecx, esi
call fcn.0041ef26
test al, al
je 0x416681
cmp dword [0x482a9c], 0xffffffff
jne 0x416677
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 [0x482a9c], eax
mov eax, dword [ebp - 4]
mov dword [0x482aa0], eax
mov eax, dword [0x482aa0]
jmp 0x4168cc
push edi
push str._LanguageID_
mov ecx, esi
call fcn.0041ef26
test al, al
je 0x41669c
mov eax, dword [0x4829b8]
jmp 0x4168cc
push edi
push str._OSBuild_
mov ecx, esi
call fcn.0041ef26
test al, al
je 0x4166bc
mov eax, dword [0x482560]
and eax, 0xffff
jmp 0x4168cc
push edi
push str._CurXRes_
mov ecx, esi
call fcn.0041ef26
test al, al
je 0x416709
cmp dword [0x482aa4], 0xffffffff
jne 0x4166ff
push dword [0x4824f0]
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 [0x482aa4], eax
push dword [0x4824f0]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x482aa4]
jmp 0x4168cc
push edi
push str._CurYRes_
mov ecx, esi
call fcn.0041ef26
test al, al
je 0x416756
cmp dword [0x482aa8], 0xffffffff
jne 0x41674c
push dword [0x4824f0]
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 [0x482aa8], eax
push dword [0x4824f0]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x482aa8]
jmp 0x4168cc
push edi
push str._CurBPP_
mov ecx, esi
call fcn.0041ef26
test al, al
je 0x4167a3
cmp dword [0x482aac], 0xffffffff
jne 0x416799
push dword [0x4824f0]
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 [0x482aac], eax
push dword [0x4824f0]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x482aac]
jmp 0x4168cc
push edi
push str._RAM_
mov ecx, esi
call fcn.0041ef26
test al, al
je 0x416844
mov ecx, dword [0x482ab0]
cmp ecx, 0xffffffff
jne 0x41683d
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 0x416803
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.00428920
mov ecx, eax
mov dword [0x482ab0], ecx
jmp 0x416809
mov ecx, dword [0x482ab0]
cmp ecx, ebx
jg 0x41682a
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 [0x482ab0], ecx
mov eax, ecx
push 2
cdq
pop esi
idiv esi
test edx, edx
je 0x41683d
inc ecx
mov dword [0x482ab0], ecx
mov eax, ecx
jmp 0x4168cc
push edi
push str._DirectXVer_
mov ecx, esi
call fcn.0041ef26
test al, al
je 0x41687c
mov ecx, dword [0x482ab4]
cmp ecx, 0xffffffff
jne 0x41686d
call fcn.0042346f
mov ecx, eax
mov dword [0x482ab4], ecx
mov eax, ecx
movzx ecx, cx
shr eax, 0x10
shl ecx, 0x10
or eax, ecx
jmp 0x4168cc
push edi
push str._.NETVersion_
mov ecx, esi
call fcn.0041ef26
test al, al
je 0x4168ca
push ebx
push ebx
push ebx
call fcn.00422f58
add esp, 0xc
cmp eax, ebx
jl 0x4168ca
cmp eax, 2
jge 0x4168a9
add eax, 0x64
imul eax, eax, 0x64
jmp 0x4168cc
cmp eax, 3
jge 0x4168b5
mov eax, 0x4e20
jmp 0x4168cc
jne 0x4168be
mov eax, 0x7530
jmp 0x4168cc
cmp eax, 4
jne 0x4168cc
mov eax, 0x7724
jmp 0x4168cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret