Function at 0x1401b36a0
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 [0x14042eb28]
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
xorps xmm0, xmm0
mov qword [rbp - 0x10], rsi
movdqa xmmword [rbp - 0x20], xmm0
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140438fb4], eax
jg 0x1401b3b11
mov rax, qword [r13]
mov rdi, qword [rax + 0x28]
mov rcx, rdi
call qword [0x1403b8660]
lea r9, [rsp + 0x50]
mov rcx, r13
lea r8, [rsp + 0x48]
lea rdx, str.windowsComponentEditionPkeyId
call rdi
mov edi, eax
test eax, eax
jns 0x1401b3788
mov ecx, eax
call fcn.14007ab24
xor r13d, r13d
jmp 0x1401b3a10
cmp dword [rsp + 0x50], 1
mov r15, qword [r15 + 0x18]
mov rax, qword [r15]
mov rdi, qword [rax + 0x178]
mov rcx, rdi
jne 0x1401b37cf
cmp dword [0x140439240], 1
cmove rsi, qword [0x1404386f8]
call qword [0x1403b8660]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, r15
call rdi
mov edi, eax
test eax, eax
js 0x1401b3779
mov esi, 1
jmp 0x1401b37f9
cmp dword [0x140439240], 1
cmove rsi, qword [0x140438728]
call qword [0x1403b8660]
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, r15
call rdi
mov edi, eax
test eax, eax
js 0x1401b3779
xor esi, esi
mov rax, qword [rsp + 0x40]
lea rcx, [rbp - 0x80]
mov r15, qword [rbp - 0x70]
lea r9, [0x140438fc0]
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.1401b53c4
xor r13d, r13d
mov edi, eax
test eax, eax
js 0x1401b3a09
test r12, r12
je 0x1401b388b
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
jne 0x1401b385e
mov edi, 0x8007000e
mov ecx, edi
jmp 0x1401b3a0b
cmp dword [0x140439240], 1
mov r8, r13
mov rdx, qword [rsp + 0x40]
mov r9, rax
cmove r8, qword [0x1404386e8]
mov rcx, qword [r15 + 0x18]
call fcn.14015fd2c
mov edi, eax
test eax, eax
js 0x1401b3a09
test esi, esi
je 0x1401b39df
mov r9, qword [rsp + 0x48]
mov rcx, r15
mov r8, qword [rsp + 0x40]
mov rdx, qword [r15 + 0x10]
mov r9, qword [r9]
call fcn.1401b5270
mov edi, eax
test eax, eax
js 0x1401b3a09
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
mov rax, r14
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1401b38c1
mov esi, 0x80070057
cmp rax, 0x26
jne 0x1401b38fa
cmp word [rcx], 0x7b
jne 0x1401b3900
cmp word [rcx + 0x4a], 0x7d
jne 0x1401b3900
add rcx, 2
lea rdx, [rbp - 0x50]
call fcn.14006fe70
mov edi, eax
test eax, eax
jns 0x1401b3909
mov ecx, eax
jmp 0x1401b3904
cmp rax, 0x24
je 0x1401b38e7
mov edi, esi
mov ecx, esi
call fcn.14007ab24
mov ecx, edi
call fcn.14007ab44
test edi, edi
js 0x1401b3857
lea r8, [rsp + 0x58]
lea rdx, str.windowsComponentEditionSkuId
lea rcx, [rbp - 0x80]
call fcn.1400ba818
test al, al
je 0x1401b398e
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 0x1401b3942
cmp r14, 0x26
jne 0x1401b3976
cmp word [rcx], 0x7b
jne 0x1401b397c
cmp word [rcx + 0x4a], 0x7d
jne 0x1401b397c
add rcx, 2
lea rdx, [rbp - 0x40]
call fcn.14006fe70
mov edx, eax
test eax, eax
jns 0x1401b3985
mov ecx, eax
jmp 0x1401b3980
cmp r14, 0x24
je 0x1401b3963
mov edx, esi
mov ecx, esi
call fcn.14007ab24
mov ecx, edx
call fcn.14007ab44
jmp 0x1401b399a
movups xmm0, xmmword [0x1403be410]
movdqu xmmword [rbp - 0x40], xmm0
cmp dword [0x140439240], 1
mov r8, r13
mov rdx, qword [rsp + 0x40]
mov r9d, 1
cmove r8, qword [0x140438700]
mov rcx, qword [r15 + 0x18]
call fcn.14017d220
mov edi, eax
test eax, eax
js 0x1401b3a09
mov rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x50]
call fcn.14017d3b4
mov edi, eax
test eax, eax
js 0x1401b3a09
mov rsi, qword [rbp - 0x60]
jmp 0x1401b39e3
mov rsi, qword [rbp - 0x58]
mov rax, qword [rsi]
mov rdi, qword [rax + 0xa8]
mov rcx, rdi
call qword [0x1403b8660]
mov rdx, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, rsi
call rdi
mov edi, eax
test eax, eax
jns 0x1401b3a10
mov ecx, eax
call fcn.14007ab24
mov ecx, edi
call fcn.14007ab44
mov r15d, 3
mov qword [rsp + 0x70], r13
lea rax, [0x14003c338]
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, [0x1400239f8]
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 0x1401b3a99
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1401b3abc
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, [0x14001cb78]
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.14036e5e0
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x140438fb4]
call fcn.14036ea0c
cmp dword [0x140438fb4], r14d
jne 0x1401b374c
xor eax, eax
mov qword [0x140438fc8], rsi
mov qword [0x140438fd0], rax
lea rcx, [0x140438fb4]
lea rax, str.metaInfoType
mov dword [0x140438fd0], esi
mov qword [0x140438fc0], rax
xor eax, eax
mov qword [0x140438fe8], rax
lea rax, str.windowsComponentEditionPkeyId
mov qword [0x140438fd8], rax
lea rax, str.pkeyId
mov qword [0x140438fe0], rax
xor eax, eax
mov qword [0x140439000], rax
lea rax, str.windowsComponentEditionSkuId
mov qword [0x140438ff0], rax
lea rax, str.skuId
mov qword [0x140438ff8], rax
mov dword [0x140438fd4], r14d
mov dword [0x140438fe8], edi
mov dword [0x140438fec], edi
mov dword [0x140439000], edi
mov dword [0x140439004], edi
call fcn.14036e99c
jmp 0x1401b374c