Function at 0x527530
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x599487
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x148], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x16c]
mov dword [esp + 0x104], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x20], esi
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
mov dword [esp + 0x164], 0
lea eax, [esp + 0x3c]
push 0x40
push 0
push eax
call fcn.0056cbb0
add esp, 0xc
mov dword [esp + 0x3c], 0x40
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x5276b5
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
shrd ecx, eax, 0x14
mov dword [esp + 0x14c], 0
shr eax, 0x14
xor eax, eax
mov dword [esp + 0x150], 0
mov dword [esp + 0x150], 7
mov dword [esp + 0x14c], 0
mov word [esp + 0x13c], ax
mov byte [esp + 0x164], 1
lea eax, [esp + 0x13c]
push ecx
push 0x5bf680
push eax
call fcn.004b0200
mov edx, dword [esp + 0x158]
lea eax, [esp + 0x100]
add esp, 0xc
lea ecx, [esp + 0x13c]
cmp dword [esp + 0x150], 8
cmovae ecx, dword [esp + 0x13c]
push eax
call fcn.004b1140
add esp, 4
mov byte [esp + 0x164], 0
cmp dword [esp + 0x150], 8
jb 0x527695
push dword [esp + 0x13c]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x150], 7
mov dword [esp + 0x14c], 0
mov word [esp + 0x13c], ax
mov edx, dword [esp + 0x104]
test edx, edx
je 0x527747
mov byte [esp + 0x2c], 4
lea ecx, [esp + 0xf4]
or dword [esp + 0x2c], 0x100
cmp dword [esp + 0x108], 0x10
mov dword [esp + 0x30], 0
cmovae ecx, dword [esp + 0xf4]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.004f53a0
mov dword [esp + 0x24], eax
mov byte [esp + 0x164], 2
mov ecx, esi
push 0x5bf86d
push 0x5bf868
call fcn.004f74a0
mov byte [esp + 0x164], 3
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0x164], 0
lea ecx, [esp + 0x24]
call fcn.004f6200
push 0xa
xor eax, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
lea ecx, [esp + 0x28]
push 0x5ba5ac
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.00404a80
mov byte [esp + 0x164], 4
mov eax, dword [0x7e23f4]
test al, 1
jne 0x5277c3
or eax, 1
mov dword [0x7e23f4], eax
mov byte [esp + 0x164], 5
mov dword [0x7e23f0], 0
call fcn.004c1de0
push 0x59ffb0
call fcn.00565027
add esp, 4
mov byte [esp + 0x164], 4
lea eax, [esp + 0x24]
mov ecx, 0x7e23f0
push eax
call fcn.004c1fa0
mov edi, eax
mov byte [esp + 0x164], 0
cmp dword [esp + 0x38], 8
jb 0x5277ef
push dword [esp + 0x24]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x38], 7
xor esi, esi
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
test edi, edi
je 0x52781a
push 0x5baad8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], 0
mov byte [esp + 0x10c], 0
mov byte [esp + 0x164], 6
test esi, esi
je 0x52792d
push 0
call esi
test eax, eax
jle 0x52792d
xor ecx, ecx
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
mov dword [esp + 0x150], 7
mov dword [esp + 0x14c], 0
mov word [esp + 0x13c], cx
mov byte [esp + 0x164], 7
push eax
lea eax, [esp + 0x140]
push 0x5ba1c0
push eax
call fcn.004b0200
mov edx, dword [esp + 0x158]
lea eax, [esp + 0x118]
add esp, 0xc
lea ecx, [esp + 0x13c]
cmp dword [esp + 0x150], 8
cmovae ecx, dword [esp + 0x13c]
push eax
call fcn.004b1140
add esp, 4
mov byte [esp + 0x164], 6
cmp dword [esp + 0x150], 8
jb 0x52790d
push dword [esp + 0x13c]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x150], 7
mov dword [esp + 0x14c], 0
mov word [esp + 0x13c], ax
mov edx, dword [esp + 0x11c]
test edx, edx
je 0x5279d9
mov byte [esp + 0x144], 4
lea ecx, [esp + 0x10c]
or dword [esp + 0x144], 0x100
cmp dword [esp + 0x120], 0x10
mov dword [esp + 0x148], 0
cmovae ecx, dword [esp + 0x10c]
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
call fcn.004f53a0
mov dword [esp + 0x13c], eax
mov byte [esp + 0x164], 8
mov ecx, dword [esp + 0x20]
push 0x5bf865
push 0x5bf860
call fcn.004f74a0
mov byte [esp + 0x164], 9
lea ecx, [esp + 0x13c]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0x164], 6
lea ecx, [esp + 0x13c]
call fcn.004f6200
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x138], 0xf
mov dword [esp + 0x134], 0
mov byte [esp + 0x124], 0
mov byte [esp + 0x164], 0xa
test esi, esi
je 0x527aec
push 1
call esi
test eax, eax
jle 0x527aec
xor ecx, ecx
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
mov dword [esp + 0x150], 7
mov dword [esp + 0x14c], 0
mov word [esp + 0x13c], cx
mov byte [esp + 0x164], 0xb
push eax
lea eax, [esp + 0x140]
push 0x5ba1c0
push eax
call fcn.004b0200
mov edx, dword [esp + 0x158]
lea eax, [esp + 0x130]
add esp, 0xc
lea ecx, [esp + 0x13c]
cmp dword [esp + 0x150], 8
cmovae ecx, dword [esp + 0x13c]
push eax
call fcn.004b1140
add esp, 4
mov byte [esp + 0x164], 0xa
cmp dword [esp + 0x150], 8
jb 0x527acc
push dword [esp + 0x13c]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x150], 7
mov dword [esp + 0x14c], 0
mov word [esp + 0x13c], ax
mov edx, dword [esp + 0x134]
test edx, edx
je 0x527b98
mov byte [esp + 0x144], 4
lea ecx, [esp + 0x124]
or dword [esp + 0x144], 0x100
cmp dword [esp + 0x138], 0x10
mov dword [esp + 0x148], 0
cmovae ecx, dword [esp + 0x124]
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
call fcn.004f53a0
mov dword [esp + 0x13c], eax
mov byte [esp + 0x164], 0xc
mov ecx, dword [esp + 0x20]
push 0x5bf8e5
push 0x5bf8e0
call fcn.004f74a0
mov byte [esp + 0x164], 0xd
lea ecx, [esp + 0x13c]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0x164], 0xa
lea ecx, [esp + 0x13c]
call fcn.004f6200
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
lea eax, [esp + 0x80]
push eax
movdqu xmmword [esp + 0x88], xmm0
movdqu xmmword [esp + 0x98], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x94]
mov byte [esp + 0x144], 2
and dword [esp + 0x144], 0xfffffeff
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], 0
mov byte [esp + 0x164], 0xe
mov ecx, dword [esp + 0x20]
push 0x5bf8dd
push 0x5bf8d8
call fcn.004f74a0
mov byte [esp + 0x164], 0xf
lea ecx, [esp + 0x13c]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0x164], 0xa
lea ecx, [esp + 0x13c]
call fcn.004f6200
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5bf8d0
push edi
call esi
push 0x5bf8c4
push edi
mov dword [esp + 0x24], eax
call esi
push 0x5bf908
mov dword [esp + 0x1c], eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x527c96
push 0x5bf8f8
push eax
call esi
mov edi, eax
xor esi, esi
test edi, edi
je 0x527cd2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x527cd2
cmp dword [esp + 0x18], esi
je 0x527cd2
push esi
call eax
mov esi, eax
test esi, esi
je 0x527cd0
push 0x58
push esi
call edi
push 0x5a
push esi
mov dword [esp + 0x24], eax
call edi
push esi
push 0
mov edi, eax
call dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x527cd4
xor esi, esi
xor edi, edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x527ce3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [esp + 0x2c], 2
and dword [esp + 0x2c], 0xfffffeff
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 0
mov byte [esp + 0x164], 0x10
mov esi, dword [esp + 0x20]
mov ecx, esi
push 0x5bf8f5
push 0x5bf8f0
call fcn.004f74a0
mov byte [esp + 0x164], 0x11
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0x164], 0xa
lea ecx, [esp + 0x24]
call fcn.004f6200
mov byte [esp + 0x144], 2
and dword [esp + 0x144], 0xfffffeff
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 0
mov dword [esp + 0x150], 0
mov dword [esp + 0x13c], edi
mov dword [esp + 0x140], 0
mov byte [esp + 0x164], 0x12
mov ecx, esi
push 0x5bf8ed
push 0x5bf8e8
call fcn.004f74a0
mov byte [esp + 0x164], 0x13
lea ecx, [esp + 0x13c]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0x164], 0xa
lea ecx, [esp + 0x13c]
call fcn.004f6200
xorps xmm0, xmm0
lea ecx, [esp + 0xa4]
movdqu xmmword [esp + 0xa4], xmm0
movdqu xmmword [esp + 0xb4], xmm0
call fcn.00540230
mov byte [esp + 0x164], 0x14
lea eax, [esp + 0xac]
mov edi, dword [esp + 0x14]
cmp eax, edi
je 0x527e24
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00404960
mov eax, dword [esp + 0xa4]
mov cl, byte [edi + 0x30]
mov byte [eax + 0x3d], cl
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0xa8]
call fcn.00540390
mov byte [esp + 0x164], 0x15
cmp dword [esp + 0xd4], 0
jne 0x527e6a
push 0xc
push 0x5bc634
lea ecx, [esp + 0xcc]
call fcn.00404a80
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], 0
mov byte [esp + 0xdc], 0
mov byte [esp + 0x164], 0x16
lea eax, [esp + 0xdc]
cmp dword [esp + 0xd8], 8
lea ecx, [esp + 0xc4]
mov edx, dword [esp + 0xd4]
cmovae ecx, dword [esp + 0xc4]
push eax
call fcn.004b1140
mov edx, dword [esp + 0xf0]
lea ecx, [esp + 0xe0]
add esp, 4
mov byte [esp + 0x2c], 4
or dword [esp + 0x2c], 0x100
cmp dword [esp + 0xf0], 0x10
mov dword [esp + 0x30], 0
cmovae ecx, dword [esp + 0xdc]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.004f53a0
mov dword [esp + 0x24], eax
mov byte [esp + 0x164], 0x17
mov ecx, esi
push 0x5bf939
push 0x5bf934
call fcn.004f74a0
mov byte [esp + 0x164], 0x18
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.004f63a0
mov byte [esp + 0x164], 0x16
lea ecx, [esp + 0x24]
call fcn.004f6200
mov byte [esp + 0x164], 0x15
cmp dword [esp + 0xf0], 0x10
jb 0x527f7f
push dword [esp + 0xdc]
call fcn.00564de3
add esp, 4
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], 0
mov byte [esp + 0xdc], 0
mov byte [esp + 0x164], 0x14
cmp dword [esp + 0xd8], 8
jb 0x527fbe
push dword [esp + 0xc4]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], 0
mov word [esp + 0xc4], ax
mov byte [esp + 0x164], 0x19
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x52800c
mov ecx, esi
call fcn.00554c30
push esi
call fcn.00564de3
add esp, 4
mov dword [esp + 0xa4], 0
mov byte [esp + 0x164], 0xa
cmp dword [esp + 0xc0], 8
jb 0x52802d
push dword [esp + 0xac]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], 0
mov word [esp + 0xac], ax
mov byte [esp + 0x164], 6
cmp dword [esp + 0x138], 0x10
jb 0x52806e
push dword [esp + 0x124]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x138], 0xf
mov dword [esp + 0x134], 0
mov byte [esp + 0x124], 0
mov byte [esp + 0x164], 0
cmp dword [esp + 0x120], 0x10
jb 0x5280ad
push dword [esp + 0x10c]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], 0
mov byte [esp + 0x10c], 0
mov dword [esp + 0x164], 0xffffffff
cmp dword [esp + 0x108], 0x10
jb 0x5280ef
push dword [esp + 0xf4]
call fcn.00564de3
add esp, 4
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00564de8
add esp, 0x15c
ret 4