Function at 0x1400e57a0
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4d0]
sub rsp, 0x5d0
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x4c], r15d
mov rcx, qword [rdx]
test rcx, rcx
je 0x1400e591c
mov eax, dword [rcx]
and eax, 0xf
dec eax
cmp eax, 1
ja 0x1400e591c
mov rax, qword [rcx]
shr rax, 8
sub rcx, rax
lea edx, [r15 + 2]
mov rcx, qword [rcx]
call fcn.14004ae80
mov rbx, rax
test rax, rax
je 0x1400e591c
mov rax, qword [rdi]
mov qword [rbx + 0x18], rax
mov rcx, qword [rax + 0x20]
test rcx, rcx
je 0x1400e583e
mov rax, qword [rcx + 0x28]
mov qword [rax + 0x30], rbx
mov qword [rbx + 0x28], rax
mov qword [rcx + 0x28], rbx
jmp 0x1400e5846
mov qword [rax + 0x20], rbx
mov qword [rbx + 0x28], rbx
mov qword [rsp + 0x40], rbx
mov ecx, dword [rbx]
mov edx, ecx
and edx, 0xf
lea eax, [rdx - 2]
test eax, 0xfffffffb
je 0x1400e5861
cmp edx, 7
jne 0x1400e5885
lea rcx, [rbx + 8]
mov qword [rsp + 0x20], 5
lea r9, str.GROUP
mov r8d, 0x20
mov rdx, rbx
call fcn.140060ea0
mov ecx, dword [rbx]
and ecx, 0xf
cmp ecx, 2
je 0x1400e5896
cmp ecx, 7
jne 0x1400e5924
mov rax, qword [rbx]
shr rax, 8
mov rcx, rbx
sub rcx, rax
mov rcx, qword [rcx]
call fcn.14004ae10
mov rdi, rax
test rax, rax
je 0x1400e5924
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400e58ce
mov rax, qword [rcx + 0x18]
mov qword [rax + 0x20], rdi
mov qword [rdi + 0x18], rax
mov qword [rcx + 0x18], rdi
jmp 0x1400e58d6
mov qword [rbx + 0x38], rdi
mov qword [rax + 0x18], rdi
lea rcx, [rdi + 8]
mov qword [rsp + 0x20], 4
lea r9, [0x1401fbf98]
mov r8d, 0x20
mov rdx, rdi
call fcn.140060ea0
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x20], 0xa
lea r9, str.SYSTEMINFO
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rdi
call fcn.140060ea0
jmp 0x1400e5924
mov rbx, r15
mov qword [rsp + 0x40], rbx
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], 7
lea r13, [0x1401eb910]
mov qword [rbp + 0x90], r13
mov word [rbp + 0x70], r15w
lea r8, [rbp + 0x70]
mov edx, 0xf000014
mov rcx, r14
call fcn.1400ace00
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 8
cmovae rdx, qword [rbp + 0x70]
mov r8, rdx
cmp word [rdx], 0
je 0x1400e597f
add r8, 2
cmp word [r8], 0
jne 0x1400e5974
sub r8, rdx
sar r8, 1
lea rcx, [rbp + 0xc8]
call fcn.14004b980
mov rsi, rax
mov dword [rsp + 0x4c], 1
cmp qword [rax + 0x18], 0x10
jb 0x1400e59a6
mov rsi, qword [rax]
test rbx, rbx
je 0x1400e5a53
mov eax, dword [rbx]
and eax, 0xf
cmp eax, 2
je 0x1400e59c2
cmp eax, 7
jne 0x1400e5a53
mov rax, qword [rbx]
shr rax, 8
mov rcx, rbx
sub rcx, rax
mov rcx, qword [rcx]
call fcn.14004ae10
mov rdi, rax
test rax, rax
je 0x1400e5a53
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400e59fa
mov rax, qword [rcx + 0x18]
mov qword [rax + 0x20], rdi
mov qword [rdi + 0x18], rax
mov qword [rcx + 0x18], rdi
jmp 0x1400e5a02
mov qword [rbx + 0x38], rdi
mov qword [rax + 0x18], rdi
lea rcx, [rdi + 8]
mov qword [rsp + 0x20], 4
lea r9, str.TEXT
mov r8d, 0x20
mov rdx, rdi
call fcn.140060ea0
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x1400e5a30
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rdi
call fcn.140060ea0
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x4c], eax
mov rdx, qword [rbp + 0xe0]
cmp rdx, 0x10
jb 0x1400e5aa3
inc rdx
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e5a9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400e5a9e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007ea0
mov qword [rbp + 0xd8], r15
mov qword [rbp + 0xe0], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xc8], 0
mov byte [rsp + 0x20], 1
mov r9d, 0x20019
lea r8, [rsp + 0x78]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call fcn.1401a5450
test al, al
je 0x1400e5baf
mov rbx, qword [rsp + 0x78]
mov dword [rsp + 0x48], 0x100
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, [0x1402032d0]
mov rcx, rbx
call qword [0x14024f060]
test eax, eax
je 0x1400e5b29
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400e5b94
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
jbe 0x1400e5b41
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400e5b94
cmp dword [rsp + 0x48], 0x100
jbe 0x1400e5b58
mov ecx, 0x7a
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400e5b94
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x340]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, [0x1402032d0]
mov rcx, rbx
call qword [0x14024f060]
mov ebx, eax
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x1400e5b9c
mov word [rbp + 0x340], r15w
mov rcx, qword [rsp + 0x78]
call qword [0x14024f048]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp r15w, word [rbp + 0x340]
jne 0x1400e5bd2
lea r8, str.Windows
mov edx, 0x80
lea rcx, [rbp + 0x340]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x60], r13
mov word [rbp - 0x80], r15w
lea r8, [rbp - 0x80]
mov edx, 0xf000005
mov rcx, r14
call fcn.1400ace00
lea r9, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r9, qword [rbp - 0x80]
lea r8, [rbp + 0x340]
lea rdx, str.OSNAME
lea rcx, [rsp + 0x40]
call fcn.1400e3fc0
nop
lea r12, [fcn.140007ea0]
cmp qword [rbp - 0x68], 8
jb 0x1400e5c4b
mov rax, qword [rbp - 0x60]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp - 0x80]
cmp rax, r12
jne 0x1400e5c45
call fcn.1401c5244
jmp 0x1400e5c4b
call qword [case.0x14003c8e9.0]
mov dword [rbp + 0x220], 0x114
lea rcx, [rbp + 0x220]
call qword [case.0x1401ba071.235]
test eax, eax
jne 0x1400e5d1d
lea rax, [rbp + 0x234]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x22c]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x228]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0x224]
lea r8, str._u._u._u__s
mov rdx, 0xffffffffffffffff
lea rcx, [rbp + 0x340]
call fcn.1400ecf00
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x38], r13
mov word [rbp - 0x58], r15w
lea r8, [rbp - 0x58]
mov edx, 0xf000006
mov rcx, r14
call fcn.1400ace00
lea r9, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae r9, qword [rbp - 0x58]
lea r8, [rbp + 0x340]
lea rdx, str.OSVERSION
lea rcx, [rsp + 0x40]
call fcn.1400e3fc0
nop
cmp qword [rbp - 0x40], 8
jb 0x1400e5d1d
mov rax, qword [rbp - 0x38]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp - 0x58]
cmp rax, r12
jne 0x1400e5d17
call fcn.1401c5244
jmp 0x1400e5d1d
call qword [case.0x14003c8e9.0]
mov dword [rsp + 0x20], 0xf000007
lea r9, str.64_bit
lea r8, str.OSTYPE
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400e3af0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xb4], xmm0
mov dword [rbp + 0xb0], reloc.WS2_32.dll_sendto
lea rcx, str.comctl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400e5e26
xor dil, dil
lea rdx, str.DllGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400e5ed7
lea rdx, str.InitCommonControlsEx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400e5dc0
mov dword [rbp + 0xb4], 4
mov dword [rbp + 0xb8], 0x46
mov dword [rbp + 0xc0], 1
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test dil, dil
je 0x1400e5e26
mov eax, dword [rbp + 0xbc]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0xb8]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0xb4]
lea r8, str._d._d._d
mov rdx, 0xffffffffffffffff
lea rcx, [rbp + 0x440]
call fcn.1400ecf70
mov dword [rsp + 0x20], 0xf000008
lea r9, [rbp + 0x440]
lea r8, str.COMCTLVERSION
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400e3af0
mov word [rbp + 0x340], r15w
mov byte [rsp + 0x20], 1
mov r9d, 0x20019
lea r8, [rsp + 0x58]
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
call fcn.1401a5450
test al, al
je 0x1400e6014
mov qword [rsp + 0x20], r15
mov r9d, 0x80
lea r8, [rbp + 0x340]
lea rdx, str.ProcessorNameString
mov rcx, qword [rsp + 0x58]
call fcn.1401a57d0
movzx esi, al
test al, al
jne 0x1400e5ea9
mov qword [rsp + 0x20], r15
mov r9d, 0x80
lea r8, [rbp + 0x340]
lea rdx, str.Identifier
mov rcx, qword [rsp + 0x58]
call fcn.1401a57d0
movzx esi, al
xor edx, edx
lea rcx, [rbp + 0x340]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rdi, rax
lea rbx, [rbp + 0x340]
movzx ecx, word [rbx]
cmp cx, 0x20
je 0x1400e5ed1
cmp cx, 9
jne 0x1400e5efa
add rbx, 2
jmp 0x1400e5ec2
lea rcx, [rbp + 0xb0]
call qword [case.0x14003c8e9.0]
test eax, eax
jne 0x1400e5dc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400e5dce
lea rax, [rbp + 0x340]
cmp rbx, rax
je 0x1400e5f3a
mov r8, rdi
sub r8, rbx
sar r8, 1
lea r8, [r8*2 + 2]
mov rdx, rbx
lea rcx, [rbp + 0x340]
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbp + 0x340]
sub rbx, rax
sar rbx, 1
neg rbx
lea rdi, [rdi + rbx*2]
lea r8, [rsp + 0x68]
lea rdx, str.MHz
mov rcx, qword [rsp + 0x58]
call fcn.1401a5610
test al, al
je 0x1400e5f8a
lea rcx, [rbp + 0x340]
mov rax, rdi
sub rax, rcx
sar rax, 1
mov edx, 0x80
sub rdx, rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
lea r9, str.___u_MHz_
mov r8, 0xffffffffffffffff
mov rcx, rdi
call fcn.1400138a0
mov rcx, qword [rsp + 0x58]
call qword [0x14024f048]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test sil, sil
je 0x1400e6014
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x10], r13
mov word [rbp - 0x30], r15w
lea r8, [rbp - 0x30]
mov edx, 0xf000009
mov rcx, r14
call fcn.1400ace00
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r9, qword [rbp - 0x30]
lea r8, [rbp + 0x340]
lea rdx, str.PROCESSOR
lea rcx, [rsp + 0x40]
call fcn.1400e3fc0
nop
cmp qword [rbp - 0x18], 8
jb 0x1400e6014
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp - 0x30]
cmp rax, r12
jne 0x1400e600e
call fcn.1401c5244
jmp 0x1400e6014
call qword [case.0x14003c8e9.0]
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
mov dword [rbp + 0xf0], 0x40
lea rcx, [rbp + 0xf0]
call qword [case.0x1401ba071.232]
test eax, eax
je 0x1400e6057
mov rax, qword [rbp + 0xf8]
jmp 0x1400e606b
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov rax, qword [rbp + 0x1e8]
lea r9, [rax + 0x100000]
shr r9, 0x14
lea r8, str._u_MB
mov rdx, 0xffffffffffffffff
lea rcx, [rbp + 0x440]
call fcn.1400ecf70
mov dword [rsp + 0x20], 0xf00000a
lea r9, [rbp + 0x440]
lea r8, str.MEMORY
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.1400e3af0
mov qword [rsp + 0x70], r15
lea rcx, [rsp + 0x70]
call fcn.140043fe0
test al, al
je 0x1400e6108
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x70]
lea r8, str.P_u_R_u
mov rdx, 0xffffffffffffffff
lea rcx, [rbp + 0x440]
call fcn.1400ecf70
xor r9d, r9d
lea r8, [rbp + 0x440]
lea rdx, str.HIPS
lea rcx, [rsp + 0x40]
call fcn.1400e3c60
mov qword [rsp + 0x60], r15
lea r8, [rsp + 0x60]
mov edx, 0x65
xor ecx, ecx
call fcn.1401bf750
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test eax, eax
jne 0x1400e6183
mov rdx, qword [rcx + 0x20]
test rdx, rdx
je 0x1400e617e
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400e6140
inc rax
cmp rax, 0x80
jbe 0x1400e615c
mov ebx, reloc.msi.dll_MsiRecordGetFieldCount
jmp 0x1400e6183
lfence
mov ebx, r15d
mov r8, qword [rcx + 0x20]
mov edx, 0x80
lea rcx, [rbp + 0x340]
call fcn.1401aec20
mov rcx, qword [rsp + 0x60]
jmp 0x1400e6183
mov ebx, 0x648
test rcx, rcx
je 0x1400e618d
call fcn.1401bf760
test ebx, ebx
jne 0x1400e6203
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], 7
mov qword [rbp + 0x18], r13
mov word [rbp - 8], r15w
lea r8, [rbp - 8]
mov edx, 0xf00000f
mov rcx, r14
call fcn.1400ace00
lea r9, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae r9, qword [rbp - 8]
lea r8, [rbp + 0x340]
lea rdx, str.COMPUTERDESCRIPTION
lea rcx, [rsp + 0x40]
call fcn.1400e3fc0
nop
cmp qword [rbp + 0x10], 8
jb 0x1400e6203
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp - 8]
cmp rax, r12
jne 0x1400e61fd
call fcn.1401c5244
jmp 0x1400e6203
call qword [case.0x14003c8e9.0]
mov ebx, r15d
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x1400e6293
lea r8, [rbp + 0x134]
cmp eax, 1
jne 0x1400e6232
mov eax, dword [rbp + 0x130]
add eax, dword [rbp + 0x184]
jmp 0x1400e624a
cmp eax, 2
mov eax, dword [rbp + 0x130]
jne 0x1400e624a
add eax, dword [rbp + 0x1d8]
lea r8, [rbp + 0x188]
neg eax
mov dword [rbp + 0x130], eax
mov dword [rsp + 0x6c], eax
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r8 + rax*2], bx
jne 0x1400e6260
inc rax
cmp rax, 0x80
ja 0x1400e63a3
lfence
mov edx, 0x80
lea rcx, [rbp + 0x340]
call fcn.1401aec20
mov ebx, dword [rsp + 0x6c]
jmp 0x1400e62a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400e63a3
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x40], r13
mov word [rbp + 0x20], r15w
lea r8, [rbp + 0x20]
mov edx, 0xf000011
mov rcx, r14
call fcn.1400ace00
lea r9, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae r9, qword [rbp + 0x20]
lea r8, [rbp + 0x340]
lea rdx, str.TIMEZONENAME
lea rcx, [rsp + 0x40]
call fcn.1400e3fc0
nop
cmp qword [rbp + 0x38], 8
jb 0x1400e6313
mov rax, qword [rbp + 0x40]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp + 0x20]
cmp rax, r12
jne 0x1400e630d
call fcn.1401c5244
jmp 0x1400e6313
call qword [case.0x14003c8e9.0]
mov r9d, ebx
lea r8, str._d_min
mov rdx, 0xffffffffffffffff
lea rcx, [rbp + 0x340]
call fcn.1400ecf00
mov qword [rbp + 0x58], r15
mov qword [rbp + 0x60], 7
mov qword [rbp + 0x68], r13
mov word [rbp + 0x48], r15w
lea r8, [rbp + 0x48]
mov edx, 0xf000010
mov rcx, r14
call fcn.1400ace00
lea r9, [rbp + 0x48]
cmp qword [rbp + 0x60], 8
cmovae r9, qword [rbp + 0x48]
lea r8, [rbp + 0x340]
lea rdx, str.TIMEZONEOFFSET
lea rcx, [rsp + 0x40]
call fcn.1400e3fc0
nop
cmp qword [rbp + 0x60], 8
jb 0x1400e63a3
mov rax, qword [rbp + 0x68]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp + 0x48]
cmp rax, r12
jne 0x1400e639c
call fcn.1401c5244
jmp 0x1400e63a3
call qword [case.0x14003c8e9.0]
nop
cmp qword [rbp + 0x88], 8
jb 0x1400e63ce
mov rax, qword [rbp + 0x90]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp + 0x70]
cmp rax, r12
jne 0x1400e63c8
call fcn.1401c5244
jmp 0x1400e63ce
call qword [case.0x14003c8e9.0]
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.1401c5190
mov rbx, qword [rsp + 0x620]
add rsp, 0x5d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret