Function at 0x415de4
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 0x41610b
push ebx
mov ecx, esi
call fcn.0041e3e5
cmp al, 0x3c
je 0x415e19
mov ecx, esi
call fcn.0041f120
push eax
call fcn.00427a53
pop ecx
jmp 0x41610d
cmp dword [0x4815d4], ebx
push 1
mov dword [ebp + 8], ebx
pop edi
jle 0x415e51
push dword [ebp + 8]
mov ecx, 0x4815c8
call fcn.004211d1
mov ebx, eax
push edi
push esi
mov ecx, ebx
call fcn.0041e578
test al, al
jne 0x415e7f
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [0x4815d4]
jl 0x415e27
push edi
push str._CPUSpeed_
mov ecx, esi
call fcn.0041e5fc
test al, al
je 0x415e9a
mov eax, dword [0x4817e0]
cmp eax, 0xffffffff
jne 0x41610d
call fcn.00406e27
mov dword [0x4817e0], eax
jmp 0x41610d
cmp dword [ebx + 0x10], 0xffffffff
je 0x415e92
push dword [ebp + 8]
mov ecx, 0x481080
call fcn.0041cd74
mov eax, dword [ebx + 0x54]
jmp 0x41610d
push edi
push str._CPUType_
mov ecx, esi
call fcn.0041e5fc
test al, al
je 0x415ee7
mov eax, dword [0x4817e4]
cmp eax, 0xffffffff
jne 0x41610d
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.0040686f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add esp, 0x10
mov dword [0x4817e4], eax
mov dword [0x4817e8], ecx
jmp 0x41610d
push edi
push str._CPUFlags_
mov ecx, esi
call fcn.0041e5fc
test al, al
je 0x415f33
cmp dword [0x4817e4], 0xffffffff
jne 0x415f29
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.0040686f
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [0x4817e4], eax
mov eax, dword [ebp - 4]
mov dword [0x4817e8], eax
mov eax, dword [0x4817e8]
jmp 0x41610d
push edi
push str._LanguageID_
mov ecx, esi
call fcn.0041e5fc
test al, al
je 0x415f4e
mov eax, dword [0x481708]
jmp 0x41610d
push edi
push str._OSBuild_
mov ecx, esi
call fcn.0041e5fc
test al, al
je 0x415f6e
mov eax, dword [0x4812b0]
and eax, 0xffff
jmp 0x41610d
push edi
push str._CurXRes_
mov ecx, esi
call fcn.0041e5fc
test al, al
je 0x415fbb
cmp dword [0x4817ec], 0xffffffff
jne 0x415fb1
push dword [0x481240]
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 [0x4817ec], eax
push dword [0x481240]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x4817ec]
jmp 0x41610d
push edi
push str._CurYRes_
mov ecx, esi
call fcn.0041e5fc
test al, al
je 0x416008
cmp dword [0x4817f0], 0xffffffff
jne 0x415ffe
push dword [0x481240]
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 [0x4817f0], eax
push dword [0x481240]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x4817f0]
jmp 0x41610d
push edi
push str._CurBPP_
mov ecx, esi
call fcn.0041e5fc
test al, al
je 0x416055
cmp dword [0x4817f4], 0xffffffff
jne 0x41604b
push dword [0x481240]
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 [0x4817f4], eax
push dword [0x481240]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x4817f4]
jmp 0x41610d
push edi
push str._RAM_
mov ecx, esi
call fcn.0041e5fc
test al, al
je 0x4160a5
mov ecx, dword [0x4817f8]
cmp ecx, 0xffffffff
jne 0x4160a1
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 [0x4817f8], ecx
test edx, edx
je 0x4160a1
inc ecx
mov dword [0x4817f8], ecx
mov eax, ecx
jmp 0x41610d
push edi
push str._DirectXVer_
mov ecx, esi
call fcn.0041e5fc
test al, al
je 0x4160dd
mov ecx, dword [0x4817fc]
cmp ecx, 0xffffffff
jne 0x4160ce
call fcn.0042287f
mov ecx, eax
mov dword [0x4817fc], ecx
mov eax, ecx
movzx ecx, cx
shr eax, 0x10
shl ecx, 0x10
or eax, ecx
jmp 0x41610d
push edi
push str._.NETVersion_
mov ecx, esi
call fcn.0041e5fc
test al, al
je 0x41610b
call fcn.004224ec
test eax, eax
jl 0x41610b
cmp eax, 2
jge 0x416104
add eax, 0x64
imul eax, eax, 0x64
jmp 0x41610d
mov eax, 0x4e20
jmp 0x41610d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret