Function at 0x10061520
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101da800
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x1026abac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1bc], eax
lea edi, [ebp - 0xc0]
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
nop
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
push ecx
lea ecx, [ebp - 0x290]
mov dword [edi + 0xc], edx
call fcn.1005a550
push 0x10055e70
lea ecx, [ebp - 0x280]
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov edi, dword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov esi, eax
push 0
push 8
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov byte [eax + esi + 0x40], 0x30
lea eax, [ebp - 0xf0]
push eax
call edi
push dword [eax + 0xc]
mov ecx, dword [eax]
push dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push eax
call ecx
add esp, 0x18
mov ecx, esi
push dword [ebp - 0xb4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0
mov esi, eax
lea eax, [ebp - 0x1d0]
push 8
push eax
call edi
push dword [eax + 0xc]
mov ecx, dword [eax]
push dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push eax
call ecx
add esp, 0x18
mov ecx, esi
push dword [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
xorps xmm0, xmm0
mov dword [ebp - 0xa0], 0
movups xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x278]
call fcn.1005a6a0
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0x10
jb 0x1006168d
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061683
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10061683
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101d565d
add esp, 8
movups xmm1, xmmword [ebp - 0x28]
lea eax, [ebp - 0xb0]
movq xmm0, qword [ebp - 0x18]
lea ecx, [ebp - 0xb0]
movq qword [ebp - 0xa0], xmm0
lea edi, [ebp - 0xb0]
cmp dword [ebp - 0x9c], 0x10
movd edx, xmm1
movups xmmword [ebp - 0xb0], xmm1
cmovae eax, edx
cmovae ecx, edx
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0xa0]
add eax, ecx
cmp dword [ebp - 0x9c], 0x10
mov dword [ebp - 0x1bc], eax
cmovae edi, edx
cmp edi, eax
je 0x1006170b
mov esi, dword [ebp - 0x1c0]
sub esi, edi
movsx eax, byte [edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov byte [esi + edi], al
add esp, 4
inc edi
cmp edi, dword [ebp - 0x1bc]
jne 0x100616f2
xorps xmm0, xmm0
mov dword [ebp - 0xd0], 0
movups xmmword [ebp - 0xe0], xmm0
mov dword [ebp - 0xcc], 0xf
mov byte [ebp - 0xe0], 0
push str.GlobalMemoryStatusEx
push 0x10253e0c
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100617da
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x50], 0x40
lea eax, [ebp - 0x50]
push eax
call esi
cmp eax, 1
jne 0x100617da
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
lea ecx, [ebp - 0x53]
call fcn.1006f130
mov ecx, eax
mov dword [ebp - 0x88], 0
lea eax, [ebp - 0x53]
mov dword [ebp - 0x84], 0
add esp, 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x98], xmm0
cmp ecx, eax
jne 0x100617ce
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
jmp 0x1006187e
lea eax, [ebp - 0x53]
sub eax, ecx
push eax
push ecx
jmp 0x10061873
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
push eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov ecx, dword [ebp - 0x28]
lea esi, [ebp - 0x6b]
shr ecx, 0x14
mov dword [ebp - 0x1c0], ecx
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x1c0]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0x1c0], eax
test eax, eax
jne 0x10061805
lea eax, [ebp - 0x6b]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x98], xmm0
cmp esi, eax
jne 0x1006186c
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
jmp 0x1006187e
lea eax, [ebp - 0x6b]
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x98]
call fcn.1004d7a0
movups xmm0, xmmword [ebp - 0x98]
mov eax, bind
lea edi, [ebp - 0xc0]
xor ecx, ecx
movups xmmword [ebp - 0xe0], xmm0
push ebx
movq xmm0, qword [ebp - 0x88]
cpuid
movq qword [ebp - 0xd0], xmm0
mov esi, ebx
movaps xmm0, xmmword [0x10258810]
movups xmmword [ebp - 0xc0], xmm0
pop ebx
nop
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov edi, bind
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x1c0], eax
cmp eax, edi
jb 0x10061952
nop
mov eax, edi
xor ecx, ecx
push ebx
cpuid
mov dword [ebp - 0x1bc], ebx
pop ebx
nop
lea esi, [ebp - 0xc0]
mov dword [esi], eax
lea eax, [ebp - 0xc0]
mov esi, dword [ebp - 0x1bc]
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
cmp edi, reloc.WS2_32.dll_bind
jne 0x10061921
movups xmm0, xmmword [ebp - 0xc0]
movups xmmword [ebp - 0x50], xmm0
jmp 0x10061949
cmp edi, reloc.WS2_32.dll_closesocket
jne 0x10061936
movups xmm0, xmmword [ebp - 0xc0]
movups xmmword [ebp - 0x40], xmm0
jmp 0x10061949
cmp edi, reloc.WS2_32.dll_connect
jne 0x10061949
movups xmm0, xmmword [ebp - 0xc0]
movups xmmword [ebp - 0x30], xmm0
inc edi
cmp edi, dword [ebp - 0x1c0]
jbe 0x100618e0
lea ecx, [ebp - 0x1b8]
call fcn.1007de60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
xorps xmm0, xmm0
mov dword [ebp - 0xb8], 0
movups xmmword [ebp - 0xc8], xmm0
mov dword [ebp - 0xb4], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10061985
sub ecx, edx
lea eax, [ebp - 0x50]
push ecx
push eax
lea ecx, [ebp - 0xc8]
call fcn.1004d7a0
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x1bc], esp
lea ecx, [ebp - 0x1d8]
push eax
call fcn.1004b7d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1d8]
mov edi, dword [ebp - 0x1c4]
cmp edi, 0x10
mov edx, dword [ebp - 0x1c8]
cmovae ecx, dword [ebp - 0x1d8]
push 4
sub esp, 8
call fcn.1006b770
add esp, 0xc
lea ecx, [eax + 1]
cmp dword [ebp - 0x1c8], ecx
jb 0x10061e90
cmp edi, 0x10
mov dword [ebp - 0x1c8], ecx
lea eax, [ebp - 0x1d8]
cmovae eax, dword [ebp - 0x1d8]
mov byte [eax + ecx], 0
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x28]
call fcn.1004b7d0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c4]
cmp ecx, 0x10
jb 0x10061a60
mov edx, dword [ebp - 0x1d8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061a56
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061dfd
push ecx
push edx
call fcn.101d565d
add esp, 8
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0xf
mov byte [ebp - 0x1d8], 0
push 1
push 0x10253edc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.1004c990
mov dword [ebp - 0x88], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x88], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 7
lea eax, [ebp - 0xe0]
cmp dword [ebp - 0xcc], 0x10
lea ecx, [ebp - 0x98]
push dword [ebp - 0xd0]
cmovae eax, dword [ebp - 0xe0]
push eax
call fcn.1004c990
mov dword [ebp - 0x100], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x110], xmm0
mov dword [ebp - 0xfc], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x110], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x100], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 1
push 0x10253edc
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 8
call fcn.1004c990
mov dword [ebp - 0xe8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xf8], xmm0
mov dword [ebp - 0xe4], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xf8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xe8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 9
lea eax, [ebp - 0xb0]
cmp dword [ebp - 0x9c], 0x10
lea ecx, [ebp - 0xf8]
push dword [ebp - 0xa0]
cmovae eax, dword [ebp - 0xb0]
push eax
call fcn.1004c990
mov ecx, dword [ebp - 0x1bc]
xorps xmm0, xmm0
mov esi, dword [ebp - 0x1dc]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, esi
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
call fcn.10061320
mov ecx, dword [ebp - 0xe4]
add esp, 0x18
cmp ecx, 0x10
jb 0x10061c4f
mov edx, dword [ebp - 0xf8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061c45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061dfd
push ecx
push edx
call fcn.101d565d
add esp, 8
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
cmp ecx, 0x10
jb 0x10061ca4
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061c9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061dfd
push ecx
push edx
call fcn.101d565d
add esp, 8
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
cmp ecx, 0x10
jb 0x10061cf9
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061cef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061dfd
push ecx
push edx
call fcn.101d565d
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
cmp ecx, 0x10
jb 0x10061d48
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061d3e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061dfd
push ecx
push edx
call fcn.101d565d
add esp, 8
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x10061d90
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061d86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061dfd
push ecx
push edx
call fcn.101d565d
add esp, 8
lea ecx, [ebp - 0x1b8]
call fcn.10061ea0
mov ecx, dword [ebp - 0xcc]
cmp ecx, 0x10
jb 0x10061dd1
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061dc7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061dfd
push ecx
push edx
call fcn.101d565d
add esp, 8
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0x10
jb 0x10061e0d
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061e03
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10061e03
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101d565d
add esp, 8
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov ecx, dword [ebp - 0x290]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [ebp + edx - 0x294], ecx
lea ecx, [ebp - 0x278]
call fcn.1005a4a0
lea ecx, [ebp - 0x270]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x228]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101d51d8
mov esp, ebp
pop ebp
ret
call fcn.1004ce50
int3