Function at 0x1400acfa0
Capabilities:
Get common file path
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6a0]
sub rsp, 0x7a0
mov rax, qword [0x1401737a8]
xor rax, rsp
mov qword [rbp + 0x690], rax
mov r12, rcx
cmp qword [0x1401940d0], 0
je 0x1400ad1e4
cmp qword [0x1401940a8], 0
je 0x1400ad1e4
cmp qword [0x1401940e8], 0
je 0x1400ad1e4
cmp qword [0x1401940c0], 0
je 0x1400ad1e4
mov dword [rsp + 0x40], 0x3e8
mov ecx, 0x3e8
call fcn.1400e8270
mov rdi, rax
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov ecx, ntohs
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
je 0x1400ad087
nop dword [rax]
nop word [rax + rax]
add dword [rsp + 0x40], 0x3e8
mov rcx, rdi
call fcn.1400e825c
mov ecx, dword [rsp + 0x40]
call fcn.1400e8270
mov rdi, rax
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov ecx, ntohs
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
jne 0x1400ad050
call fcn.140031be0
lea r8, str.ntkrnlpa.exe
lea rcx, [0x140139a30]
test al, al
cmove r8, rcx
mov edx, 0x104
lea rcx, [rbp + 0x60]
call fcn.1400e86e4
xor r13d, r13d
mov esi, r13d
cmp dword [rdi], r13d
jbe 0x1400ad13b
nop dword [rax]
call fcn.140033570
test rax, rax
je 0x1400ad2e4
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov eax, esi
imul r15, rax, 0x128
lea rdx, [r15 + 0x30]
add rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1400a58a0
nop
lea rdx, [rbp + 0x60]
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1400e3cd4
mov r14, rax
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400ad12c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
test r14, r14
jne 0x1400ad216
inc esi
cmp esi, dword [rdi]
jb 0x1400ad0c0
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
call fcn.1400e825c
mov edx, 0x104
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9, [rbp + 0x60]
lea r8, [rbp + 0x270]
lea rdx, [0x140124790]
lea rcx, [rbp + 0x480]
call fcn.1400358d0
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
lea rcx, [rbp + 0x480]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [0x14018f210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401940a8]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
xor r8d, r8d
xor edx, edx
call rbx
test eax, eax
jne 0x1400ad220
lea rcx, [0x14018f210]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.1400e17a0
lea r11, [rsp + 0x7a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rsi, qword [r15 + rdi + 0x18]
jmp 0x1400ad140
mov rbx, qword [0x1401940e8]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp + 0x60]
mov rdx, rdi
call rbx
test rax, rax
jne 0x1400ad278
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x1401940d0]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call rbx
lea rcx, [0x14018f210]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400ad1e4
mov dword [rsp + 0x50], 0x20
mov dword [rsp + 0x68], 0xe5
mov rbx, qword [0x1401940c0]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r8, [rsp + 0x50]
mov rdx, r12
call rbx
mov rcx, qword [rsp + 0x58]
test eax, eax
cmove rcx, r13
mov qword [rsp + 0x58], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x1401940d0]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call rbx
lea rcx, [0x14018f210]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x58]
jmp 0x1400ad1e6
mov ecx, 0x80004005
call fcn.140032b30
int3