Function at 0x4202a0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0xe70
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0xe6c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xe7c]
push esi
push edi
mov eax, ebp
call fcn.00495bc0
or eax, 0xffffffff
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
lea edi, [ebp + 0x10]
mov eax, edi
mov dword [ebp], vtable.ImageCache.0
call fcn.00424520
lea eax, [ebp + 0x80]
call fcn.00424520
lea esi, [ebp + 0xf0]
call fcn.00495ae0
lea esi, [ebp + 0xf8]
call fcn.00457a30
push 1
lea eax, [ebp + 0x140]
xor ebx, ebx
push eax
mov dword [esi], vtable.ytArray_struct_CachedFile__0__class_ytBaseThread_.0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
call fcn.00424e60
push 3
lea ecx, [ebp + 0x1b0]
push ecx
call fcn.00424e60
lea eax, [ebp + 0x220]
push 1
push eax
call fcn.00424e60
lea eax, [ebp + 0x294]
mov dword [ebp + 0x290], ebx
call fcn.00486d20
lea esi, [eax + 0x14]
call fcn.00457a30
lea esi, [ebp + 0x2f0]
mov dword [ebp + 0x2e8], ebx
mov dword [ebp + 0x2ec], ebx
call fcn.00457a30
mov dword [esi], vtable.ytArray_unsigned_long_int__0__class_ytBaseThread_.0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [ebp + 0x338], ebx
mov dword [ebp + 0x33c], 0x3f1
mov dword [ebp + 0x340], ebx
mov dword [ebp + 0x344], ebx
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
push ebx
push 0xffffffffffffffff
mov ecx, edi
call eax
mov edx, dword [ebp + 0x80]
mov eax, dword [edx + 0xc]
lea ecx, [ebp + 0x80]
push 1
push 0xfffffffffffffffe
call eax
mov eax, 0x320
mov dword [ebp + 0xc4], eax
mov dword [ebp + 0x54], eax
mov eax, str.ioqueue_slingshot.ioq
lea edi, [esp + 0x50]
call fcn.00407270
push 1
mov ecx, edi
call fcn.0046d7a0
add esp, 4
mov ecx, edi
call fcn.0045c3e0
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x4203ec
lea ebx, [eax + 4]
xor eax, eax
push ebx
lea edx, [eax + 2]
lea ebx, [ebp + 0x294]
call fcn.00486d90
push 0x40
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0060c930
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4204c6
cmp dword [esp + 0x24], 0
ja 0x42043e
cmp dword [esp + 0x20], 0x10000000
jbe 0x4204eb
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call ebx
lea esi, [ebp + 0x220]
mov edi, eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x42045f
cmp eax, edi
jne 0x42045f
add dword [esi + 0x1c], 1
jmp 0x420484
cmp byte [esi + 7], 0
je 0x420471
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x42047a
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], edi
call fcn.00425130
cmp dword [esi + 0x1c], 0
je 0x4204a2
cmp dword [esi + 0x18], 0
je 0x4204a2
call ebx
cmp dword [esi + 0x18], eax
jne 0x4204a2
add dword [esi + 0x1c], 0xffffffff
jmp 0x4204eb
cmp byte [esi + 7], 0
mov dword [esi + 0x18], 0
je 0x4204bb
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4204eb
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x4204eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x400
lea ecx, [esp + 0xa80]
push ecx
push 0
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea ecx, [esp + 0x50]
call fcn.00401770
mov ecx, dword [esp + 0xe7c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.00607d6d
add esp, 0xe70
ret 4