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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rbp + 0x110], rax
movzx r13d, r8b
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0x78], rdx
mov dword [rsp + 0x60], 0
mov dword [reloc.WS2_32.dll_htons], 9
mov qword [rsp + 0x58], 0
add rcx, 0x68
call fcn.1400b0850
test eax, eax
je 0x1400309b0
mov ebx, dword [r14 + 0x70]
lea eax, [rbx + 1]
mov dword [r14 + 0x70], eax
lea rcx, [r14 + 0x68]
call fcn.1400b0200
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400ac540
mov rbx, rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14003098d
call fcn.1400b0810
mov rcx, qword [rbx]
mov qword [rsp + 0x58], rcx
test rcx, rcx
je 0x1400309a0
call fcn.1400b04e0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400309b0
call fcn.1400b0810
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0x40
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rbp - 0x4c], xmm1
movups xmmword [rbp - 0x3c], xmm1
movups xmmword [rbp - 0x2c], xmm1
mov qword [rbp - 0x1c], rax
mov dword [rbp - 0x14], eax
mov dword [rbp - 0x10], 0x11c
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0xc]
call fcn.1400b88a0
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
lea rcx, [rbp - 0x10]
call sub.ntdll.dll_RtlGetVersion
mov ecx, 0x688
call fcn.1400b5680
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140030a30
mov rcx, rax
call fcn.14002f070
nop
mov qword [r12], rax
test rax, rax
je 0x140030a40
lock inc dword [rax + 0x668]
mov dword [rsp + 0x60], 1
mov rsi, qword [r12]
lea rcx, [r14 + 0xf0]
call fcn.1400b0200
mov rdi, rax
lea rcx, [r14 + 0xe8]
call fcn.1400b0200
mov rbx, rax
lea rcx, [rsp + 0x58]
call fcn.1400b0200
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x48], rcx
mov edx, dword [rbp - 0x60]
mov dword [rsp + 0x40], edx
mov rdx, qword [rbp - 0x70]
mov qword [rsp + 0x38], rdx
mov rdx, qword [rbp - 0x48]
mov qword [rsp + 0x30], rdx
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8d, 0xa3d70a
mov rdx, rax
mov rcx, rsi
call fcn.1400ab410
mov r15d, 0xffffffff
test eax, eax
je 0x140030ae8
mov rcx, qword [r12]
mov qword [r12], 0
test rcx, rcx
je 0x140030afa
mov edx, r15d
lock xadd dword [rcx + 0x668], edx
dec edx
cmp edx, 2
jge 0x140030afa
call fcn.1400ab850
jmp 0x140030afa
test r13b, r13b
je 0x140030afa
mov rdx, qword [r14 + 0x78]
mov rcx, qword [r12]
call fcn.1400ac690
mov rbx, qword [r14 + 0x50]
mov rcx, qword [r14 + 0x58]
sub rcx, rbx
sar rcx, 3
mov eax, dword [r14 + 0xe0]
cmp rcx, rax
jae 0x140030b1f
cmp rcx, 0x12
jb 0x140030c48
mov rbx, qword [rbx]
mov qword [rsp + 0x50], rbx
test rbx, rbx
je 0x140030b38
lock inc dword [rbx + 0x668]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [r14 + 0x50]
mov r13, qword [r14 + 0x58]
lea rdi, [rsi + 8]
cmp rdi, r13
je 0x140030b93
nop dword [rax]
mov rax, qword [rdi]
mov rcx, qword [rsi]
mov qword [rsi], rax
test rax, rax
je 0x140030b65
lock inc dword [rax + 0x668]
test rcx, rcx
je 0x140030b81
mov edx, r15d
lock xadd dword [rcx + 0x668], edx
dec edx
cmp edx, 2
jge 0x140030b81
call fcn.1400ab850
add rsi, 8
add rdi, 8
cmp rdi, r13
jne 0x140030b50
mov rbx, qword [rsp + 0x50]
mov rax, qword [r14 + 0x58]
mov rcx, qword [rax - 8]
test rcx, rcx
je 0x140030bbc
mov edx, r15d
lock xadd dword [rcx + 0x668], edx
dec edx
cmp edx, 2
jge 0x140030bb7
call fcn.1400ab850
mov rbx, qword [rsp + 0x50]
add qword [r14 + 0x58], 0xfffffffffffffff8
mov byte [rbx + 0x670], 1
lea rcx, [r14 + 0x30]
call fcn.140025e30
add r14, 0x90
mov rdi, qword [r14]
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [r14 + 8], rax
je 0x140030c85
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 0
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400b5680
mov qword [rax + 0x10], rbx
lock inc dword [rbx + 0x668]
inc qword [r14 + 8]
mov rcx, qword [rdi + 8]
mov qword [rax], rdi
mov qword [rax + 8], rcx
mov qword [rdi + 8], rax
mov qword [rcx], rax
lock xadd dword [rbx + 0x668], r15d
dec r15d
cmp r15d, 2
jge 0x140030c48
mov edx, r15d
mov rcx, qword [rsp + 0x50]
call fcn.1400ab850
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140030c58
call fcn.1400b0810
nop
mov rax, r12
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400b5660
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.list_too_long
call fcn.1400b74d4
int3