Function at 0x14005bbbc
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 [0x140436b28]
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 0x14005bc38
lea rdx, [0x1404387f0]
lea rcx, [0x14042a758]
call fcn.1400ed8ec
mov r14d, 0x80070057
mov ecx, r14d
call fcn.140079c40
jmp 0x14005be3a
mov r15, qword [0x14043f520]
add r15, 8
je 0x14005bc69
lea rdx, [0x14043e930]
lea rcx, [0x14041a258]
call fcn.1400ee2b8
mov r12d, 1
mov rcx, r15
mov edx, r12d
call fcn.140072570
lea rax, [0x1400035d8]
mov qword [rbp - 0x71], rdi
mov qword [rsp + 0x28], rax
lea rdx, [0x140438594]
lea rax, [rbp - 0x61]
mov r13d, 3
mov qword [rbp - 0x79], rax
lea rcx, [0x140419544]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], r13
mov qword [rbp - 0x69], rax
call fcn.1400edc30
lea edi, [r13 + 0x25]
xor r9d, r9d
mov r8d, edi
lea rdx, [rsp + 0x20]
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rbp - 0x61]
cmp r14d, 0xc004f012
jne 0x14005bcd8
mov r14d, 0xc004f015
jmp 0x14005bc2b
test r14d, r14d
jns 0x14005bcf5
lea rdx, [0x140439190]
lea rcx, [0x14041c150]
call fcn.1400edf70
jmp 0x14005bc2b
mov eax, dword [rbp + 0x17]
and eax, 2
test al, al
je 0x14005bd0a
mov r14d, 0xc004f016
jmp 0x14005bc2b
lea rax, [0x140004958]
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rax, [rbp - 0x5d]
xor r9d, r9d
mov qword [rbp - 0x79], rax
mov r8, rdi
lea rax, [rbp - 0x39]
mov ecx, 0xb9
mov qword [rbp - 0x71], rax
lea rax, [rbp - 0x59]
mov qword [rbp - 0x69], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, dword [rbp - 0x5d]
test ecx, ecx
jns 0x14005bd5f
cmp ecx, 0xc004d304
je 0x14005bd64
mov r14d, ecx
jmp 0x14005bc2e
cmp dword [rbp - 0x59], ebx
jl 0x14005bd70
test esi, esi
je 0x14005bd70
xor r14d, r14d
jmp 0x14005be3a
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x39]
call fcn.1400522bc
mov rbx, qword [rbp - 0x51]
test eax, eax
js 0x14005bdaf
mov rsi, qword [0x14043f5b0]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x38]
mov rax, qword [0x1403c1610]
mov rcx, rdi
call rax
mov rax, rdi
mov rdx, rbx
mov rcx, rsi
call rax
mov edi, 0x28
lea rax, [0x1400042d8]
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
lea rax, [rbp - 0x49]
mov esi, 0xb9
mov qword [rbp - 0x79], rax
xor r9d, r9d
lea rax, [rbp - 0x39]
mov r8, rdi
mov ecx, esi
mov qword [rbp - 0x71], rax
call sub.ntdll.dll_NtQuerySystemInformation
lea rax, [0x140003c58]
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], rax
lea rdx, [0x1404381e8]
lea rax, [rbp - 0x45]
lea rcx, [0x140426c70]
mov qword [rbp - 0x79], rax
call fcn.1400ed5b8
lea rax, [rbp - 0x39]
xor r9d, r9d
mov r8, rdi
mov qword [rbp - 0x71], rax
lea rdx, [rsp + 0x20]
mov ecx, esi
call sub.ntdll.dll_NtQuerySystemInformation
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.140061c14
mov ecx, r14d
call fcn.140079c60
test rbx, rbx
je 0x14005be50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x14005be62
test r12d, r12d
je 0x14005be62
mov rcx, r15
call fcn.14007240c
mov eax, r14d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14037a9a0
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