Function at 0x14005b20c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov rax, qword [0x140418d28]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rdi, rcx
xor r15d, r15d
lea rcx, [rbp - 0x39]
xor edx, edx
xor r12d, r12d
lea r8d, [r15 + 0x54]
call sub.msvcrt.dll_memset
xor ebx, ebx
mov qword [rbp - 0x51], rbx
test rdi, rdi
jne 0x14005b275
mov r14d, 0x80070057
mov ecx, r14d
call fcn.140078308
jmp 0x14005b489
mov r15, qword [0x140421ad0]
add r15, 8
je 0x14005b293
mov r12d, 1
mov rcx, r15
mov edx, r12d
call fcn.140070fcc
mov r13d, 3
mov qword [rbp - 0x71], rdi
lea rax, [0x14001c1a0]
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rax, [rbp - 0x61]
xor r9d, r9d
mov qword [rbp - 0x79], rax
lea edi, [r13 + 0x25]
lea rax, [rbp - 0x39]
mov r8d, edi
mov ecx, 0xb9
mov qword [rbp - 0x69], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rbp - 0x61]
cmp r14d, 0xc004f012
jne 0x14005b2ef
mov r14d, 0xc004f015
jmp 0x14005b268
test r14d, r14d
js 0x14005b268
mov eax, dword [rbp + 0x17]
and eax, 2
test al, al
je 0x14005b30d
mov r14d, 0xc004f016
jmp 0x14005b268
lea rax, [0x14001d520]
mov qword [rsp + 0x20], r13
lea rdx, [0x14041aaf8]
mov qword [rsp + 0x28], rax
lea rcx, [0x14040bdc8]
call fcn.1400e775c
lea rax, [rbp - 0x5d]
lea rdx, [0x140420e70]
mov qword [rbp - 0x79], rax
lea rcx, [0x1403faf68]
call fcn.1400e7de0
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rbp - 0x71], rax
lea rdx, [rsp + 0x20]
lea rax, [rbp - 0x59]
mov r8, rdi
mov ecx, 0xb9
mov qword [rbp - 0x69], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp - 0x5d]
test edi, edi
jns 0x14005b3b5
cmp edi, 0xc004d304
je 0x14005b3ba
lea rdx, [0x14041a490]
mov r14d, edi
lea rcx, [0x140408098]
call fcn.1400e7410
mov ecx, edi
call fcn.140078308
lea rdx, [0x14041b510]
lea rcx, [0x1403fcfd4]
call fcn.1400e6078
jmp 0x14005b489
cmp dword [rbp - 0x59], ebx
jl 0x14005b3d9
test esi, esi
je 0x14005b3d9
xor r14d, r14d
lea rdx, [0x14041a888]
lea rcx, [0x1403fa20c]
call fcn.1400e7a9c
jmp 0x14005b489
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x39]
call fcn.140051e24
mov rbx, qword [rbp - 0x51]
test eax, eax
js 0x14005b40d
mov rsi, qword [0x140421b60]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x38]
mov rcx, rdi
call qword [0x1403a2250]
mov rdx, rbx
mov rcx, rsi
call rdi
lea rax, [0x14001cea0]
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea rax, [rbp - 0x49]
mov qword [rbp - 0x79], rax
mov esi, 0xb9
lea rax, [rbp - 0x39]
mov ecx, esi
mov qword [rbp - 0x71], rax
lea edi, [r9 + 0x28]
mov r8d, edi
call sub.ntdll.dll_NtQuerySystemInformation
lea rax, [0x14001c820]
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rax, [rbp - 0x45]
xor r9d, r9d
mov qword [rbp - 0x79], rax
mov r8d, edi
lea rax, [rbp - 0x39]
mov ecx, esi
mov qword [rbp - 0x71], rax
call sub.ntdll.dll_NtQuerySystemInformation
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.140060bf0
mov ecx, r14d
call fcn.140078324
test rbx, rbx
je 0x14005b49f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x14005b4b1
test r12d, r12d
je 0x14005b4b1
mov rcx, r15
call fcn.140070e60
mov eax, r14d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14035a4e0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret