Function at 0x14017c650
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xe0
mov rax, qword gs:[0x58]
lea r15, str.SppPkeyBindingPid2
xor r14d, r14d
mov r13, rdx
mov edx, 4
mov ebx, r14d
mov r12d, r8d
mov qword [rbp - 0x79], r14
mov rcx, qword [rax]
mov esi, r14d
mov qword [rbp - 0x59], r14
lea edi, [r14 + 1]
mov qword [rbp - 0x71], r14
mov qword [rsp + 0x40], rbx
mov eax, dword [rdx + rcx]
cmp dword [0x140438cf0], eax
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x61], r14
jg 0x14017cbee
lea r8, [rbp - 0x79]
xor edx, edx
lea rcx, [0x1403c1d50]
call fcn.1400f4150
mov rdi, qword [rbp - 0x79]
mov r15d, eax
test eax, eax
jns 0x14017c6f9
mov ecx, eax
call fcn.14007ab24
jmp 0x14017cad4
mov rax, qword [rdi]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [0x1403b8660]
xor r9d, r9d
mov r8d, r12d
mov rdx, r13
mov rcx, rdi
call r14
xor r14d, r14d
mov r15d, eax
test eax, eax
js 0x14017c6ed
mov rax, qword [rdi]
mov r14, qword [rax + 0x30]
mov rcx, r14
call qword [0x1403b8660]
lea rdx, [rbp - 0x19]
mov rcx, rdi
call r14
cmp eax, 0x80070103
je 0x14017cac4
xor r14d, r14d
mov r15d, eax
test eax, eax
js 0x14017c6ed
test rbx, rbx
je 0x14017c777
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ab44
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x19]
call fcn.14017db00
mov r15d, eax
test eax, eax
js 0x14017cab6
mov rdx, qword [rbp - 0x19]
mov dword [rbp - 0x79], r14d
test rdx, rdx
je 0x14017c9a2
mov r12, rdx
lea rbx, [0x140438d00]
mov r13d, r14d
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14017c7d3
inc r14d
add rbx, 0x18
cmp r14d, 0xa
jae 0x14017c7ce
mov rdx, qword [rbp - 0x19]
jmp 0x14017c7ae
xor r14d, r14d
jmp 0x14017c7e9
mov eax, dword [rbx + 0x14]
xor r14d, r14d
cmp qword [rbx + 8], r14
mov r13d, dword [rbx + 0x10]
cmovne r12, qword [rbx + 8]
mov dword [rbp - 0x79], eax
mov rdx, qword [rbp - 0x19]
lea rcx, str.SppPkeyBindingPid2
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14017c845
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14017c82c
lea rbx, [rax - 4]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ab44
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x19]
call fcn.14017da00
mov r15d, eax
test eax, eax
js 0x14017cab6
mov rbx, qword [rsp + 0x40]
test r13d, r13d
je 0x14017c95c
mov r14, qword [rbp - 0x69]
test r14, r14
je 0x14017c87d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r14 - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ab44
and qword [rbp - 0x69], 0
mov r14, qword [rbp - 0x61]
test r14, r14
je 0x14017c8a9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r14 - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ab44
xor r14d, r14d
mov qword [rbp - 0x61], r14
lea rdx, [rbp - 0x69]
mov rcx, r12
call fcn.14007a9ec
mov r15d, eax
test eax, eax
js 0x14017cab6
test rbx, rbx
jne 0x14017c8ce
mov r15d, r14d
mov qword [rbp - 0x61], r14
jmp 0x14017c8f9
mov r14d, dword [rbx - 4]
xor ecx, ecx
call fcn.14007ab44
lea r8, [rbp - 0x61]
mov edx, r14d
mov rcx, rbx
call fcn.14007a880
xor r14d, r14d
mov r15d, eax
test eax, eax
jns 0x14017c8f9
mov ecx, eax
call fcn.14007ab24
mov ecx, r15d
call fcn.14007ab44
test r15d, r15d
js 0x14017ca98
mov ecx, dword [rbp - 0x4d]
test ecx, ecx
je 0x14017c92b
mov rax, qword [rbp - 0x49]
lea rdx, [rbp + 7]
mov dword [rbp + 0xf], ecx
mov rcx, qword [rbp - 0x69]
mov qword [rbp + 7], rax
call fcn.1400c1d3c
jmp 0x14017c92e
mov eax, r14d
lea r8, [rbp - 0x69]
mov edx, eax
lea rcx, [rbp - 0x51]
call fcn.140164880
mov r15d, eax
test eax, eax
jns 0x14017c94b
mov ecx, eax
call fcn.14007ab24
mov ecx, r15d
call fcn.14007ab44
test r15d, r15d
js 0x14017ca98
test rsi, rsi
je 0x14017c981
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.14007ab44
mov qword [rbp - 0x59], r14
lea rdx, [rbp - 0x59]
mov rcx, r12
call fcn.14017a0bc
mov r15d, eax
test eax, eax
js 0x14017caa0
mov rsi, qword [rbp - 0x59]
mov qword [rbp - 0x21], rsi
jmp 0x14017c9b9
mov rbx, qword [rsp + 0x40]
lea rax, [0x1403d32d4]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x79], 0x22
mov eax, dword [rbp - 0x11]
mov r13d, r14d
cmp eax, 0x80000002
je 0x14017ca0a
cmp eax, 0x80000004
je 0x14017c9fb
test eax, eax
je 0x14017c9f2
cmp eax, 1
je 0x14017c9e9
cmp eax, 2
je 0x14017ca0a
cmp eax, 4
je 0x14017c9fb
lea r12, str.undef
jmp 0x14017ca11
lea r12, [0x1403d32b4]
jmp 0x14017ca11
lea r12, [0x1403d32c4]
jmp 0x14017ca11
lea r12, [0x1403d3294]
mov r13d, 1
jmp 0x14017ca11
lea r12, [0x1403d32a4]
mov r14, qword [rbp - 0x71]
test r14, r14
je 0x14017ca35
mov rax, qword [r14]
mov r15, qword [rax + 0x10]
mov rcx, r15
call qword [0x1403b8660]
mov rcx, r14
call r15
and qword [rbp - 0x71], 0
mov r14, qword [rbp + 0x5f]
lea rax, [rbp - 0x71]
mov r9, qword [rbp - 0x21]
mov rcx, r14
mov r8d, dword [rbp - 0x79]
mov rdx, qword [rbp + 0x77]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
call fcn.140178bac
mov r15d, eax
test eax, eax
js 0x14017caad
test r13d, r13d
je 0x14017c722
mov r9d, dword [rbp - 1]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov rdx, qword [rbp - 0x71]
cmove r8, qword [0x140438568]
mov rcx, qword [r14 + 0x18]
call fcn.14017d220
jmp 0x14017c718
mov ecx, r15d
jmp 0x14017c6ef
mov ecx, eax
call fcn.14007ab24
mov rsi, qword [rbp - 0x59]
jmp 0x14017cad4
mov ecx, eax
call fcn.14007ab24
jmp 0x14017cad1
mov ecx, eax
call fcn.14007ab24
mov rbx, qword [rsp + 0x40]
jmp 0x14017cad4
mov rdx, qword [rbp + 0x7f]
lea rcx, [rbp - 0x51]
call fcn.140162890
xor r14d, r14d
mov ecx, r15d
call fcn.14007ab44
mov r12d, 3
mov qword [rbp - 0x31], r14
lea rax, [0x1400291b8]
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x69]
xor r9d, r9d
lea r13d, [r12 + 0x1d]
mov qword [rbp - 0x29], rax
mov r8d, r13d
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
lea rax, [0x1400239f8]
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x51]
mov qword [rbp - 0x31], r14
xor r9d, r9d
mov qword [rbp - 0x29], rax
mov r8d, r13d
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
test rbx, rbx
je 0x14017cb66
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.14007ab44
lea rax, [0x14001cb78]
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x71]
mov qword [rbp - 0x31], r14
xor r9d, r9d
mov qword [rbp - 0x29], rax
mov r8, r13
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
test rsi, rsi
je 0x14017cbb6
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.14007ab44
test rdi, rdi
je 0x14017cbd0
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x1403b8660]
mov rcx, rdi
call rbx
mov eax, r15d
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140438cf0]
call fcn.14036ea0c
cmp dword [0x140438cf0], 0xffffffff
jne 0x14017c6d0
xor eax, eax
mov qword [0x140438d18], r15
mov qword [0x140438d10], rax
mov ecx, 0x41
lea rax, str.SppPkeyBindingProductKey
mov dword [0x140438d10], edi
mov qword [0x140438d00], rax
lea rax, [0x1403d3174]
mov qword [0x140438d08], rax
xor eax, eax
mov qword [0x140438d28], rax
lea edx, [rcx - 1]
lea rax, str.pid2
mov dword [0x140438d14], ecx
mov qword [0x140438d20], rax
xor eax, eax
mov qword [0x140438d40], rax
lea rax, str.SppPkeyChannelId
mov qword [0x140438d30], rax
lea rax, [0x1403d312c]
mov qword [0x140438d38], rax
xor eax, eax
mov qword [0x140438d58], rax
lea rax, str.SppPkeyBindingEditionId
mov qword [0x140438d48], rax
lea rax, [0x1403d3114]
mov qword [0x140438d50], rax
xor eax, eax
mov qword [0x140438d70], rax
lea rax, str.SppPkeyBindingPid3
mov qword [0x140438d60], rax
lea rax, str.pid3
mov qword [0x140438d68], rax
xor eax, eax
mov qword [0x140438d88], rax
lea rax, str.SppPkeyBindingPid4
mov qword [0x140438d78], rax
lea rax, str.pid4
mov qword [0x140438d80], rax
xor eax, eax
mov qword [0x140438da0], rax
lea rax, str.SppPkeyBindingMPC
mov qword [0x140438d90], rax
lea rax, [0x1403d3104]
mov qword [0x140438d98], rax
xor eax, eax
mov qword [0x140438db8], rax
lea rax, str.SppPkeyUniqueIdToken
mov qword [0x140438da8], rax
lea rax, [0x1403d30f4]
mov qword [0x140438db0], rax
xor eax, eax
mov qword [0x140438dd0], rax
lea rax, str.SppPkeyPhoneActivationData
mov qword [0x140438dc0], rax
lea rax, [0x1403d30dc]
mov qword [0x140438dc8], rax
xor eax, eax
mov qword [0x140438de8], rax
lea rax, str.SppPkeyBindingMiscData
mov qword [0x140438dd8], rax
lea rax, [0x1403d30c4]
mov qword [0x140438de0], rax
mov dword [0x140438d28], edi
mov dword [0x140438d2c], ecx
mov dword [0x140438d40], edi
mov dword [0x140438d44], ecx
mov dword [0x140438d58], edi
mov dword [0x140438d5c], ecx
mov dword [0x140438d70], r14d
mov dword [0x140438d74], edx
mov dword [0x140438d88], r14d
mov dword [0x140438d8c], edx
mov dword [0x140438da0], r14d
mov dword [0x140438da4], edx
mov dword [0x140438db8], r14d
mov dword [0x140438dbc], edx
mov dword [0x140438dd0], r14d
mov dword [0x140438dd4], edx
mov dword [0x140438de8], r14d
mov dword [0x140438dec], edx
lea rcx, [0x140438cf0]
call fcn.14036e99c
jmp 0x14017c6d0