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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10134beb
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x1019d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x110], esi
call fcn.10005080
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10c]
push 0x40
push 0
push eax
call fcn.10105570
add esp, 0xc
mov dword [ebp - 0x10c], 0x40
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x10040cc1
mov esi, dword [ebp - 0x104]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x100]
shrd esi, eax, 0x14
call fcn.10005020
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push esi
push 0x10160be0
push eax
call fcn.1005aea0
add esp, 0xc
lea eax, [ebp - 0xb4]
lea ecx, [ebp - 0x28]
push eax
call fcn.10004a70
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.10006030
mov edx, esi
mov ecx, eax
call fcn.1005bde0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10004ab0
mov esi, dword [ebp - 0x110]
lea ecx, [ebp - 0xb4]
call fcn.10004f90
test al, al
jne 0x10040d40
mov byte [ebp - 0x20], 4
lea ecx, [ebp - 0xb4]
or dword [ebp - 0x20], 0x100
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.10004ba0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x10040d06
mov eax, dword [eax]
mov ecx, eax
call fcn.100f4250
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
mov ecx, esi
push 0x10161969
push str.A0201
call fcn.100f5ce0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.100f51d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100f5040
push str.User32.dll
lea ecx, [ebp - 0x154]
call fcn.10007b90
mov byte [ebp - 4], 4
lea eax, [ebp - 0x154]
push eax
call fcn.10069f30
mov ecx, eax
call fcn.10069ff0
mov esi, eax
mov dword [ebp - 0x114], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x154]
call fcn.10004ab0
xor edi, edi
test esi, esi
je 0x10040d92
push 0x10161974
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea ecx, [ebp - 0x9c]
call fcn.10005080
mov byte [ebp - 4], 5
test edi, edi
je 0x10040dfe
push 0
call edi
mov esi, eax
test esi, esi
jle 0x10040dfe
lea ecx, [ebp - 0x28]
call fcn.10005020
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
push esi
push 0x1015a250
push eax
call fcn.1005aea0
add esp, 0xc
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x28]
push eax
call fcn.10004a70
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.10006030
mov edx, esi
mov ecx, eax
call fcn.1005bde0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10004ab0
lea ecx, [ebp - 0x9c]
call fcn.10004f90
test al, al
jne 0x10040e81
mov byte [ebp - 0x20], 4
lea ecx, [ebp - 0x9c]
or dword [ebp - 0x20], 0x100
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.10004ba0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x10040e43
mov eax, dword [eax]
mov ecx, eax
call fcn.100f4250
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x110]
push 0x101619ad
push str.A0202
call fcn.100f5ce0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.100f51d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.100f5040
lea ecx, [ebp - 0x84]
call fcn.10005080
mov byte [ebp - 4], 9
test edi, edi
je 0x10040eed
push 1
call edi
mov esi, eax
test esi, esi
jle 0x10040eed
lea ecx, [ebp - 0x28]
call fcn.10005020
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x28]
push esi
push 0x1015a250
push eax
call fcn.1005aea0
add esp, 0xc
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x28]
push eax
call fcn.10004a70
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.10006030
mov edx, esi
mov ecx, eax
call fcn.1005bde0
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.10004ab0
lea ecx, [ebp - 0x84]
call fcn.10004f90
test al, al
jne 0x10040f70
mov byte [ebp - 0x20], 4
lea ecx, [ebp - 0x84]
or dword [ebp - 0x20], 0x100
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.10004ba0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x10040f32
mov eax, dword [eax]
mov ecx, eax
call fcn.100f4250
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x110]
push 0x101619a5
push str.A0203
call fcn.100f5ce0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.100f51d0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.100f5040
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x34]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x128], 2
and dword [ebp - 0x128], 0xfffffeff
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], 0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x110]
push 0x101619bd
push str.A0204
call fcn.100f5ce0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x130]
push ecx
mov ecx, eax
call fcn.100f51d0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x130]
call fcn.100f5040
mov edi, dword [ebp - 0x114]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101619b0
push edi
call esi
push 0x101619d4
push edi
mov dword [ebp - 0x118], eax
call esi
push str.Gdi32.dll
mov dword [ebp - 0x134], eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x138], eax
test eax, eax
je 0x10041051
push 0x101619e8
push eax
call esi
mov edi, eax
xor esi, esi
mov dword [ebp - 0x114], esi
test edi, edi
je 0x100410a1
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x100410a1
cmp dword [ebp - 0x134], esi
je 0x100410a1
push esi
call eax
mov esi, eax
test esi, esi
je 0x1004109f
push 0x58
push esi
call edi
push 0x5a
push esi
mov dword [ebp - 0x118], eax
call edi
push esi
push 0
mov dword [ebp - 0x114], eax
call dword [ebp - 0x134]
mov esi, dword [ebp - 0x118]
jmp 0x100410a1
xor esi, esi
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x100410b2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 0x128], 2
and dword [ebp - 0x128], 0xfffffeff
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], 0
mov byte [ebp - 4], 0xf
mov edi, dword [ebp - 0x110]
mov ecx, edi
push 0x101619e5
push str.A0205
call fcn.100f5ce0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x130]
push ecx
mov ecx, eax
call fcn.100f51d0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x130]
call fcn.100f5040
mov eax, dword [ebp - 0x114]
mov byte [ebp - 0x20], 2
and dword [ebp - 0x20], 0xfffffeff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0x11
mov ecx, edi
push 0x10161a05
push str.A0206
call fcn.100f5ce0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.100f51d0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.100f5040
xorps xmm0, xmm0
lea ecx, [ebp - 0x6c]
movups xmmword [ebp - 0x6c], xmm0
movups xmmword [ebp - 0x5c], xmm0
call fcn.10021f60
mov byte [ebp - 4], 0x13
mov esi, dword [ebp - 0x13c]
mov ecx, esi
call fcn.10004ba0
lea ecx, [ebp - 0x64]
cmp ecx, eax
je 0x100411d5
mov ecx, esi
call fcn.10004ba0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100411c9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x64]
call fcn.10004c10
mov eax, dword [ebp - 0x6c]
mov cl, byte [esi + 0x30]
mov byte [eax + 0x3d], cl
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.100220d0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x4c]
call fcn.10004f90
test al, al
je 0x10041215
push str.000000000000
call fcn.10005260
add esp, 4
lea ecx, [ebp - 0x4c]
push eax
push str.000000000000
call fcn.10004c10
lea ecx, [ebp - 0xcc]
call fcn.10005080
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10004a70
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.10006030
mov edx, esi
mov ecx, eax
call fcn.1005bde0
add esp, 4
mov byte [ebp - 0x20], 4
or dword [ebp - 0x20], 0x100
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.10004ba0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x1004127f
mov eax, dword [eax]
mov ecx, eax
call fcn.100f4250
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x16
mov ecx, edi
push 0x101619fd
push str.A0207
call fcn.100f5ce0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.100f51d0
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x28]
call fcn.100f5040
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xcc]
call fcn.10004f40
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x4c]
call fcn.10004ab0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x6c]
call fcn.10022010
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x84]
call fcn.10004f40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.10004f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.10004f40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10103789
mov esp, ebp
pop ebp
ret 4