Function at 0x140174efc
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xa0
and qword [rbp - 0x21], 0
mov r13, r8
mov r12, rdx
lea r8, [rbp - 0x31]
mov r15, rcx
lea rdx, [rbp - 9]
xor ebx, ebx
xor edi, edi
and qword [rbp - 9], rbx
mov rcx, r13
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rdi
call fcn.14017a3e8
mov r14d, eax
test eax, eax
jns 0x140174f6b
mov ecx, eax
call fcn.1400790f8
lea r12, [0x14001a7b8]
jmp 0x14017512c
mov edx, dword [rbp - 0x31]
lea r8, [rbp - 0x19]
mov rcx, qword [rbp - 9]
call fcn.140078c04
mov r14d, eax
test eax, eax
jns 0x140174f8f
mov ecx, eax
call fcn.1400790f8
mov rbx, qword [rbp - 0x19]
jmp 0x140174f5f
lea r8, [rbp - 0x29]
mov rcx, r13
lea rdx, [rbp - 0x11]
call fcn.14017a544
mov r14d, eax
test eax, eax
jns 0x140174fb7
mov ecx, eax
call fcn.1400790f8
mov rbx, qword [rbp - 0x19]
mov rdi, qword [rbp - 0x11]
jmp 0x140174f5f
mov eax, dword [r13 + 4]
mov rbx, qword [rbp - 0x19]
mov rdi, qword [rbp - 0x11]
mov dword [rbp - 0x31], eax
mov eax, dword [r13]
mov dword [rbp - 1], eax
test eax, eax
je 0x140175228
sub eax, 1
je 0x1401751f5
sub eax, 1
je 0x1401751d8
sub eax, 1
je 0x1401750ac
cmp eax, 1
jne 0x1401750ca
mov r12, qword [r15 + 0x18]
xor r15d, r15d
and qword [rbp - 0x29], 0
cmp dword [0x14042fef8], eax
mov rax, qword [r12]
cmove r15, qword [0x14042f5b8]
mov r14, qword [rax + 0x178]
mov rcx, r14
call qword [0x1403af620]
lea r8, [rbp - 0x29]
mov rdx, r15
mov rcx, r12
call r14
mov r14d, eax
test eax, eax
jns 0x140175044
mov ecx, eax
call fcn.1400790f8
jmp 0x140175051
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x21]
call fcn.14007613c
mov ecx, r14d
call fcn.140079118
and qword [rbp + 0x17], 0
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rbp + 7], 3
lea r12, [0x14001a7b8]
mov qword [rbp + 0x1f], rax
lea rdx, [rbp + 7]
mov qword [rbp + 0xf], r12
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
test r14d, r14d
jns 0x140175253
mov ecx, r14d
call fcn.1400790f8
mov rbx, qword [rbp - 0x19]
mov rdi, qword [rbp - 0x11]
jmp 0x14017512c
mov r8d, dword [rbp - 0x29]
lea r9, [rbp - 0x21]
mov rdx, rdi
mov rcx, r15
call fcn.14017554c
mov r14d, eax
test eax, eax
js 0x140174f82
lea r12, [0x14001a7b8]
mov rax, qword [rbp - 0x21]
mov r8, rbx
mov r9d, dword [rbp - 1]
mov rdx, r13
mov qword [rsp + 0x28], rax
mov rcx, r15
mov eax, dword [rbp - 0x31]
mov dword [rsp + 0x20], eax
call fcn.140176c38
mov r14d, eax
test eax, eax
js 0x140175125
mov r15, qword [rbp + 0x77]
mov rax, qword [r15]
mov r14, qword [rax + 0xa8]
mov rcx, r14
call qword [0x1403af620]
mov rdx, qword [rbp - 0x21]
xor r8d, r8d
mov rcx, r15
call r14
mov r14d, eax
test eax, eax
jns 0x14017512c
mov ecx, eax
call fcn.1400790f8
mov ecx, r14d
call fcn.140079118
test rdi, rdi
je 0x14017514d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp - 9], 0
je 0x140175169
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp - 9]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x14017518a
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.140079118
and qword [rbp + 0x17], 0
lea rax, [rbp - 0x21]
xor r9d, r9d
mov qword [rbp + 7], 3
lea rdx, [rbp + 7]
mov qword [rbp + 0xf], r12
mov ecx, 0xb9
mov qword [rbp + 0x1f], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0xa0]
mov eax, r14d
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r9d, dword [rbp - 0x29]
lea rax, [rbp - 0x21]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r15
call fcn.140175994
jmp 0x140175243
mov rax, qword [rbp + 0x7f]
mov r9, rdi
mov qword [rsp + 0x38], rax
mov r8, rbx
lea rax, [rbp - 0x21]
mov rdx, r12
mov qword [rsp + 0x30], rax
mov rcx, r15
mov eax, dword [rbp - 0x31]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x29]
mov dword [rsp + 0x20], eax
call fcn.140175f3c
jmp 0x140175243
mov r9d, dword [rbp - 0x29]
lea rax, [rbp - 0x21]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r15
call fcn.1401766d0
mov r14d, eax
test eax, eax
jns 0x1401750ca
jmp 0x140174f58
mov r15, qword [rbp + 0x5f]
jmp 0x1401750d1