Function at 0x10061600
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc650
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x1026dbac]
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.1005a5e0
push 0x10055d50
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.1005a730
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0x10
jb 0x1006176d
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061763
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10061763
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101d7443
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 0x100617eb
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 0x100617d2
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 str.kernel32.dll
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 0x100618ba
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 0x100618ba
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.10071070
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 0x100618ae
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
jmp 0x1006195e
lea eax, [ebp - 0x53]
sub eax, ecx
push eax
push ecx
jmp 0x10061953
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 0x100618e5
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 0x1006194c
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
jmp 0x1006195e
lea eax, [ebp - 0x6b]
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x98]
call fcn.1004d740
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 [0x1025ab50]
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 0x10061a32
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 0x10061a01
movups xmm0, xmmword [ebp - 0xc0]
movups xmmword [ebp - 0x50], xmm0
jmp 0x10061a29
cmp edi, reloc.WS2_32.dll_closesocket
jne 0x10061a16
movups xmm0, xmmword [ebp - 0xc0]
movups xmmword [ebp - 0x40], xmm0
jmp 0x10061a29
cmp edi, reloc.WS2_32.dll_connect
jne 0x10061a29
movups xmm0, xmmword [ebp - 0xc0]
movups xmmword [ebp - 0x30], xmm0
inc edi
cmp edi, dword [ebp - 0x1c0]
jbe 0x100619c0
lea ecx, [ebp - 0x1b8]
call fcn.10080270
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 0x10061a65
sub ecx, edx
lea eax, [ebp - 0x50]
push ecx
push eax
lea ecx, [ebp - 0xc8]
call fcn.1004d740
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.1006d600
add esp, 0xc
lea ecx, [eax + 1]
cmp dword [ebp - 0x1c8], ecx
jb 0x10061f70
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 0x10061b40
mov edx, dword [ebp - 0x1d8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061b36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061edd
push ecx
push edx
call fcn.101d7443
add esp, 8
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0xf
mov byte [ebp - 0x1d8], 0
push 1
push 0x102564a0
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 0x102564a0
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.10061400
mov ecx, dword [ebp - 0xe4]
add esp, 0x18
cmp ecx, 0x10
jb 0x10061d2f
mov edx, dword [ebp - 0xf8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061d25
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061edd
push ecx
push edx
call fcn.101d7443
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 0x10061d84
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061d7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061edd
push ecx
push edx
call fcn.101d7443
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 0x10061dd9
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061dcf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061edd
push ecx
push edx
call fcn.101d7443
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 0x10061e28
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061e1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061edd
push ecx
push edx
call fcn.101d7443
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 0x10061e70
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061e66
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061edd
push ecx
push edx
call fcn.101d7443
add esp, 8
lea ecx, [ebp - 0x1b8]
call fcn.10061f80
mov ecx, dword [ebp - 0xcc]
cmp ecx, 0x10
jb 0x10061eb1
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061ea7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10061edd
push ecx
push edx
call fcn.101d7443
add esp, 8
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0x10
jb 0x10061eed
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10061ee3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10061ee3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.101d7443
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.1005a530
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.101d6fbe
mov esp, ebp
pop ebp
ret
call fcn.1004ce50
int3