Function at 0x41425e
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 0x414557
push ebx
mov ecx, esi
call fcn.0041bfe3
cmp al, 0x3c
je 0x414293
mov ecx, esi
call fcn.0041cd1e
push eax
call fcn.00424fc3
pop ecx
jmp 0x414559
cmp dword [0x47e4dc], ebx
push 1
mov dword [ebp + 8], ebx
pop edi
jle 0x4142cb
push dword [ebp + 8]
mov ecx, 0x47e4d0
call fcn.0041e860
mov ebx, eax
push edi
push esi
mov ecx, ebx
call fcn.0041c176
test al, al
jne 0x4142f9
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [0x47e4dc]
jl 0x4142a1
push edi
push str._CPUSpeed_
mov ecx, esi
call fcn.0041c1fa
test al, al
je 0x414314
mov eax, dword [0x47e6d8]
cmp eax, 0xffffffff
jne 0x414559
call fcn.00406c98
mov dword [0x47e6d8], eax
jmp 0x414559
cmp dword [ebx + 0x10], 0xffffffff
je 0x41430c
push dword [ebp + 8]
mov ecx, 0x47dfb8
call fcn.0041aacd
mov eax, dword [ebx + 0x54]
jmp 0x414559
push edi
push str._CPUType_
mov ecx, esi
call fcn.0041c1fa
test al, al
je 0x414361
mov eax, dword [0x47e6dc]
cmp eax, 0xffffffff
jne 0x414559
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.004066e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
add esp, 0x10
mov dword [0x47e6dc], eax
mov dword [0x47e6e0], ecx
jmp 0x414559
push edi
push str._CPUFlags_
mov ecx, esi
call fcn.0041c1fa
test al, al
je 0x4143ad
cmp dword [0x47e6dc], 0xffffffff
jne 0x4143a3
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.004066e0
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [0x47e6dc], eax
mov eax, dword [ebp - 4]
mov dword [0x47e6e0], eax
mov eax, dword [0x47e6e0]
jmp 0x414559
push edi
push str._LanguageID_
mov ecx, esi
call fcn.0041c1fa
test al, al
je 0x4143c8
mov eax, dword [0x47e60c]
jmp 0x414559
push edi
push str._OSBuild_
mov ecx, esi
call fcn.0041c1fa
test al, al
je 0x4143e8
mov eax, dword [0x47e1e8]
and eax, 0xffff
jmp 0x414559
push edi
push str._CurXRes_
mov ecx, esi
call fcn.0041c1fa
test al, al
je 0x414435
cmp dword [0x47e6e4], 0xffffffff
jne 0x41442b
push dword [0x47e178]
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 [0x47e6e4], eax
push dword [0x47e178]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x47e6e4]
jmp 0x414559
push edi
push str._CurYRes_
mov ecx, esi
call fcn.0041c1fa
test al, al
je 0x414482
cmp dword [0x47e6e8], 0xffffffff
jne 0x414478
push dword [0x47e178]
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 [0x47e6e8], eax
push dword [0x47e178]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x47e6e8]
jmp 0x414559
push edi
push str._CurBPP_
mov ecx, esi
call fcn.0041c1fa
test al, al
je 0x4144cf
cmp dword [0x47e6ec], 0xffffffff
jne 0x4144c5
push dword [0x47e178]
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 [0x47e6ec], eax
push dword [0x47e178]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x47e6ec]
jmp 0x414559
push edi
push str._RAM_
mov ecx, esi
call fcn.0041c1fa
test al, al
je 0x41451f
mov ecx, dword [0x47e6f0]
cmp ecx, 0xffffffff
jne 0x41451b
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 [0x47e6f0], ecx
test edx, edx
je 0x41451b
inc ecx
mov dword [0x47e6f0], ecx
mov eax, ecx
jmp 0x414559
push edi
push str._DirectXVer_
mov ecx, esi
call fcn.0041c1fa
test al, al
je 0x414557
mov ecx, dword [0x47e6f4]
cmp ecx, 0xffffffff
jne 0x414548
call fcn.0041fef9
mov ecx, eax
mov dword [0x47e6f4], ecx
mov eax, ecx
movzx ecx, cx
shr eax, 0x10
shl ecx, 0x10
or eax, ecx
jmp 0x414559
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret