Function at 0x1401b3490
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 [0x140436b28]
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 [0x140440ad4], eax
jg 0x1401b390b
mov rax, qword [r13]
mov rdi, qword [rax + 0x28]
mov rax, qword [0x1403c1610]
mov rcx, rdi
call rax
mov rax, rdi
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x48]
mov rcx, r13
lea rdx, str.windowsComponentEditionPkeyId
call rax
mov edi, eax
test eax, eax
jns 0x1401b3572
mov ecx, eax
call fcn.140079c40
xor r13d, r13d
jmp 0x1401b3809
cmp dword [rsp + 0x50], 1
mov r15, qword [r15 + 0x18]
mov rax, qword [r15]
mov rdi, qword [rax + 0x178]
mov rax, qword [0x1403c1610]
mov rcx, rdi
jne 0x1401b35bf
cmp dword [0x140440d60], 1
cmove rsi, qword [0x140440238]
call rax
mov rax, rdi
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, r15
call rax
mov edi, eax
test eax, eax
js 0x1401b3563
mov esi, 1
jmp 0x1401b35ec
cmp dword [0x140440d60], 1
cmove rsi, qword [0x140440268]
call rax
mov rax, rdi
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, r15
call rax
mov edi, eax
test eax, eax
js 0x1401b3563
xor esi, esi
mov rax, qword [rsp + 0x40]
lea rcx, [rbp - 0x80]
mov r15, qword [rbp - 0x70]
lea r9, [0x140440ae0]
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.1401b519c
xor r13d, r13d
mov edi, eax
test eax, eax
js 0x1401b3802
test r12, r12
je 0x1401b367e
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
jne 0x1401b3651
mov edi, 0x8007000e
mov ecx, edi
jmp 0x1401b3804
cmp dword [0x140440d60], 1
mov r8, r13
mov rdx, qword [rsp + 0x40]
mov r9, rax
cmove r8, qword [0x140440228]
mov rcx, qword [r15 + 0x18]
call fcn.14015f424
mov edi, eax
test eax, eax
js 0x1401b3802
test esi, esi
je 0x1401b37d2
mov r9, qword [rsp + 0x48]
mov rcx, r15
mov r8, qword [rsp + 0x40]
mov rdx, qword [r15 + 0x10]
mov r9, qword [r9]
call fcn.1401b5044
mov edi, eax
test eax, eax
js 0x1401b3802
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
mov rax, r14
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1401b36b4
mov esi, 0x80070057
cmp rax, 0x26
jne 0x1401b36ed
cmp word [rcx], 0x7b
jne 0x1401b36f3
cmp word [rcx + 0x4a], 0x7d
jne 0x1401b36f3
add rcx, 2
lea rdx, [rbp - 0x50]
call fcn.14006f11c
mov edi, eax
test eax, eax
jns 0x1401b36fc
mov ecx, eax
jmp 0x1401b36f7
cmp rax, 0x24
je 0x1401b36da
mov edi, esi
mov ecx, esi
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
test edi, edi
js 0x1401b364a
lea r8, [rsp + 0x58]
lea rdx, str.windowsComponentEditionSkuId
lea rcx, [rbp - 0x80]
call fcn.1400ba40c
test al, al
je 0x1401b3781
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 0x1401b3735
cmp r14, 0x26
jne 0x1401b3769
cmp word [rcx], 0x7b
jne 0x1401b376f
cmp word [rcx + 0x4a], 0x7d
jne 0x1401b376f
add rcx, 2
lea rdx, [rbp - 0x40]
call fcn.14006f11c
mov edx, eax
test eax, eax
jns 0x1401b3778
mov ecx, eax
jmp 0x1401b3773
cmp r14, 0x24
je 0x1401b3756
mov edx, esi
mov ecx, esi
call fcn.140079c40
mov ecx, edx
call fcn.140079c60
jmp 0x1401b378d
movups xmm0, xmmword [0x1403c7430]
movdqu xmmword [rbp - 0x40], xmm0
cmp dword [0x140440d60], 1
mov r8, r13
mov rdx, qword [rsp + 0x40]
mov r9d, 1
cmove r8, qword [0x140440240]
mov rcx, qword [r15 + 0x18]
call fcn.14017ce00
mov edi, eax
test eax, eax
js 0x1401b3802
mov rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x50]
call fcn.14017cfac
mov edi, eax
test eax, eax
js 0x1401b3802
mov rsi, qword [rbp - 0x60]
jmp 0x1401b37d6
mov rsi, qword [rbp - 0x58]
mov rax, qword [rsi]
mov rdi, qword [rax + 0xa8]
mov rax, qword [0x1403c1610]
mov rcx, rdi
call rax
mov rdx, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, rsi
mov rax, rdi
call rax
mov edi, eax
test eax, eax
jns 0x1401b3809
mov ecx, eax
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
mov r15d, 3
mov qword [rsp + 0x70], r13
lea rax, [0x140027518]
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, [0x14000d858]
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 0x1401b3892
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1401b38b5
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, [0x140006698]
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.14037a9a0
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x140440ad4]
call fcn.14037adcc
cmp dword [0x140440ad4], r14d
jne 0x1401b3530
xorps xmm0, xmm0
mov qword [0x140440ae8], rsi
movups xmmword [0x140440af8], xmm0
lea rax, str.metaInfoType
mov dword [0x140440af0], esi
mov qword [0x140440ae0], rax
lea rcx, [0x140440ad4]
xor eax, eax
mov dword [0x140440af4], r14d
mov qword [0x140440b08], rax
lea rax, str.windowsComponentEditionPkeyId
mov qword [0x140440af8], rax
lea rax, str.pkeyId
mov qword [0x140440b00], rax
xor eax, eax
mov qword [0x140440b20], rax
lea rax, str.windowsComponentEditionSkuId
movups xmmword [0x140440b10], xmm0
mov qword [0x140440b10], rax
lea rax, str.skuId
mov qword [0x140440b18], rax
mov dword [0x140440b08], edi
mov dword [0x140440b0c], edi
mov dword [0x140440b20], edi
mov dword [0x140440b24], edi
call fcn.14037ad5c
jmp 0x1401b3530