Function at 0x4520f0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ecx + 0x7c]
push esi
push edi
mov dword [ebp - 0x54], ebx
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x50], esi
test esi, esi
je 0x45241a
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.004928b0
add esp, 0xc
mov dword [ebp - 0x48], 0x40
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x45214a
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
jmp 0x452160
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x452186
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
test esi, esi
jne 0x45216c
cmp edx, 0x6000000
jbe 0x452183
test ecx, ecx
jne 0x452177
cmp eax, 0x4000000
jbe 0x452183
add dword [ebx + 0x14], 0x1000000
jmp 0x45241a
mov esi, dword [ebp - 0x50]
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
push 0x509240
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047a324
mov ecx, eax
add esp, 8
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x4521c5
lea eax, [ecx + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
ret 8
xor edi, edi
cmp dword [ebx], edi
je 0x4521f8
xor ecx, ecx
cmp dword [ebx + 0xc], ecx
jbe 0x45240f
xor edx, edx
mov eax, dword [ebx]
add eax, edx
cmp dword [eax], 0
je 0x4521ed
mov esi, dword [ebp - 0x4c]
mov dword [esi + edi*4], eax
inc edi
cmp edi, dword [ebp - 0x50]
je 0x452269
inc ecx
add edx, 0xc
cmp ecx, dword [ebx + 0xc]
jb 0x4521d8
jmp 0x452269
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x45240f
mov ecx, dword [ecx]
mov eax, dword [ecx]
cmp eax, ecx
je 0x45240f
mov ebx, dword [ebp - 0x4c]
cmp dword [eax + 0x18], 0
lea edx, [eax + 0x18]
je 0x452223
mov dword [ebx + edi*4], edx
inc edi
cmp edi, esi
je 0x452266
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
je 0x452249
mov edx, dword [eax + 4]
cmp byte [edx + 0xd], 0
jne 0x452245
cmp eax, dword [edx + 8]
jne 0x452245
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x452235
mov eax, edx
jmp 0x452262
mov eax, edx
mov esi, dword [eax]
cmp byte [esi + 0xd], 0
jne 0x45225f
mov edx, dword [esi]
mov eax, esi
mov esi, edx
cmp byte [edx + 0xd], 0
je 0x452253
mov esi, dword [ebp - 0x50]
cmp eax, ecx
jne 0x452212
mov ebx, dword [ebp - 0x54]
cmp edi, 1
jbe 0x45240f
mov ecx, dword [ebx]
test ecx, ecx
je 0x452295
cmp dword [ecx], 0
je 0x452283
add dword [ecx + 8], 2
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xc]
lea eax, [eax + eax*2]
cmp dword [ecx + eax*4 - 0xc], 0
je 0x452295
add dword [ecx + eax*4 - 4], 2
push 0x4520b0
push 4
push edi
push dword [ebp - 0x4c]
call fcn.004a5f10
mov ecx, dword [ebx]
add esp, 0x10
test ecx, ecx
je 0x4522cb
cmp dword [ecx], 0
je 0x4522b9
add dword [ecx + 8], 0xfffffffe
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xc]
lea eax, [eax + eax*2]
cmp dword [ecx + eax*4 - 0xc], 0
je 0x4522cb
add dword [ecx + eax*4 - 4], 0xfffffffe
mov ecx, dword [ebp - 0x4c]
mov edx, edi
mov ebx, dword [ebx + 0x18]
xor esi, esi
shr edx, 2
mov dword [ebp - 0x50], edx
mov eax, dword [ecx + edi*4 - 4]
cmp dword [eax + 4], ebx
jbe 0x452303
lea esi, [edi - 1]
test esi, esi
je 0x452303
lea ecx, [ecx + esi*4]
add ecx, 0xfffffffc
mov eax, dword [ecx]
cmp dword [eax + 4], ebx
jbe 0x452300
sub ecx, 4
sub esi, 1
jne 0x4522f1
mov ecx, dword [ebp - 0x4c]
test edx, edx
je 0x452347
cmp esi, edi
sbb eax, eax
and esi, eax
mov ebx, dword [ecx + esi*4]
mov eax, dword [ebx]
test eax, eax
je 0x45233f
push eax
call fcn.0047a31f
mov eax, dword [ebp - 0x54]
add esp, 4
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dword [ebx], 0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
dec dword [eax + 0x10]
sub edx, 1
mov dword [ebp - 0x50], edx
jne 0x452307
mov edi, dword [ebp - 0x54]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x45240f
mov ecx, dword [ebx]
mov eax, dword [ecx]
cmp eax, ecx
je 0x45240f
cmp dword [eax + 0x18], 0
je 0x4523ae
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x452394
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x452390
nop dword [eax]
cmp eax, dword [ecx + 8]
jne 0x452390
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x452380
mov eax, ecx
jmp 0x452404
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x452404
nop
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x4523a0
jmp 0x452404
mov esi, dword [eax + 8]
mov ecx, eax
cmp byte [esi + 0xd], 0
je 0x4523d4
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x4523ef
cmp ecx, dword [esi + 8]
jne 0x4523ef
mov ecx, esi
mov esi, dword [esi + 4]
cmp byte [esi + 0xd], 0
je 0x4523c2
jmp 0x4523ef
mov edi, dword [esi]
cmp byte [edi + 0xd], 0
jne 0x4523ec
nop dword [eax]
mov edx, dword [edi]
mov esi, edi
mov edi, edx
cmp byte [edx + 0xd], 0
je 0x4523e0
mov edi, dword [ebp - 0x54]
push eax
mov ecx, ebx
call fcn.00445f90
push 0x28
push eax
call fcn.00479e95
add esp, 8
mov eax, esi
mov ebx, dword [edi + 4]
cmp eax, dword [ebx]
jne 0x452361
push dword [ebp - 0x4c]
call fcn.0047a31f
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00479e61
mov esp, ebp
pop ebp
ret 8