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

Disassembly:
push 0xffffffffffffffff
push 0x1011784c
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x158], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
mov edi, dword [esp + 0x17c]
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x130], 0xf
mov dword [esp + 0x12c], 0
mov byte [esp + 0x11c], 0
mov dword [esp + 0x174], 0
lea eax, [esp + 0x4c]
push 0x40
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x4c], 0x40
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x10084268
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
shrd ecx, eax, 0x14
mov dword [esp + 0x15c], 0
shr eax, 0x14
xor eax, eax
mov dword [esp + 0x160], 0
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], 0
mov word [esp + 0x14c], ax
mov byte [esp + 0x174], 1
lea eax, [esp + 0x14c]
push ecx
push 0x101317c0
push eax
call fcn.10021880
mov edx, dword [esp + 0x168]
lea eax, [esp + 0x128]
add esp, 0xc
lea ecx, [esp + 0x14c]
cmp dword [esp + 0x160], 8
cmovae ecx, dword [esp + 0x14c]
push eax
call fcn.100234e0
add esp, 4
mov byte [esp + 0x174], 0
cmp dword [esp + 0x160], 8
jb 0x10084248
push dword [esp + 0x14c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], 0
mov word [esp + 0x14c], ax
mov edx, dword [esp + 0x12c]
test edx, edx
je 0x100842fa
mov byte [esp + 0x34], 4
lea ecx, [esp + 0x11c]
or dword [esp + 0x34], 0x100
cmp dword [esp + 0x130], 0x10
mov dword [esp + 0x38], 0
cmovae ecx, dword [esp + 0x11c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.100dee90
mov dword [esp + 0x2c], eax
mov byte [esp + 0x174], 2
mov ecx, edi
push 0x101329e1
push str.A0201
call fcn.100e2f00
mov byte [esp + 0x174], 3
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.100e0c20
mov byte [esp + 0x174], 0
lea ecx, [esp + 0x2c]
call fcn.100e0a10
push 0xa
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x30]
push 0x10131dcc
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.10004390
mov byte [esp + 0x174], 4
mov eax, dword [0x10162528]
test al, 1
jne 0x10084376
or eax, 1
mov dword [0x10162528], eax
mov byte [esp + 0x174], 5
mov dword [0x10162524], 0
call fcn.10059fc0
push 0x10128230
call fcn.1010378f
add esp, 4
mov byte [esp + 0x174], 4
lea eax, [esp + 0x2c]
mov ecx, 0x10162524
push eax
call fcn.1005a270
mov dword [esp + 0x48], eax
mov byte [esp + 0x174], 0
cmp dword [esp + 0x40], 8
jb 0x100843a5
push dword [esp + 0x2c]
call esi
mov eax, dword [esp + 0x4c]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], 7
xor edi, edi
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
test eax, eax
je 0x100843d0
push 0x10131de4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], 0
mov byte [esp + 0xec], 0
mov byte [esp + 0x174], 6
test edi, edi
je 0x100844e0
push 0
call edi
test eax, eax
jle 0x100844e0
xor ecx, ecx
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], 0
mov word [esp + 0x14c], cx
mov byte [esp + 0x174], 7
push eax
lea eax, [esp + 0x150]
push 0x1012e5d8
push eax
call fcn.10021880
mov edx, dword [esp + 0x168]
lea eax, [esp + 0xf8]
add esp, 0xc
lea ecx, [esp + 0x14c]
cmp dword [esp + 0x160], 8
cmovae ecx, dword [esp + 0x14c]
push eax
call fcn.100234e0
add esp, 4
mov byte [esp + 0x174], 6
cmp dword [esp + 0x160], 8
jb 0x100844c0
push dword [esp + 0x14c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], 0
mov word [esp + 0x14c], ax
mov edx, dword [esp + 0xfc]
test edx, edx
je 0x1008458c
mov byte [esp + 0x154], 4
lea ecx, [esp + 0xec]
or dword [esp + 0x154], 0x100
cmp dword [esp + 0x100], 0x10
mov dword [esp + 0x158], 0
cmovae ecx, dword [esp + 0xec]
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
call fcn.100dee90
mov dword [esp + 0x14c], eax
mov byte [esp + 0x174], 8
mov ecx, dword [esp + 0x28]
push 0x101329d9
push str.A0202
call fcn.100e2f00
mov byte [esp + 0x174], 9
lea ecx, [esp + 0x14c]
push ecx
mov ecx, eax
call fcn.100e0c20
mov byte [esp + 0x174], 6
lea ecx, [esp + 0x14c]
call fcn.100e0a10
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
mov byte [esp + 0x174], 0xa
test edi, edi
je 0x1008469c
push 1
call edi
test eax, eax
jle 0x1008469c
xor ecx, ecx
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], 0
mov word [esp + 0x14c], cx
mov byte [esp + 0x174], 0xb
push eax
lea eax, [esp + 0x150]
push 0x1012e5d8
push eax
call fcn.10021880
mov edx, dword [esp + 0x168]
lea eax, [esp + 0x110]
add esp, 0xc
lea ecx, [esp + 0x14c]
cmp dword [esp + 0x160], 8
cmovae ecx, dword [esp + 0x14c]
push eax
call fcn.100234e0
add esp, 4
mov byte [esp + 0x174], 0xa
cmp dword [esp + 0x160], 8
jb 0x1008467c
push dword [esp + 0x14c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], 0
mov word [esp + 0x14c], ax
mov edx, dword [esp + 0x114]
test edx, edx
je 0x10084748
mov byte [esp + 0x154], 4
lea ecx, [esp + 0x104]
or dword [esp + 0x154], 0x100
cmp dword [esp + 0x118], 0x10
mov dword [esp + 0x158], 0
cmovae ecx, dword [esp + 0x104]
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
call fcn.100dee90
mov dword [esp + 0x14c], eax
mov byte [esp + 0x174], 0xc
mov ecx, dword [esp + 0x28]
push 0x101329f1
push str.A0203
call fcn.100e2f00
mov byte [esp + 0x174], 0xd
lea ecx, [esp + 0x14c]
push ecx
mov ecx, eax
call fcn.100e0c20
mov byte [esp + 0x174], 0xa
lea ecx, [esp + 0x14c]
call fcn.100e0a10
xorps xmm0, xmm0
mov dword [esp + 0x90], 0
lea eax, [esp + 0x90]
push eax
movdqu xmmword [esp + 0x98], xmm0
movdqu xmmword [esp + 0xa8], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x154], 2
and dword [esp + 0x154], 0xfffffeff
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], 0
mov byte [esp + 0x174], 0xe
mov ecx, dword [esp + 0x28]
push 0x101329e9
push str.A0204
call fcn.100e2f00
mov byte [esp + 0x174], 0xf
lea ecx, [esp + 0x14c]
push ecx
mov ecx, eax
call fcn.100e0c20
mov byte [esp + 0x174], 0xa
lea ecx, [esp + 0x14c]
call fcn.100e0a10
mov edi, dword [esp + 0x48]
push str.GetDC
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ReleaseDC
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov dword [esp + 0x1c], eax
push str.Gdi32.dll
mov dword [esp + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10084858
push str.GetDeviceCaps
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
test edi, edi
je 0x100848a2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100848a2
cmp dword [esp + 0x1c], 0
je 0x100848a2
push 0
call eax
mov edi, eax
test edi, edi
je 0x100848a2
push 0x58
push edi
call dword [esp + 0x50]
push 0x5a
push edi
mov dword [esp + 0x2c], eax
call dword [esp + 0x50]
push edi
push 0
mov dword [esp + 0x28], eax
call dword [esp + 0x24]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100848b1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x34], 2
and dword [esp + 0x34], 0xfffffeff
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
mov byte [esp + 0x174], 0x10
mov edi, dword [esp + 0x28]
mov ecx, edi
push 0x10132a39
push str.A0205
call fcn.100e2f00
mov byte [esp + 0x174], 0x11
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.100e0c20
mov byte [esp + 0x174], 0xa
lea ecx, [esp + 0x2c]
call fcn.100e0a10
mov eax, dword [esp + 0x20]
mov byte [esp + 0x154], 2
and dword [esp + 0x154], 0xfffffeff
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], 0
mov byte [esp + 0x174], 0x12
mov ecx, edi
push 0x10132a31
push str.A0206
call fcn.100e2f00
mov byte [esp + 0x174], 0x13
lea ecx, [esp + 0x14c]
push ecx
mov ecx, eax
call fcn.100e0c20
mov byte [esp + 0x174], 0xa
lea ecx, [esp + 0x14c]
call fcn.100e0a10
xorps xmm0, xmm0
lea ecx, [esp + 0xb4]
movdqu xmmword [esp + 0xb4], xmm0
movdqu xmmword [esp + 0xc4], xmm0
call fcn.100a6f70
mov byte [esp + 0x174], 0x14
lea ecx, [esp + 0xbc]
mov eax, dword [esp + 0x10]
cmp ecx, eax
je 0x100849f8
push 0xffffffffffffffff
push 0
push eax
call fcn.10004aa0
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0xb8]
call fcn.100a71b0
mov byte [esp + 0x174], 0x15
cmp dword [esp + 0xe4], 0
jne 0x10084a31
push 0xc
push str.000000000000
lea ecx, [esp + 0xdc]
call fcn.10004390
mov dword [esp + 0x144], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x148], 0xf
mov dword [esp + 0x144], 0
mov byte [esp + 0x134], 0
mov byte [esp + 0x174], 0x16
lea eax, [esp + 0x134]
cmp dword [esp + 0xe8], 8
lea ecx, [esp + 0xd4]
mov edx, dword [esp + 0xe4]
cmovae ecx, dword [esp + 0xd4]
push eax
call fcn.100234e0
mov edx, dword [esp + 0x148]
lea ecx, [esp + 0x138]
add esp, 4
mov byte [esp + 0x34], 4
or dword [esp + 0x34], 0x100
cmp dword [esp + 0x148], 0x10
mov dword [esp + 0x38], 0
cmovae ecx, dword [esp + 0x134]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.100dee90
mov dword [esp + 0x2c], eax
mov byte [esp + 0x174], 0x17
mov ecx, edi
push 0x10132a41
push str.A0207
call fcn.100e2f00
mov byte [esp + 0x174], 0x18
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.100e0c20
mov byte [esp + 0x174], 0x16
lea ecx, [esp + 0x2c]
call fcn.100e0a10
mov byte [esp + 0x174], 0x15
cmp dword [esp + 0x148], 0x10
jb 0x10084b43
push dword [esp + 0x134]
call esi
add esp, 4
mov dword [esp + 0x148], 0xf
mov dword [esp + 0x144], 0
mov byte [esp + 0x134], 0
mov byte [esp + 0x174], 0x14
cmp dword [esp + 0xe8], 8
jb 0x10084b7f
push dword [esp + 0xd4]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], 0
mov word [esp + 0xd4], ax
mov byte [esp + 0x174], 0xa
lea ecx, [esp + 0xb4]
call fcn.100a7050
mov byte [esp + 0x174], 6
cmp dword [esp + 0x118], 0x10
jb 0x10084bd1
push dword [esp + 0x104]
call esi
add esp, 4
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
mov byte [esp + 0x174], 0
cmp dword [esp + 0x100], 0x10
jb 0x10084c0d
push dword [esp + 0xec]
call esi
add esp, 4
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], 0
mov byte [esp + 0xec], 0
mov dword [esp + 0x174], 0xffffffff
cmp dword [esp + 0x130], 0x10
jb 0x10084c4c
push dword [esp + 0x11c]
call esi
add esp, 4
mov dword [esp + 0x130], 0xf
mov dword [esp + 0x12c], 0
mov byte [esp + 0x11c], 0
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.10103694
add esp, 0x16c
ret 4