Function at 0x1400afca0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
xor r13d, r13d
lea rcx, [rbp]
mov r12d, r8d
mov qword [rbp - 0x58], r13
mov esi, edx
mov qword [rsp + 0x38], r13
mov ebx, r13d
mov qword [rsp + 0x40], r13
lea r8d, [r13 + 0x54]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [rsp + 0x48], r13
mov r15, r9
mov edi, r13d
call sub.msvcrt.dll_memset
test esi, esi
jne 0x1400afd22
mov edx, 0x800004a6
xor r9d, r9d
mov qword [rsp + 0x20], r13
lea r8, [0x1403e0c24]
lea ecx, [r9 + 2]
call fcn.14004eeb8
mov r14d, r13d
jmp 0x1400b0205
mov r14, qword [0x14045c9a0]
mov rax, qword [r14]
mov rsi, qword [rax + 0xb0]
mov rax, qword [0x1403d25b8]
mov rcx, rsi
call rax
mov rax, rsi
lea r8, [rbp + 0xa0]
xor edx, edx
mov rcx, r14
call rax
mov r14d, eax
test eax, eax
js 0x1400b01fe
cmp dword [rbp + 0xa0], r13d
je 0x1400afd6b
mov edx, 0x800004a7
jmp 0x1400afd02
lea r8, [rbp - 0x58]
mov edx, r12d
mov rcx, r15
call fcn.14007820c
mov r14d, eax
test eax, eax
jns 0x1400afd91
mov ecx, eax
call fcn.14007ac40
mov rdi, qword [rbp - 0x58]
jmp 0x1400b0205
mov rdi, qword [rbp - 0x58]
mov rax, qword [rdi]
mov rsi, qword [rax + 0x18]
mov rax, qword [0x1403d25b8]
mov rcx, rsi
call rax
mov rax, rsi
lea rdx, [rbp + 0xa8]
mov rcx, rdi
call rax
mov r14d, eax
test eax, eax
js 0x1400b01fe
mov eax, dword [rbp + 0xa8]
test eax, eax
je 0x1400afd1a
mov r15d, r13d
mov r12d, 0x80070002
mov rax, qword [rdi]
mov rsi, qword [rax + 0x20]
mov rax, qword [0x1403d25b8]
mov rcx, rsi
call rax
mov rax, rsi
lea r8, [rsp + 0x50]
mov edx, r15d
mov rcx, rdi
call rax
mov r14d, eax
test eax, eax
js 0x1400b01fe
cmp dword [rsp + 0x58], 4
jne 0x1400b01e1
cmp qword [rsp + 0x50], r13
je 0x1400b01e1
test rbx, rbx
je 0x1400afe42
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rax, qword [0x1403d25b8]
mov rcx, rsi
call rax
mov rax, rsi
mov rcx, rbx
call rax
mov qword [rsp + 0x30], r13
mov edx, dword [rsp + 0x68]
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.14007820c
mov r14d, eax
test eax, eax
js 0x1400b01f0
lea rax, [0x14003679c]
mov qword [rsp + 0x70], 3
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
lea rax, [rbp - 0x60]
xor r9d, r9d
mov qword [rbp - 0x80], rax
mov ecx, 0xb9
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x78], rax
lea rax, [rbp]
lea r8d, [r9 + 0x2c]
mov qword [rbp - 0x70], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp - 0x60]
mov rbx, qword [rsp + 0x30]
cmp ecx, 0xc004f012
je 0x1400b01d0
mov r14d, ecx
test ecx, ecx
js 0x1400b01f2
mov rax, qword [rbx]
mov rsi, qword [rax + 0x30]
mov rax, qword [0x1403d25b8]
mov rcx, rsi
call rax
mov rax, rsi
lea r8, [rbp - 0x28]
lea rdx, [0x1403e0b2c]
mov rcx, rbx
call rax
mov r14d, eax
test eax, eax
js 0x1400b01fe
cmp dword [rbp - 0x20], 1
jne 0x1400b01e1
lea rax, [0x14003611c]
mov qword [rsp + 0x70], 3
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
lea rax, [rbp - 0x5c]
xor r9d, r9d
mov qword [rbp - 0x80], rax
mov ecx, 0xb9
lea rax, [rbp]
mov qword [rbp - 0x78], rax
mov eax, dword [rbp - 0x18]
lea r8d, [r9 + 0x2c]
mov dword [rbp - 0x70], eax
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rbp - 0x5c]
test r14d, r14d
js 0x1400b01eb
cmp dword [rbp - 0x18], r13d
jl 0x1400b01d0
mov rax, qword [rbx]
mov rsi, qword [rax + 0x30]
mov rax, qword [0x1403d25b8]
mov rcx, rsi
call rax
mov rax, rsi
lea r8, [rbp - 0x48]
lea rdx, [0x1403dce5c]
mov rcx, rbx
call rax
cmp eax, r12d
je 0x1400b01d0
mov r14d, eax
test eax, eax
js 0x1400b01fe
cmp dword [rbp - 0x40], 4
jne 0x1400b01e1
cmp dword [rbp - 0x30], r13d
je 0x1400b01e1
cmp qword [rbp - 0x38], r13
je 0x1400b01e1
mov rax, qword [rbx]
mov rsi, qword [rax + 0x30]
mov rax, qword [0x1403d25b8]
mov rcx, rsi
call rax
mov rax, rsi
lea r8, [rsp + 0x50]
lea rdx, str.ServerPropAvsProps
mov rcx, rbx
call rax
cmp eax, r12d
je 0x1400b01d0
mov r14d, eax
test eax, eax
js 0x1400b01fe
cmp dword [rsp + 0x58], 2
jne 0x1400b01e1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400b01e1
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x1400b0032
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ace8
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x38], r13
lea rdx, [rsp + 0x38]
call fcn.14007ab14
mov r14d, eax
test eax, eax
js 0x1400b01fe
mov rax, qword [rbx]
mov rsi, qword [rax + 0x30]
mov rax, qword [0x1403d25b8]
mov rcx, rsi
call rax
mov rax, rsi
lea r8, [rsp + 0x50]
lea rdx, str.ServerPropAvsSignature
mov rcx, rbx
call rax
cmp eax, r12d
je 0x1400b01d0
mov r14d, eax
test eax, eax
js 0x1400b01fe
cmp dword [rsp + 0x58], 2
jne 0x1400b01e1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400b01e1
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x1400b00cb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ace8
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x40], r13
lea rdx, [rsp + 0x40]
call fcn.14007ab14
mov r14d, eax
test eax, eax
js 0x1400b01fe
mov rax, qword [rbx]
mov rsi, qword [rax + 0x30]
mov rax, qword [0x1403d25b8]
mov rcx, rsi
call rax
mov rax, rsi
lea r8, [rsp + 0x50]
lea rdx, str.ServerPropAvsKey
mov rcx, rbx
call rax
cmp eax, r12d
je 0x1400b01d0
mov r14d, eax
test eax, eax
js 0x1400b01fe
cmp dword [rsp + 0x58], 2
jne 0x1400b01e1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400b01e1
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x1400b0164
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ace8
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], r13
lea rdx, [rsp + 0x48]
call fcn.14007ab14
mov r14d, eax
test eax, eax
js 0x1400b01fe
lea rax, [0x140035a9c]
mov qword [rsp + 0x70], 3
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
lea rax, [rbp - 0x50]
xor r9d, r9d
mov qword [rbp - 0x80], rax
mov ecx, 0xb9
lea rax, [rbp]
mov qword [rbp - 0x78], rax
mov rax, qword [rbp - 0x38]
lea r8d, [r9 + 0x2c]
mov qword [rbp - 0x70], rax
mov eax, dword [rbp - 0x30]
mov dword [rbp - 0x68], eax
call sub.ntdll.dll_NtQuerySystemInformation
lea rdx, [rsp + 0x38]
lea rcx, [rbp]
call fcn.140062314
inc r15d
cmp r15d, dword [rbp + 0xa8]
jae 0x1400b0205
jmp 0x1400afdd9
mov ecx, 0x8007000d
mov r14d, ecx
jmp 0x1400b0200
mov ecx, r14d
jmp 0x1400b0200
mov ecx, eax
call fcn.14007ac40
mov rbx, qword [rsp + 0x30]
jmp 0x1400b0205
mov ecx, eax
call fcn.14007ac40
mov ecx, r14d
call fcn.14007ace8
xor r9d, r9d
mov qword [rsp + 0x70], 3
lea rax, [0x140034d9c]
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x70]
lea rax, [rsp + 0x38]
mov ecx, 0xb9
lea r8d, [r9 + 0x2c]
mov qword [rbp - 0x78], rax
call sub.ntdll.dll_NtQuerySystemInformation
test rbx, rbx
je 0x1400b0265
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
mov rax, qword [0x1403d25b8]
mov rcx, rsi
call rax
mov rax, rsi
mov rcx, rbx
call rax
test rdi, rdi
je 0x1400b0285
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403d25b8]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rdi
call rax
mov rbx, qword [rsp + 0x1b0]
mov eax, r14d
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret