Function at 0x425ca7
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x580
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
xor eax, eax
cmp word [ebp + 0x1c], si
push edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
jne 0x425cda
push ebx
push dword [ebp + 8]
call fcn.00426682
pop ecx
mov dword [ebp + 0x1c], eax
pop ecx
cmp word [ebp + 0x1c], si
jne 0x425cf1
cmp ax, si
jne 0x425cf1
cmp dword [0x595a84], esi
je 0x425db3
mov eax, dword [ebp + 0x20]
push 1
cmp eax, esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
pop edi
je 0x425d06
mov dword [ebp - 4], eax
jmp 0x425d41
push 0xc
push dword [ebx + 8]
call esi
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x425d33
push 0xe
push dword [ebx + 8]
call esi
cmp eax, edi
jg 0x425d2a
push 0x18
push dword [ebx + 8]
call esi
cmp eax, edi
jle 0x425d41
mov dword [ebp - 4], 8
jmp 0x425d41
push 8
pop ecx
cmp eax, ecx
jg 0x426295
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x425d57
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x425d57
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
jmp 0x425d6b
push 0x58
push dword [ebx + 8]
call esi
push 0x5a
mov dword [ebp - 0x10], eax
push dword [ebx + 8]
call esi
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x24]
test ecx, ecx
jne 0x425d75
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x28]
test edi, edi
jne 0x425d7f
mov edi, dword [ebp - 0x14]
cmp word [ebp + 0x1c], 0
mov dword [ebp - 0x18], edi
jne 0x425dbb
cmp dword [0x595a84], 1
jne 0x425dbb
cmp dword [ebp - 4], 1
jne 0x425db3
mov eax, 0x190
cmp ecx, eax
jg 0x425db3
cmp edi, eax
jg 0x425db3
push dword [ebp + 8]
call fcn.00426445
test ax, ax
pop ecx
jne 0x425dbb
push 1
pop eax
jmp 0x426297
mov eax, dword [ebp + 0x34]
shl edi, 0x10
test eax, eax
je 0x425dca
mov eax, dword [eax + 4]
jmp 0x425dd1
push 0x6f
push dword [ebx + 8]
call esi
cmp dword [ebp + 0x28], 0
je 0x425de4
push dword [ebp - 0x14]
push dword [ebp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
shl eax, 0x10
push edi
push eax
call fcn.004a5f30
mov edi, eax
mov eax, dword [ebp + 0x38]
shr edi, 0x10
mov ebx, edi
pop ecx
imul ebx, dword [ebp - 0x18]
test eax, eax
pop ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x3c], ebx
jne 0x425e12
mov eax, dword [ebp + 0xc]
push 8
push dword [eax + 8]
call esi
xor esi, esi
mov dword [ebp - 8], eax
cmp dword [ebp + 0x24], esi
je 0x425e2c
push dword [ebp - 0x10]
push dword [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
cmp ebx, esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x38], esi
je 0x425e43
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 4]
cmp ebx, eax
jle 0x425e60
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 0xc]
mov edi, dword [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
lea eax, [eax + edi - 1]
cdq
idiv edi
mov edi, eax
mov dword [ebp - 0x50], edi
cmp dword [ebp - 8], esi
je 0x425e6f
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp dword [ebp - 8], eax
jle 0x425e7c
mov eax, dword [ecx]
mov ecx, dword [ecx + 8]
sub ecx, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 8], ecx
lea eax, [edi + edi*8]
push esi
shl eax, 3
mov dword [ebp - 0x68], eax
mov eax, dword [0x5b7bf4]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x110]
mov dword [0x5b7bf4], eax
lea eax, [ebp - 0x100]
push eax
mov dword [ebp - 0x70], 0x5b7bf4
mov dword [ebp - 0x10c], esi
call fcn.0052a5c0
pop ecx
test eax, eax
pop ecx
jne 0x426255
mov edi, dword [ebp - 0x50]
cmp dword [ebp - 4], 8
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x58], esi
jne 0x425ee8
lea eax, [ebp - 0x580]
push eax
push dword [ebp + 0xc]
call fcn.004264df
pop ecx
lea eax, [ebp - 0x580]
pop ecx
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 8]
cmp ecx, esi
je 0x425f13
imul ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x174]
xor edx, edx
div ecx
push 1
pop ecx
cmp eax, ecx
jge 0x425f18
jmp 0x425f16
push 1
pop ecx
mov eax, ecx
cmp edi, eax
jle 0x425f1f
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x20], esi
jne 0x425f44
cmp dword [ebp - 4], 8
jne 0x425f44
mov eax, dword [ebp - 0xc]
push 3
cdq
pop esi
mov dword [ebp - 4], 0x18
idiv esi
cmp eax, ecx
mov dword [ebp - 0xc], eax
jge 0x425f44
mov dword [ebp - 0xc], ecx
mov edi, 0x595a78
xor esi, esi
mov eax, dword [ebp - 0xc]
push esi
mov ecx, eax
mov dword [ebp - 0x28], esi
imul ecx, dword [ebp - 0x18]
lea eax, [eax + eax*8]
mov dword [ebp - 0x54], ecx
shl eax, 3
mov dword [ebp - 0x78], eax
mov eax, dword [0x5b7bf4]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x160]
mov dword [0x5b7bf4], eax
lea eax, [ebp - 0x150]
push eax
mov dword [ebp - 0x20], 0x5b7bf4
mov dword [ebp - 0x15c], esi
call fcn.0052a5c0
pop ecx
test eax, eax
pop ecx
jne 0x425fe0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x54]
push dword [ebp - 8]
push dword [ebp - 0x58]
push dword [ebp - 4]
call fcn.004262e7
mov ebx, eax
add esp, 0x14
cmp ebx, esi
mov dword [ebp - 0x40], ebx
je 0x425fd0
cmp dword [ebp - 4], 1
jne 0x425fc3
push esi
jmp 0x425fc5
push 1
push edi
call sub.AGM.dll_Ordinal_227
pop ecx
mov dword [ebp - 0x1c], eax
pop ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x160]
mov dword [eax], ecx
mov eax, dword [ebp - 0x28]
jmp 0x425fec
mov eax, dword [ebp - 0x154]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42600b
dec dword [ebp - 0xc]
cmp eax, esi
je 0x42600b
cmp dword [ebp - 0xc], esi
jne 0x425f4b
cmp eax, esi
je 0x42600b
push eax
call fcn.00401daf
pop ecx
call fcn.00495b82
mov esi, dword [ebp + 0x18]
lea edi, [ebp - 0x90]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x78]
and dword [ebp - 0x10], 0
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x68]
movsd dword es:[edi], dword [esi]
shl eax, 0x10
shl ecx, 0x10
mov edx, eax
mov dword [ebp - 0x6c], ecx
sub edx, ecx
movsd dword es:[edi], dword [esi]
test eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x84], edx
jle 0x426248
mov eax, dword [ebp - 8]
mov si, word [ebp + 0x40]
shl eax, 0x10
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
shl eax, 0x10
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x38]
shl eax, 0x10
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x5c]
shl eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x7c], eax
neg dword [ebp - 0x14]
neg si
sbb esi, esi
xor eax, eax
and esi, 0x40
cmp word [ebp + 0x3c], ax
mov edi, 0x10000
setne al
or esi, eax
or esi, 0x80
cmp dword [ebp - 0x84], 0
jge 0x4260aa
and dword [ebp - 0x84], 0
push dword [ebp - 0x24]
call sub.AGM.dll_Ordinal_222
pop ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x46]
mov dword [ebp - 0x4c], ecx
sub eax, dword [ebp - 0x4a]
mov ecx, eax
imul ecx, dword [ebp - 0x10]
mov word [ebp - 0x4a], cx
mov ecx, dword [ebp - 0x4a]
inc dword [ebp - 0x10]
add eax, ecx
mov word [ebp - 0x46], ax
movsx eax, ax
cmp eax, dword [ebp - 0x3c]
jle 0x4260ea
mov ax, word [ebp - 0x3c]
mov word [ebp - 0x46], ax
push ebx
call sub.AGM.dll_Ordinal_12
pop ecx
push edi
push ebx
call sub.AGM.dll_Ordinal_24
pop ecx
pop ecx
push ebx
call sub.AGM.dll_Ordinal_5
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
pop ecx
lea eax, [ebp - 0x34]
push eax
push ebx
call sub.AGM.dll_Ordinal_6
mov eax, dword [ebp - 0x64]
pop ecx
mov dword [ebp - 0x34], eax
pop ecx
lea eax, [ebp - 0x34]
push eax
push ebx
call sub.AGM.dll_Ordinal_8
mov eax, dword [ebp - 0x60]
pop ecx
mov dword [ebp - 0x30], eax
pop ecx
lea eax, [ebp - 0x34]
push eax
push ebx
call sub.AGM.dll_Ordinal_8
and dword [ebp - 0x34], 0
pop ecx
pop ecx
lea eax, [ebp - 0x34]
push eax
push ebx
call sub.AGM.dll_Ordinal_8
pop ecx
pop ecx
push ebx
call sub.AGM.dll_Ordinal_11
pop ecx
push ebx
call sub.AGM.dll_Ordinal_38
movsx eax, word [ebp - 0x4a]
mov dword [ebp - 0x74], eax
pop ecx
shl eax, 0x10
add eax, dword [ebp - 0x80]
neg eax
push eax
push dword [ebp - 0x14]
push ebx
call sub.AGM.dll_Ordinal_14
add esp, 0xc
lea eax, [ebp - 0xc0]
push eax
push dword [ebp + 0x10]
call sub.AGM.dll_Ordinal_58
pop ecx
test al, al
pop ecx
je 0x42619a
lea eax, [ebp - 0xc0]
push 1
push eax
push ebx
call sub.AGM.dll_Ordinal_16
add esp, 0xc
push 0
push 0x425643
push 0
push esi
push edi
push dword [ebp - 0x2c]
push ebx
push dword [ebp + 8]
call fcn.004acc20
add esp, 0x20
push ebx
call sub.AGM.dll_Ordinal_13
pop ecx
lea eax, [ebp - 0xa8]
push eax
call fcn.004ad904
pop ecx
push dword [ebp + 0x10]
call sub.AGM.dll_Ordinal_12
pop ecx
lea eax, [ebp - 0xa8]
push 0
push eax
push dword [ebp + 0x10]
call sub.AGM.dll_Ordinal_17
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x38]
add eax, ecx
add esp, 0xc
shl eax, 0x10
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xa8]
push 0
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call sub.AGM.dll_Ordinal_222
pop ecx
push eax
push dword [ebp + 0x10]
call sub.AGM.dll_Ordinal_250
add esp, 0x14
push dword [ebp + 0x10]
call sub.AGM.dll_Ordinal_13
pop ecx
mov ecx, dword [ebp - 0x20]
mov eax, ecx
mov dword [ebp - 0x8c], ecx
sub eax, dword [ebp - 0x6c]
test ecx, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x84], eax
jg 0x42609a
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x110]
mov dword [eax], ecx
jmp 0x426261
mov eax, dword [ebp - 0x104]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
xor esi, esi
cmp dword [ebp - 0x2c], esi
je 0x426271
push dword [ebp - 0x2c]
call fcn.004273eb
pop ecx
cmp ebx, esi
je 0x426282
push esi
push dword [ebp - 0x24]
push ebx
call fcn.0042629c
add esp, 0xc
cmp dword [ebp - 0x1c], esi
je 0x426290
push dword [ebp - 0x1c]
call sub.AGM.dll_Ordinal_318
pop ecx
mov eax, dword [ebp - 0x28]
jmp 0x426297
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret