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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x696b9b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x158
mov eax, dword [0x748068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14c], ecx
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x11c], esi
call fcn.00405df0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x118]
push 0x40
push 0
push eax
call fcn.00652810
add esp, 0xc
mov dword [ebp - 0x118], 0x40
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x490925
mov esi, dword [ebp - 0x110]
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x10c]
shrd esi, eax, 0x14
call fcn.00405d80
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
push esi
push 0x6ceeb4
push eax
call fcn.004304b0
add esp, 0xc
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x34]
push eax
call fcn.00405eb0
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.00405ca0
mov edx, esi
mov ecx, eax
call fcn.00439880
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00405ce0
mov esi, dword [ebp - 0x11c]
lea ecx, [ebp - 0xc0]
call fcn.00405c90
test al, al
jne 0x4909a4
mov byte [ebp - 0x30], 4
lea ecx, [ebp - 0xc0]
or dword [ebp - 0x30], 0x100
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00405e20
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x49096a
mov eax, dword [eax]
mov ecx, eax
call fcn.0051d840
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
mov ecx, esi
push 0x6e1441
push str.A0201
call fcn.0051f7f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.0051e770
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0051e5e0
push str.User32.dll
lea ecx, [ebp - 0x164]
call fcn.00405d30
mov byte [ebp - 4], 4
lea eax, [ebp - 0x164]
push eax
call fcn.00450f20
mov ecx, eax
call fcn.00450fe0
mov esi, eax
mov dword [ebp - 0x120], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x164]
call fcn.00405ce0
xor edi, edi
test esi, esi
je 0x4909f6
push 0x6ddf04
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea ecx, [ebp - 0xa8]
call fcn.00405df0
mov byte [ebp - 4], 5
test edi, edi
je 0x490a62
push 0
call edi
mov esi, eax
test esi, esi
jle 0x490a62
lea ecx, [ebp - 0x34]
call fcn.00405d80
mov byte [ebp - 4], 6
lea eax, [ebp - 0x34]
push esi
push 0x6df24c
push eax
call fcn.004304b0
add esp, 0xc
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0x34]
push eax
call fcn.00405eb0
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.00405ca0
mov edx, esi
mov ecx, eax
call fcn.00439880
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
call fcn.00405ce0
lea ecx, [ebp - 0xa8]
call fcn.00405c90
test al, al
jne 0x490ae5
mov byte [ebp - 0x30], 4
lea ecx, [ebp - 0xa8]
or dword [ebp - 0x30], 0x100
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00405e20
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x490aa7
mov eax, dword [eax]
mov ecx, eax
call fcn.0051d840
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x11c]
push 0x6e14c1
push str.A0202
call fcn.0051f7f0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.0051e770
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38]
call fcn.0051e5e0
lea ecx, [ebp - 0x90]
call fcn.00405df0
mov byte [ebp - 4], 9
test edi, edi
je 0x490b51
push 1
call edi
mov esi, eax
test esi, esi
jle 0x490b51
lea ecx, [ebp - 0x34]
call fcn.00405d80
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x34]
push esi
push 0x6df24c
push eax
call fcn.004304b0
add esp, 0xc
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x34]
push eax
call fcn.00405eb0
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.00405ca0
mov edx, esi
mov ecx, eax
call fcn.00439880
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x34]
call fcn.00405ce0
lea ecx, [ebp - 0x90]
call fcn.00405c90
test al, al
jne 0x490bd4
mov byte [ebp - 0x30], 4
lea ecx, [ebp - 0x90]
or dword [ebp - 0x30], 0x100
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00405e20
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x490b96
mov eax, dword [eax]
mov ecx, eax
call fcn.0051d840
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x11c]
push 0x6e14c9
push str.A0203
call fcn.0051f7f0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.0051e770
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x38]
call fcn.0051e5e0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x40]
push eax
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x138], 2
and dword [ebp - 0x138], 0xfffffeff
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], 0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x11c]
push 0x6e14b1
push str.A0204
call fcn.0051f7f0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x140]
push ecx
mov ecx, eax
call fcn.0051e770
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x140]
call fcn.0051e5e0
mov edi, dword [ebp - 0x120]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6e14b4
push edi
call esi
push 0x6e14e4
push edi
mov dword [ebp - 0x124], eax
call esi
push str.Gdi32.dll
mov dword [ebp - 0x144], eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x148], eax
test eax, eax
je 0x490cb5
push 0x6e14cc
push eax
call esi
mov edi, eax
xor esi, esi
mov dword [ebp - 0x120], esi
test edi, edi
je 0x490d05
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x490d05
cmp dword [ebp - 0x144], esi
je 0x490d05
push esi
call eax
mov esi, eax
test esi, esi
je 0x490d03
push 0x58
push esi
call edi
push 0x5a
push esi
mov dword [ebp - 0x124], eax
call edi
push esi
push 0
mov dword [ebp - 0x120], eax
call dword [ebp - 0x144]
mov esi, dword [ebp - 0x124]
jmp 0x490d05
xor esi, esi
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x490d16
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 0x138], 2
and dword [ebp - 0x138], 0xfffffeff
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x13c], 0
mov byte [ebp - 4], 0xf
mov edi, dword [ebp - 0x11c]
mov ecx, edi
push 0x6e14e1
push str.A0205
call fcn.0051f7f0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x140]
push ecx
mov ecx, eax
call fcn.0051e770
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x140]
call fcn.0051e5e0
mov eax, dword [ebp - 0x120]
mov byte [ebp - 0x30], 2
and dword [ebp - 0x30], 0xfffffeff
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0x11
mov ecx, edi
push 0x6e1519
push str.A0206
call fcn.0051f7f0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.0051e770
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x38]
call fcn.0051e5e0
xorps xmm0, xmm0
lea ecx, [ebp - 0x78]
movups xmmword [ebp - 0x78], xmm0
movups xmmword [ebp - 0x68], xmm0
call fcn.0044e340
mov byte [ebp - 4], 0x13
mov esi, dword [ebp - 0x14c]
mov ecx, esi
call fcn.00405e20
lea ecx, [ebp - 0x70]
cmp ecx, eax
je 0x490e39
mov ecx, esi
call fcn.00405e20
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x490e2d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x70]
call fcn.00405ec0
mov eax, dword [ebp - 0x78]
mov cl, byte [esi + 0x30]
mov byte [eax + 0x3d], cl
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x78]
call fcn.0044e4b0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x58]
call fcn.00405c90
test al, al
je 0x490e79
push str.000000000000
call fcn.004060d0
add esp, 4
lea ecx, [ebp - 0x58]
push eax
push str.000000000000
call fcn.00405ec0
lea ecx, [ebp - 0xd8]
call fcn.00405df0
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x58]
call fcn.00405eb0
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00405ca0
mov edx, esi
mov ecx, eax
call fcn.00439880
add esp, 4
mov byte [ebp - 0x30], 4
or dword [ebp - 0x30], 0x100
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.00405e20
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x490ee3
mov eax, dword [eax]
mov ecx, eax
call fcn.0051d840
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x16
mov ecx, edi
push 0x6e1521
push str.A0207
call fcn.0051f7f0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
call fcn.0051e770
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x38]
call fcn.0051e5e0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xd8]
call fcn.00405da0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x58]
call fcn.00405ce0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x78]
call fcn.0044e3f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x90]
call fcn.00405da0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.00405da0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc0]
call fcn.00405da0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0064fb08
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4