Function at 0x140179d54
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.14017f354
mov r14d, eax
test eax, eax
jns 0x140179dc3
mov ecx, eax
call fcn.14007ab24
lea r12, [0x14001cb78]
jmp 0x140179f84
mov edx, dword [rbp - 0x31]
lea r8, [rbp - 0x19]
mov rcx, qword [rbp - 9]
call fcn.14007a630
mov r14d, eax
test eax, eax
jns 0x140179de7
mov ecx, eax
call fcn.14007ab24
mov rbx, qword [rbp - 0x19]
jmp 0x140179db7
lea r8, [rbp - 0x29]
mov rcx, r13
lea rdx, [rbp - 0x11]
call fcn.14017f4b0
mov r14d, eax
test eax, eax
jns 0x140179e0f
mov ecx, eax
call fcn.14007ab24
mov rbx, qword [rbp - 0x19]
mov rdi, qword [rbp - 0x11]
jmp 0x140179db7
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 0x14017a080
sub eax, 1
je 0x14017a04d
sub eax, 1
je 0x14017a030
sub eax, 1
je 0x140179f04
cmp eax, 1
jne 0x140179f22
mov r12, qword [r15 + 0x18]
xor r15d, r15d
and qword [rbp - 0x29], 0
cmp dword [0x140438e08], eax
mov rax, qword [r12]
cmove r15, qword [0x1404384b8]
mov r14, qword [rax + 0x178]
mov rcx, r14
call qword [0x1403b8660]
lea r8, [rbp - 0x29]
mov rdx, r15
mov rcx, r12
call r14
mov r14d, eax
test eax, eax
jns 0x140179e9c
mov ecx, eax
call fcn.14007ab24
jmp 0x140179ea9
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 0x21]
call fcn.140077a84
mov ecx, r14d
call fcn.14007ab44
and qword [rbp + 0x17], 0
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rbp + 7], 3
lea r12, [0x14001cb78]
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 0x14017a0ab
mov ecx, r14d
call fcn.14007ab24
mov rbx, qword [rbp - 0x19]
mov rdi, qword [rbp - 0x11]
jmp 0x140179f84
mov r8d, dword [rbp - 0x29]
lea r9, [rbp - 0x21]
mov rdx, rdi
mov rcx, r15
call fcn.14017a3a4
mov r14d, eax
test eax, eax
js 0x140179dda
lea r12, [0x14001cb78]
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.14017ba98
mov r14d, eax
test eax, eax
js 0x140179f7d
mov r15, qword [rbp + 0x77]
mov rax, qword [r15]
mov r14, qword [rax + 0xa8]
mov rcx, r14
call qword [0x1403b8660]
mov rdx, qword [rbp - 0x21]
xor r8d, r8d
mov rcx, r15
call r14
mov r14d, eax
test eax, eax
jns 0x140179f84
mov ecx, eax
call fcn.14007ab24
mov ecx, r14d
call fcn.14007ab44
test rdi, rdi
je 0x140179fa5
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 0x140179fc1
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 0x140179fe2
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
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.14017a7ec
jmp 0x14017a09b
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.14017ad94
jmp 0x14017a09b
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.14017b530
mov r14d, eax
test eax, eax
jns 0x140179f22
jmp 0x140179db0
mov r15, qword [rbp + 0x5f]
jmp 0x140179f29