Function at 0x10904d20
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [sym.imp.Core.dll_int_GL2EnableMemDump]
mov esi, eax
cmp dword [ecx], 0
je 0x10904d5c
mov eax, dword [sym.imp.Core.dll_class_FMalloc__GMalloc]
cmp dword [eax], 0
je 0x10904d5c
mov ecx, dword [sym.imp.Core.dll_int_GL2SaveLog]
mov dword [ecx], 1
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea eax, [esp + 0x40]
mov dword [esp + pe_nt_image_headers32], 0x40
xor edi, edi
xor ebx, ebx
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
call dword [sym.imp.kernel32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x10904e0d
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
test edx, edx
jne 0x10904d93
test ecx, ecx
je 0x10904dc8
cmp dword [esp + 0x4c], ebx
ja 0x10904d9f
cmp dword [esp + 0x48], ebx
jbe 0x10904dc8
push 0
mov edi, ecx
mov eax, edx
push 0x64
shrd edi, eax, 0x14
push edx
shr eax, 0x14
push ecx
call fcn.109585e0
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push edx
push eax
call fcn.1095f410
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
test edx, edx
jne 0x10904dd8
test ecx, ecx
je 0x10904e0d
cmp dword [esp + 0x6c], ebx
ja 0x10904de4
cmp dword [esp + 0x68], ebx
jbe 0x10904e0d
push 0
mov ebx, ecx
mov eax, edx
push 0x64
shrd ebx, eax, 0x14
push edx
shr eax, 0x14
push ecx
call fcn.109585e0
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push edx
push eax
call fcn.1095f410
mov dword [esp + 0xc], eax
push 0x2c
lea eax, [esp + 0x18]
push 0
push eax
call fcn.1090cce0
add esp, 0xc
mov dword [esp + 0x14], 0x2c
lea eax, [esp + 0x14]
push 0x2c
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.psapi.dll_GetProcessMemoryInfo]
test eax, eax
je 0x10904ead
mov eax, dword [sym.imp.Core.dll_unsigned_long_int_GPrivateMemory]
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov eax, dword [sym.imp.Core.dll_int_GLanguageType]
cmp dword [eax], 0
mov eax, dword [sym.imp.Core.dll_class_TArray_int__UObject::GObjAvailable]
push dword [eax + 4]
mov eax, dword [sym.imp.Core.dll_class_TArray_class_UObject___UObject::GObjObjects]
push dword [eax + 4]
mov eax, dword [esp + 0x28]
push esi
push dword [esp + 0x18]
push ebx
push dword [esp + 0x24]
push edi
jne 0x10904e85
shr eax, 0xa
push eax
mov eax, dword [esp + 0x5c]
shr eax, 0xa
push eax
push 0x1096c0f0
jmp 0x10904e96
shr eax, 0xa
push eax
mov eax, dword [esp + 0x5c]
shr eax, 0xa
push eax
push 0x1096c2d8
mov eax, dword [sym.imp.Core.dll_class_FOutputDeviceError__GError]
push dword [eax]
call dword [sym.imp.Core.dll_public:_void___cdecl_FOutputDevice::Logf_wchar_t_const__]
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [sym.imp.Core.dll_int_GLanguageType]
cmp dword [eax], 0
mov eax, dword [sym.imp.Core.dll_class_TArray_int__UObject::GObjAvailable]
push dword [eax + 4]
mov eax, dword [sym.imp.Core.dll_class_TArray_class_UObject___UObject::GObjObjects]
push dword [eax + 4]
mov eax, dword [sym.imp.Core.dll_class_FOutputDeviceError__GError]
push esi
jne 0x10904ee4
push 0x1096c588
push dword [eax]
call dword [sym.imp.Core.dll_public:_void___cdecl_FOutputDevice::Logf_wchar_t_const__]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1096c6b0
push dword [eax]
call dword [sym.imp.Core.dll_public:_void___cdecl_FOutputDevice::Logf_wchar_t_const__]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret