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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov word [rsp + 0x30], 0xd951
mov byte [rsp + 0x32], 4
mov r12d, 3
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x38], 0x3020100
mov dword [rsp + 0x3c], 0x7060504
mov dword [rsp + 0x40], 0xb0a0908
mov dword [rsp + 0x44], 0xf0e0d0c
mov dword [rsp + 0x60], 4
mov dword [rsp + 0x64], 0xa
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
mov r13d, 0xf
mov qword [rbp - 0x78], r13
mov eax, dword [0x140005540]
mov word [rsp + 0x70], ax
movzx eax, byte [0x140005542]
mov byte [rsp + 0x72], al
mov byte [rsp + 0x73], 0
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
call fcn.1400021d0
nop
lea rdi, [rsp + 0x70]
lea r15, [rbp - 0x70]
cmp qword [rbp - 0x58], r13
cmova r15, qword [rbp - 0x70]
mov rax, qword [rbp - 0x60]
cmp r12, rax
ja 0x140001e8f
sub rax, r12
lea rsi, [rax + r15]
movsx r14d, byte [rdi]
lea r8, [rsi + 1]
sub r8, r15
mov edx, r14d
mov rcx, r15
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140001e8f
nop word [rax + rax]
mov r8, r12
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140001eee
inc rbx
lea r8, [rsi + 1]
sub r8, rbx
mov edx, r14d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140001e60
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002360
mov rcx, rax
call fcn.140002520
mov r13d, 0xfffffffe
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14000212c
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002126
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002126
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub rbx, r15
cmp rbx, 0xffffffffffffffff
je 0x140001e8f
mov rsi, qword [rbp - 0x70]
mov r14, qword [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp - 0x28], 2
jb 0x140001ea3
mov dword [rbp - 0x10], 0x40
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rbp - 8]
shr rax, 0x1e
cmp eax, 2
jb 0x140001ea3
mov ecx, 0x5f5e100
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400020e7
xor edx, edx
mov r8d, 0x5f5e100
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [rsp + 0x50]
test dil, 0xf
jne 0x140002192
mov ecx, edi
call fcn.140002ad4
mov r15, rax
mov ecx, 0xb0
call fcn.140002ad4
mov rsi, rax
mov r8, rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400016f0
xor r13d, r13d
mov ebx, r13d
test edi, edi
je 0x140001fc4
mov ecx, ebx
lea r8, [r15 + rcx]
lea rdx, [rsp + 0x30]
add rdx, rcx
mov r9, rsi
lea rcx, [rsp + 0x60]
call fcn.1400012e0
add ebx, 0x10
cmp ebx, edi
jb 0x140001fa2
mov rcx, rsi
call fcn.140002a90
mov r12d, r13d
nop
mov edi, dword [rsp + 0x50]
test dil, 0xf
jne 0x14000215c
mov ecx, edi
call fcn.140002ad4
mov r14, rax
mov ecx, dword [rsp + 0x64]
inc ecx
shl ecx, 4
call fcn.140002ad4
mov rsi, rax
mov r8, rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400016f0
mov ebx, r13d
test edi, edi
je 0x140002030
mov ecx, ebx
lea r8, [rcx + r14]
lea rdx, [rcx + r15]
mov r9, rsi
lea rcx, [rsp + 0x60]
call fcn.1400012e0
add ebx, 0x10
cmp ebx, edi
jb 0x140002012
mov rcx, rsi
call fcn.140002a90
mov r15, r14
inc r12d
cmp r12d, 0xa
jl 0x140001fd0
mov rcx, qword [rsp + 0x50]
movzx eax, byte [r14 + rcx - 1]
sub rcx, rax
mov qword [rsp + 0x50], rcx
mov qword [rbp - 0x50], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
lea r9, [rbp - 0x50]
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140002a20
mov rdx, qword [rsp + 0x58]
test rdx, rdx
jne 0x1400020a2
mov r13d, 0xffffffff
jmp 0x140001ea9
mov qword [rsp + 0x20], r13
mov r9, qword [rsp + 0x50]
mov r8, r14
mov rcx, rbx
call fcn.1400029a0
mov dword [rsp + 0x68], r13d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140002960
call qword [rsp + 0x58]
jmp 0x140001ea9
cmp r14, 0xf
jbe 0x140002122
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140002119
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002119
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140002a90
nop
xor eax, eax
jmp 0x14000212f
call fcn.140002a90
nop
mov eax, r13d
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140002a70
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [rbp - 0x48]
call fcn.140001240
nop
mov r8, rax
lea rcx, [rbp - 0x10]
call fcn.140001ac0
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400011d0
lea rdx, [0x1400063e0]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rbp - 0x10]
call fcn.140001240
nop
mov r8, rax
lea rcx, [rbp - 0x48]
call fcn.140001ac0
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400011d0
lea rdx, [0x1400063e0]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3