Function at 0x519ca0
Capabilities:
Get memory capacity
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x7c6660]
sub esp, 0x198
cmp eax, 0xffffffff
jne 0x51a102
push ebx
push esi
push edi
mov byte [0xa28e9c], 0
mov byte [0xa28e1c], 0
mov byte [0xa28fa8], 0
mov byte [0xa28f28], 0
mov byte [0xa29028], 0
call fcn.004d1fe0
mov edi, eax
call fcn.005a8a00
mov esi, eax
lea eax, [edi + 1]
mov ebx, 5
cmp eax, 8
mov dword [esp + 0x14], ebx
ja case.0x519cf9.0
jmp dword [eax*4 + 0x51a10c]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
mov dword [esp + 0x14], ecx
jmp 0x519d53
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 2]
mov dword [esp + 0x14], ecx
jmp 0x519d53
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 3]
mov dword [esp + 0x14], ecx
jmp 0x519d53
mov dword [esp + 0x14], 1
push ebp
call fcn.004d2100
mov edx, dword [esp + 0x18]
push eax
push esi
push edx
push str.Profile:_CPU:_d___dMhz__s__n
call fcn.004068f0
add esp, 0x10
call fcn.004d2100
push eax
push esi
push str.CPU:__d_Mhz__s
push 0xa28e1c
call fcn.0076d684
add esp, 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ebp, 2
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], ebp
lea esi, [ecx + 0xa0000]
shr esi, 0x14
cmp esi, 0x40
jb 0x519db8
mov dword [esp + 0x10], ebx
cmp esi, 0x80
jb 0x519dc4
add dword [esp + 0x10], ebp
cmp esi, 0x100
mov edi, 0xa
jne 0x519dd7
add dword [esp + 0x10], ebp
jmp 0x519ddd
jbe 0x519ddd
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x10]
push esi
push edx
push str.Profile:_RAM:_d___dMb__n
call fcn.004068f0
push esi
push str.RAM_reported:__d_Mb
push 0xa28fa8
call fcn.0076d684
mov eax, dword [0x83a6dc]
add esp, 0x18
test eax, eax
mov esi, 4
mov dword [esp + 0x14], ebx
je 0x519e76
lea edx, [esp + 0x6c]
mov dword [esp + 0x6c], 0x13c
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x2c]
test eax, eax
jne 0x519e76
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
cmp eax, ecx
ja 0x519e3f
mov eax, ecx
lea esi, [eax + 0xfffff]
shr esi, 0x14
cmp esi, 0x20
jb 0x519e53
mov dword [esp + 0x14], edi
jmp 0x519e88
cmp esi, 0x10
jb 0x519e62
mov dword [esp + 0x14], 9
jmp 0x519e88
cmp esi, 8
jb 0x519e71
mov dword [esp + 0x14], 7
jmp 0x519e88
cmp esi, 4
jb 0x519e7c
mov dword [esp + 0x14], ebx
jmp 0x519e88
cmp esi, ebp
ja 0x519e88
mov dword [esp + 0x14], 3
mov eax, dword [esp + 0x14]
push esi
push eax
push str.Profile:_VRAM:_d___dMb__n
call fcn.004068f0
push esi
push str.VRAM_reported:__d_Mb
push 0xa28f28
call fcn.0076d684
mov ecx, dword [0x821c64]
add esp, 0x18
xor edi, edi
test ecx, ecx
je 0x51a081
mov al, byte [ecx + 0x19]
test al, al
je 0x51a081
mov edx, dword [0x821c78]
mov al, byte [edx + 0x19]
test al, al
jne 0x51a081
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push edx
call dword [eax + 0x78]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x821c78]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov eax, dword [ecx]
lea edx, [esp + 0x5c]
push edx
call dword [eax + 0x78]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 8]
cmp edx, eax
mov ecx, dword [ecx + 0xc]
jl 0x519f2f
mov edx, eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x28]
cmp eax, ecx
jl 0x519f3d
mov eax, ecx
mov dword [esp + 0x28], eax
cmp edx, 0x1e0
jl 0x519f4d
mov dword [esp + 0x24], 0x1e0
cmp eax, 0x190
jl 0x519f5c
mov dword [esp + 0x28], 0x190
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 4
mov ecx, dword [0x821c64]
push 1
lea eax, [esp + 0x20]
push 0
mov edx, dword [ecx]
push eax
mov eax, dword [0x821c78]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [edx + 8]
mov ecx, dword [0x821c78]
lea eax, [esp + 0x1c]
push 1
push 0
mov edx, dword [ecx]
push eax
mov eax, dword [0x821c64]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [edx + 8]
push 0
call ebp
dec esi
jne 0x519f67
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
call ebp
mov esi, eax
mov ecx, esi
and ecx, 0xff000000
cmp ecx, 0xff
je 0x51a081
mov ecx, dword [0x821c64]
push 1
lea eax, [esp + 0x20]
push 0
mov edx, dword [ecx]
push eax
mov eax, dword [0x821c78]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [edx + 8]
mov ecx, dword [0x821c78]
lea eax, [esp + 0x1c]
push 1
push 0
mov edx, dword [ecx]
push eax
mov eax, dword [0x821c64]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [edx + 8]
mov edi, 1
call ebp
sub eax, esi
cmp eax, 0x3e8
ja 0x51a06a
cmp edi, 0x1388
jg 0x51a06a
mov ecx, dword [0x821c64]
push 1
lea eax, [esp + 0x20]
push 0
mov edx, dword [ecx]
push eax
mov eax, dword [0x821c78]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [edx + 8]
mov ecx, dword [0x821c78]
lea eax, [esp + 0x1c]
push 1
push 0
mov edx, dword [ecx]
push eax
mov eax, dword [0x821c64]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [edx + 8]
inc edi
call ebp
sub eax, esi
cmp eax, 0x3e8
jbe 0x51a018
mov eax, edi
mov ebx, 1
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp eax, 1
jl 0x51a081
mov ebx, eax
lea esi, [edi + edi]
push esi
push ebx
push str.Profile:_VRAM_speed:_d___d_blits_per_second__n
call fcn.004068f0
push esi
push str._d_blits_per_second_n
push 0xa29028
call fcn.0076d684
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
add esp, 0x18
cmp eax, ecx
mov dword [0x7c6660], eax
pop ebp
jl 0x51a0bc
mov eax, ecx
mov dword [0x7c6660], eax
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jl 0x51a0cb
mov eax, ecx
mov dword [0x7c6660], eax
cmp eax, ebx
jl 0x51a0d6
mov eax, ebx
mov dword [0x7c6660], eax
push eax
push str.Overall_performance_profile___d_n
call fcn.004068f0
mov ecx, dword [0x7c6660]
push ecx
push str.Profile:__d_n
push 0xa28e9c
call fcn.0076d684
mov eax, dword [0x7c6660]
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0x198
ret