Function at 0x1401af2c4
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x140425b28]
xor rax, rsp
mov qword [rbp], rax
mov rax, qword [rbp + 0x88]
xor r14d, r14d
mov rdi, qword [rbp + 0x80]
mov r13, rcx
mov qword [rbp - 0x68], r8
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x58], rdx
xor edx, edx
lea r8d, [r14 + 0x48]
mov qword [rbp - 0x70], r9
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
call sub.msvcrt.dll_memset
mov rax, qword gs:[0x58]
lea rsi, [0x1403bb8e0]
mov edx, 4
lea r15d, [r14 + 1]
lea rbx, str.msft:sl_EUL_ACTIVATED_PUBLIC
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140430280], eax
jg 0x1401af71a
mov rax, qword [rdi]
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [0x1403af620]
lea r9, [rsp + 0x50]
mov rdx, rsi
lea r8, [rsp + 0x48]
mov rcx, rdi
call rbx
mov ebx, eax
test eax, eax
jns 0x1401af39c
mov ecx, eax
call fcn.1400790f8
jmp 0x1401af629
cmp dword [rsp + 0x50], r15d
mov r12d, r15d
mov eax, 2
mov r15d, r14d
cmove r12d, eax
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1401af3d4
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403af620]
mov rcx, rbx
call rdi
mov qword [rsp + 0x40], r14
mov rsi, qword [r13 + 0x18]
xor edi, edi
mov rax, qword [rsi]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
test r15d, r15d
jne 0x1401af3fd
cmp dword [0x140430330], 1
cmove rdi, qword [0x14042f7f0]
jmp 0x1401af412
mov r14d, 1
cmp dword [0x140430330], r14d
cmove rdi, qword [0x14042f7f8]
call qword [0x1403af620]
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
call rbx
mov ebx, eax
test eax, eax
js 0x1401af61f
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14015f8e0
mov rax, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov r8, qword [rbp - 0x78]
lea r9, [0x140430290]
mov rdx, qword [rbp - 0x70]
mov qword [rsp + 0x30], rcx
mov rcx, r13
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
call fcn.1401affe8
mov ebx, eax
test eax, eax
js 0x1401af61f
test r14d, r14d
je 0x1401af5da
mov r9, qword [rsp + 0x48]
mov rcx, r13
mov r8, qword [rsp + 0x40]
mov rdx, qword [r13 + 0x10]
mov r9, qword [r9]
call fcn.1401afe94
xor r14d, r14d
mov ebx, eax
test eax, eax
js 0x1401af390
mov rsi, qword [rbp - 0x68]
mov rax, qword [rsi]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [0x1403af620]
mov rdx, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, rsi
call rbx
mov ebx, eax
test eax, eax
js 0x1401af390
mov rax, qword [rsp + 0x48]
or rsi, 0xffffffffffffffff
mov rcx, qword [rax]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1401af4e4
cmp rax, 0x26
jne 0x1401af5a6
cmp word [rcx], 0x7b
je 0x1401af50e
mov edi, 0x80070057
mov ecx, edi
mov ebx, edi
call fcn.1400790f8
jmp 0x1401af534
cmp word [rcx + 0x4a], 0x7d
jne 0x1401af4fe
add rcx, 2
lea rdx, [rbp - 0x50]
call fcn.14006e5fc
mov ebx, eax
test eax, eax
jns 0x1401af52f
mov ecx, eax
call fcn.1400790f8
mov edi, 0x80070057
mov ecx, ebx
call fcn.140079118
test ebx, ebx
js 0x1401af618
lea r8, [rsp + 0x54]
lea rdx, str.msft:sl_EUL_ACTIVATED_PUBLIC
lea rcx, [rsp + 0x58]
call fcn.1400b867c
test al, al
je 0x1401af5cb
movsxd rax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
add rax, rax
mov rcx, qword [rcx + rax*8 + 8]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1401af572
cmp rax, 0x26
jne 0x1401af5b5
cmp word [rcx], 0x7b
jne 0x1401af5bb
cmp word [rcx + 0x4a], 0x7d
jne 0x1401af5bb
add rcx, 2
lea rdx, [rbp - 0x30]
call fcn.14006e5fc
mov edx, eax
test eax, eax
jns 0x1401af5c4
mov ecx, eax
jmp 0x1401af5bf
cmp rax, 0x24
jne 0x1401af4fe
jmp 0x1401af519
cmp rax, 0x24
je 0x1401af593
mov edx, edi
mov ecx, edi
call fcn.1400790f8
mov ecx, edx
call fcn.140079118
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x50]
call fcn.14017854c
jmp 0x1401af601
mov rsi, qword [rbp - 0x58]
mov rax, qword [rsi]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [0x1403af620]
mov rdx, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, rsi
call rbx
xor r14d, r14d
mov ebx, eax
test eax, eax
js 0x1401af390
inc r15d
cmp r15d, r12d
jge 0x1401af629
jmp 0x1401af3b0
mov ecx, ebx
jmp 0x1401af392
mov ecx, eax
call fcn.1400790f8
xor r14d, r14d
mov ecx, ebx
call fcn.140079118
mov r13d, 3
mov qword [rsp + 0x78], r14
lea rax, [0x14003afb8]
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x68]
lea rax, [rbp - 0x50]
mov r15d, 0xb9
lea esi, [r13 + 0x1d]
mov qword [rbp - 0x80], rax
mov r8d, esi
xor r9d, r9d
mov ecx, r15d
call sub.ntdll.dll_NtQuerySystemInformation
lea rax, [0x140021638]
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], r14
xor r9d, r9d
mov qword [rbp - 0x80], rax
mov r8d, esi
mov ecx, r15d
call sub.ntdll.dll_NtQuerySystemInformation
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x1401af6c6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsp + 0x48], r14
lea rax, [0x14001a7b8]
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x68]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], r14
xor r9d, r9d
mov qword [rbp - 0x80], rax
mov r8, rsi
mov rcx, r15
call sub.ntdll.dll_NtQuerySystemInformation
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140368700
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x140430280]
call fcn.140368b2c
cmp dword [0x140430280], 0xffffffff
jne 0x1401af368
or dword [0x1404302a4], 0xffffffff
lea rax, str.metaInfoType
mov qword [0x140430290], rax
lea rcx, [0x140430280]
xor eax, eax
mov qword [0x140430298], r14
mov qword [0x1404302b8], rax
mov qword [0x1404302d0], rax
mov dword [0x1404302b8], r14d
mov dword [0x1404302bc], r15d
mov dword [0x1404302d0], r15d
mov dword [0x1404302d4], 0x18
mov dword [0x1404302a0], r14d
mov qword [0x1404302a8], rsi
mov qword [0x1404302b0], r14
mov qword [0x1404302c0], rbx
mov qword [0x1404302c8], r14
call fcn.140368abc
jmp 0x1401af368