Function at 0x1401ae3d4
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 + 0x90]
xor esi, esi
mov r13, qword [rbp + 0x80]
mov r15, rcx
mov r12, qword [rbp + 0x88]
mov ebx, esi
mov qword [rbp - 0x60], r8
mov qword [rbp - 0x58], rdx
lea r8d, [rsi + 0x48]
mov qword [rbp - 0x70], rcx
xor edx, edx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x58], r9
mov qword [rbp - 0x68], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
call sub.msvcrt.dll_memset
mov rax, qword gs:[0x58]
lea edi, [rsi + 1]
mov edx, 4
or r14, 0xffffffffffffffff
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1404300a4], eax
jg 0x1401ae839
mov rax, qword [r13]
mov rdi, qword [rax + 0x28]
mov rcx, rdi
call qword [0x1403af620]
lea r9, [rsp + 0x50]
mov rcx, r13
lea r8, [rsp + 0x48]
lea rdx, str.windowsComponentEditionPkeyId
call rdi
mov edi, eax
test eax, eax
jns 0x1401ae4b0
mov ecx, eax
call fcn.1400790f8
xor r13d, r13d
jmp 0x1401ae738
cmp dword [rsp + 0x50], 1
mov r15, qword [r15 + 0x18]
mov rax, qword [r15]
mov rdi, qword [rax + 0x178]
mov rcx, rdi
jne 0x1401ae4f7
cmp dword [0x140430330], 1
cmove rsi, qword [0x14042f7f8]
call qword [0x1403af620]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, r15
call rdi
mov edi, eax
test eax, eax
js 0x1401ae4a1
mov esi, 1
jmp 0x1401ae521
cmp dword [0x140430330], 1
cmove rsi, qword [0x14042f828]
call qword [0x1403af620]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, r15
call rdi
mov edi, eax
test eax, eax
js 0x1401ae4a1
xor esi, esi
mov rax, qword [rsp + 0x40]
lea rcx, [rbp - 0x80]
mov r15, qword [rbp - 0x70]
lea r9, [0x1404300b0]
mov rdx, qword [rsp + 0x58]
mov r8, r13
mov qword [rsp + 0x30], rcx
mov rcx, r15
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
call fcn.1401affe8
xor r13d, r13d
mov edi, eax
test eax, eax
js 0x1401ae731
test r12, r12
je 0x1401ae5b3
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
jne 0x1401ae586
mov edi, 0x8007000e
mov ecx, edi
jmp 0x1401ae733
cmp dword [0x140430330], 1
mov r8, r13
mov rdx, qword [rsp + 0x40]
mov r9, rax
cmove r8, qword [0x14042f7e8]
mov rcx, qword [r15 + 0x18]
call fcn.14015acfc
mov edi, eax
test eax, eax
js 0x1401ae731
test esi, esi
je 0x1401ae707
mov r9, qword [rsp + 0x48]
mov rcx, r15
mov r8, qword [rsp + 0x40]
mov rdx, qword [r15 + 0x10]
mov r9, qword [r9]
call fcn.1401afe94
mov edi, eax
test eax, eax
js 0x1401ae731
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
mov rax, r14
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1401ae5e9
mov esi, 0x80070057
cmp rax, 0x26
jne 0x1401ae622
cmp word [rcx], 0x7b
jne 0x1401ae628
cmp word [rcx + 0x4a], 0x7d
jne 0x1401ae628
add rcx, 2
lea rdx, [rbp - 0x50]
call fcn.14006e5fc
mov edi, eax
test eax, eax
jns 0x1401ae631
mov ecx, eax
jmp 0x1401ae62c
cmp rax, 0x24
je 0x1401ae60f
mov edi, esi
mov ecx, esi
call fcn.1400790f8
mov ecx, edi
call fcn.140079118
test edi, edi
js 0x1401ae57f
lea r8, [rsp + 0x58]
lea rdx, str.windowsComponentEditionSkuId
lea rcx, [rbp - 0x80]
call fcn.1400b867c
test al, al
je 0x1401ae6b6
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rbp - 0x78]
add rax, rax
mov rcx, qword [rcx + rax*8 + 8]
inc r14
cmp word [rcx + r14*2], r13w
jne 0x1401ae66a
cmp r14, 0x26
jne 0x1401ae69e
cmp word [rcx], 0x7b
jne 0x1401ae6a4
cmp word [rcx + 0x4a], 0x7d
jne 0x1401ae6a4
add rcx, 2
lea rdx, [rbp - 0x40]
call fcn.14006e5fc
mov edx, eax
test eax, eax
jns 0x1401ae6ad
mov ecx, eax
jmp 0x1401ae6a8
cmp r14, 0x24
je 0x1401ae68b
mov edx, esi
mov ecx, esi
call fcn.1400790f8
mov ecx, edx
call fcn.140079118
jmp 0x1401ae6c2
movups xmm0, xmmword [0x1403b53c0]
movdqu xmmword [rbp - 0x40], xmm0
cmp dword [0x140430330], 1
mov r8, r13
mov rdx, qword [rsp + 0x40]
mov r9d, 1
cmove r8, qword [0x14042f800]
mov rcx, qword [r15 + 0x18]
call fcn.1401783b8
mov edi, eax
test eax, eax
js 0x1401ae731
mov rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x50]
call fcn.14017854c
mov edi, eax
test eax, eax
js 0x1401ae731
mov rsi, qword [rbp - 0x60]
jmp 0x1401ae70b
mov rsi, qword [rbp - 0x58]
mov rax, qword [rsi]
mov rdi, qword [rax + 0xa8]
mov rcx, rdi
call qword [0x1403af620]
mov rdx, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, rsi
call rdi
mov edi, eax
test eax, eax
jns 0x1401ae738
mov ecx, eax
call fcn.1400790f8
mov ecx, edi
call fcn.140079118
mov r15d, 3
mov qword [rsp + 0x70], r13
lea rax, [0x140033df8]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
lea rax, [rbp - 0x50]
mov r14d, 0xb9
lea esi, [r15 + 0x1d]
mov qword [rsp + 0x78], rax
mov r8d, esi
xor r9d, r9d
mov ecx, r14d
call sub.ntdll.dll_NtQuerySystemInformation
lea rax, [0x140019438]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], r13
xor r9d, r9d
mov qword [rsp + 0x78], rax
mov r8d, esi
mov ecx, r14d
call sub.ntdll.dll_NtQuerySystemInformation
test rbx, rbx
je 0x1401ae7c1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1401ae7e4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsp + 0x48], r13
lea rax, [0x140011f38]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], r13
xor r9d, r9d
mov qword [rsp + 0x78], rax
mov r8, rsi
mov rcx, r14
call sub.ntdll.dll_NtQuerySystemInformation
mov eax, edi
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, [0x1404300a4]
call fcn.140368b2c
cmp dword [0x1404300a4], r14d
jne 0x1401ae474
lea rax, str.metaInfoType
mov qword [0x1404300b8], rsi
mov qword [0x1404300b0], rax
lea rcx, [0x1404300a4]
xor eax, eax
mov dword [0x1404300c0], esi
mov qword [0x1404300d8], rax
lea rax, str.windowsComponentEditionPkeyId
mov qword [0x1404300c8], rax
lea rax, str.pkeyId
mov qword [0x1404300d0], rax
xor eax, eax
mov qword [0x1404300f0], rax
lea rax, str.windowsComponentEditionSkuId
mov qword [0x1404300e0], rax
lea rax, str.skuId
mov qword [0x1404300e8], rax
mov dword [0x1404300c4], r14d
mov dword [0x1404300d8], edi
mov dword [0x1404300dc], edi
mov dword [0x1404300f0], edi
mov dword [0x1404300f4], edi
call fcn.140368abc
jmp 0x1401ae474