Function at 0x40b3f0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60112b
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x7f206c]
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 dword [ebp - 0x70], ecx
mov dword [ebp - 0x68], 0
call fcn.00408150
mov esi, dword [eax + 8]
mov dword [ebp - 0x64], esi
lea ecx, [esi - 8]
cmp ecx, 0x7a1354
je 0x40b447
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x64]
call fcn.00526d20
mov ecx, eax
or ebx, 0xffffffff
mov eax, dword [ecx]
mov dword [ecx], esi
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff8
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x64], eax
cmp ecx, 0x7a1354
je 0x40b48a
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x40b48a
push ecx
call fcn.004a8172
add esp, 4
call fcn.00527660
mov edi, eax
cmp edi, 0x204
jne 0x40b627
push str.2018
lea ecx, [ebp - 0x5c]
call fcn.0041d340
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
mov edi, dword [ebp - 0x5c]
mov eax, 1
push edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
call fcn.00527000
shr eax, 0x1f
xor al, 1
jne 0x40b533
push str.2017
lea ecx, [ebp - 0x60]
call fcn.0041d340
add esp, 4
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x64]
mov esi, dword [ebp - 0x60]
mov eax, 3
push esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
call fcn.00527000
shr eax, 0x1f
xor al, 1
jne 0x40b536
push 0x7abbfc
lea ecx, [ebp - 0x54]
call fcn.0041d340
add esp, 4
mov dword [ebp - 0x6c], 7
lea ecx, [ebp - 0x64]
push dword [ebp - 0x54]
call fcn.00527000
shr eax, 0x1f
xor al, 1
jne 0x40b536
mov byte [ebp - 0x55], 1
jmp 0x40b53a
mov esi, dword [ebp - 0x60]
mov byte [ebp - 0x55], 0
mov ecx, dword [ebp - 0x6c]
test cl, 4
je 0x40b56c
mov edx, dword [ebp - 0x54]
and ecx, 0xfffffffb
add edx, 0xfffffff8
mov dword [ebp - 0x6c], ecx
cmp edx, 0x7a1354
je 0x40b56c
mov eax, ebx
lock xadd dword [edx], eax
test eax, eax
jne 0x40b56c
push edx
call fcn.004a8172
mov ecx, dword [ebp - 0x6c]
add esp, 4
test cl, 2
je 0x40b58f
add esi, 0xfffffff8
cmp esi, 0x7a1354
je 0x40b58f
mov eax, ebx
lock xadd dword [esi], eax
test eax, eax
jne 0x40b58f
push esi
call fcn.004a8172
add esp, 4
add edi, 0xfffffff8
mov dword [ebp - 4], 0
cmp edi, 0x7a1354
je 0x40b5b4
mov eax, ebx
lock xadd dword [edi], eax
test eax, eax
jne 0x40b5b4
push edi
call fcn.004a8172
add esp, 4
cmp byte [ebp - 0x55], 0
je 0x40b7e7
mov esi, dword [ebp - 0x70]
lea ecx, [ebp - 0x54]
push str.toast_win7
mov esi, dword [esi]
call fcn.0041d340
add esp, 4
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004f3360
sub esp, 0x28
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ecx], vtable.std::_Func_impl_no_alloc_class__lambda_4d72bc069aa067508efc28df841f08d8___void___.0
mov dword [ecx + 0x24], ecx
mov ecx, esi
push eax
call fcn.004f7e20
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x40b61f
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x40b61f
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x54]
jmp 0x40ba2d
cmp edi, 0x205
je 0x40b63b
cmp edi, 0x206
jne 0x40b6bc
push str.2017
lea ecx, [ebp - 0x5c]
call fcn.0041d340
mov esi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x64]
add esp, 4
push esi
call fcn.00527000
shr eax, 0x1f
add esi, 0xfffffff8
mov dword [ebp - 0x5c], eax
cmp esi, 0x7a1354
je 0x40b67e
mov ecx, ebx
lock xadd dword [esi], ecx
test ecx, ecx
jne 0x40b67e
push esi
call fcn.004a8172
mov eax, dword [ebp - 0x5c]
add esp, 4
test al, al
je 0x40b6bc
mov esi, dword [ebp - 0x70]
lea ecx, [ebp - 0x54]
push str.toast_win8
mov esi, dword [esi]
call fcn.0041d340
add esp, 4
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004f3360
sub esp, 0x28
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ecx], vtable.std::_Func_impl_no_alloc_class__lambda_04856836a883597ded4069a2808cdc22___void___.0
jmp 0x40b5f3
cmp edi, 0x207
jne 0x40b7e7
lea eax, [ebp - 0x29c]
push eax
call fcn.00527460
mov ecx, 0x45
lea edi, [ebp - 0x188]
mov esi, eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x17c], 0x4a63
jae 0x40b7e7
push str.2022
lea ecx, [ebp - 0x5c]
call fcn.0041d340
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x64]
mov edi, dword [ebp - 0x5c]
mov eax, 8
push edi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], eax
call fcn.00527000
shr eax, 0x1f
xor al, 1
jne 0x40b757
push str.2023
lea ecx, [ebp - 0x54]
call fcn.0041d340
mov esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x64]
add esp, 4
mov dword [ebp - 0x60], 0x18
push esi
call fcn.00527000
shr eax, 0x1f
xor al, 1
jne 0x40b75a
mov byte [ebp - 0x55], al
jmp 0x40b75e
mov esi, dword [ebp - 0x54]
mov byte [ebp - 0x55], 1
test byte [ebp - 0x60], 0x10
je 0x40b782
add esi, 0xfffffff8
cmp esi, 0x7a1354
je 0x40b782
mov eax, ebx
lock xadd dword [esi], eax
test eax, eax
jne 0x40b782
push esi
call fcn.004a8172
add esp, 4
add edi, 0xfffffff8
mov dword [ebp - 4], 0
cmp edi, 0x7a1354
je 0x40b7a7
mov eax, ebx
lock xadd dword [edi], eax
test eax, eax
jne 0x40b7a7
push edi
call fcn.004a8172
add esp, 4
cmp byte [ebp - 0x55], 0
je 0x40b7e7
mov esi, dword [ebp - 0x70]
lea ecx, [ebp - 0x54]
push str.toast_win10_19043
mov esi, dword [esi]
call fcn.0041d340
add esp, 4
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004f3360
sub esp, 0x28
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ecx], vtable.std::_Func_impl_no_alloc_class__lambda_767f6cd0b161dc65bed2d06efdedb06f___void___.0
jmp 0x40b5f3
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004c0240
add esp, 0xc
mov dword [ebp - 0x50], 0x40
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [ebp - 0x44], 0
ja 0x40b817
cmp dword [ebp - 0x48], 0x40000000
jbe 0x40b85a
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40b85a
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x54], 0
test esi, esi
je 0x40b85a
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x40b85a
cmp dword [ebp - 0x54], 0
jne 0x40b8db
push 0x7abbfc
lea ecx, [ebp - 0x5c]
call fcn.0041d340
mov esi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x64]
add esp, 4
push esi
call fcn.00527000
shr eax, 0x1f
add esi, 0xfffffff8
mov dword [ebp - 0x5c], eax
cmp esi, 0x7a1354
je 0x40b89d
mov ecx, ebx
lock xadd dword [esi], ecx
test ecx, ecx
jne 0x40b89d
push esi
call fcn.004a8172
mov eax, dword [ebp - 0x5c]
add esp, 4
test al, al
je 0x40b8db
mov esi, dword [ebp - 0x70]
lea ecx, [ebp - 0x54]
push str.toast_mem_4g
mov esi, dword [esi]
call fcn.0041d340
add esp, 4
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004f3360
sub esp, 0x28
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ecx], vtable.std::_Func_impl_no_alloc_class__lambda_cd18a13d2f297dba8d95f938f025aa74___void___.0
jmp 0x40b5f3
mov esi, dword [ebp - 0x70]
mov ecx, dword [esi]
add ecx, 0x4b8
call fcn.005f73d0
test eax, eax
jg 0x40b926
mov esi, dword [esi]
lea ecx, [ebp - 0x54]
push str.welcome_no_payid
call fcn.0041d340
add esp, 4
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004f3360
sub esp, 0x28
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ecx], vtable.std::_Func_impl_no_alloc_class__lambda_aa1a8cbb1f476b95b0f332d5700a0d18___void___.0
jmp 0x40b5f3
mov ecx, dword [esi]
lea eax, [ebp - 0x68]
add ecx, 0x5d8
push eax
call fcn.005f5890
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xe
call fcn.0040fc40
cmp eax, 0xb
je 0x40b9c6
mov esi, dword [esi]
lea ecx, [ebp - 0x54]
push str.toast_phone_numer
call fcn.0041d340
add esp, 4
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004f3360
sub esp, 0x28
mov byte [ebp - 4], 0x10
mov ecx, esp
push eax
mov dword [ecx], vtable.std::_Func_impl_no_alloc_class__lambda_e018e2333105e9766590e408dc85475e___void___.0
mov dword [ecx + 0x24], ecx
mov ecx, esi
call fcn.004f7e20
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x40b9a6
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x40b9a6
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x40ba2a
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x40ba2a
push ecx
call fcn.004a8172
jmp 0x40ba27
push 0x7f2bd8
call fcn.004a5780
add esp, 4
test eax, eax
je 0x40b9e0
push eax
call fcn.004a5351
add esp, 4
lea eax, [ebp - 0x68]
mov ecx, 0x7f2bd4
push eax
call fcn.00529cb0
push 0x7f2bd8
mov byte [ebp - 4], 0x11
call fcn.004a57a5
add esp, 4
test eax, eax
je 0x40ba0c
push eax
call fcn.004a5351
add esp, 4
mov byte [ebp - 4], 0xe
mov ecx, dword [esi]
call fcn.004f7ad0
push ecx
mov edx, str.click_install
mov ecx, str.welcome
call fcn.004f2160
add esp, 4
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x40ba4b
mov eax, ebx
lock xadd dword [ecx], eax
test eax, eax
jne 0x40ba4b
push ecx
call fcn.004a8172
add esp, 4
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff8
cmp eax, 0x7a1354
je 0x40ba69
lock xadd dword [eax], ebx
test ebx, ebx
jne 0x40ba69
push eax
call fcn.004a8172
add esp, 4
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.004a7e5e
mov esp, ebp
pop ebp
ret