Function at 0x140171c9c
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.1401770b8
mov r14d, eax
test eax, eax
jns 0x140171d0b
mov ecx, eax
call fcn.140078308
lea r12, [0x140033aa0]
jmp 0x140171ecc
mov edx, dword [rbp - 0x31]
lea r8, [rbp - 0x19]
mov rcx, qword [rbp - 9]
call fcn.140077eb8
mov r14d, eax
test eax, eax
jns 0x140171d2f
mov ecx, eax
call fcn.140078308
mov rbx, qword [rbp - 0x19]
jmp 0x140171cff
lea r8, [rbp - 0x29]
mov rcx, r13
lea rdx, [rbp - 0x11]
call fcn.140177214
mov r14d, eax
test eax, eax
jns 0x140171d57
mov ecx, eax
call fcn.140078308
mov rbx, qword [rbp - 0x19]
mov rdi, qword [rbp - 0x11]
jmp 0x140171cff
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 0x140171fc8
sub eax, 1
je 0x140171f95
sub eax, 1
je 0x140171f78
sub eax, 1
je 0x140171e4c
cmp eax, 1
jne 0x140171e6a
mov r12, qword [r15 + 0x18]
xor r15d, r15d
and qword [rbp - 0x29], 0
cmp dword [0x1404230f8], eax
mov rax, qword [r12]
cmove r15, qword [0x1404227b8]
mov r14, qword [rax + 0x178]
mov rcx, r14
call qword [0x1403a2250]
lea r8, [rbp - 0x29]
mov rdx, r15
mov rcx, r12
call r14
mov r14d, eax
test eax, eax
jns 0x140171de4
mov ecx, eax
call fcn.140078308
jmp 0x140171df1
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x21]
call fcn.1400753a4
mov ecx, r14d
call fcn.140078324
and qword [rbp + 0x17], 0
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rbp + 7], 3
lea r12, [0x140033aa0]
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 0x140171ff3
mov ecx, r14d
call fcn.140078308
mov rbx, qword [rbp - 0x19]
mov rdi, qword [rbp - 0x11]
jmp 0x140171ecc
mov r8d, dword [rbp - 0x29]
lea r9, [rbp - 0x21]
mov rdx, rdi
mov rcx, r15
call fcn.1401722cc
mov r14d, eax
test eax, eax
js 0x140171d22
lea r12, [0x140033aa0]
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.1401739a8
mov r14d, eax
test eax, eax
js 0x140171ec5
mov r15, qword [rbp + 0x77]
mov rax, qword [r15]
mov r14, qword [rax + 0xa8]
mov rcx, r14
call qword [0x1403a2250]
mov rdx, qword [rbp - 0x21]
xor r8d, r8d
mov rcx, r15
call r14
mov r14d, eax
test eax, eax
jns 0x140171ecc
mov ecx, eax
call fcn.140078308
mov ecx, r14d
call fcn.140078324
test rdi, rdi
je 0x140171eed
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 0x140171f09
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 0x140171f2a
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.140078324
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.140172710
jmp 0x140171fe3
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.140172cac
jmp 0x140171fe3
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.140173444
mov r14d, eax
test eax, eax
jns 0x140171e6a
jmp 0x140171cf8
mov r15, qword [rbp + 0x5f]
jmp 0x140171e71