Function at 0x14005cbbc
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 [0x14042eb28]
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 0x14005cc38
lea rdx, [0x140430930]
lea rcx, [0x1404224b8]
call fcn.1400ed4d4
mov r14d, 0x80070057
mov ecx, r14d
call fcn.14007ab24
jmp 0x14005ce34
mov r15, qword [0x1404379a0]
add r15, 8
je 0x14005cc69
lea rdx, [0x140436da0]
lea rcx, [0x1404114b8]
call fcn.1400edb90
mov r12d, 1
mov rcx, r15
mov edx, r12d
call fcn.140073400
lea rax, [0x140003878]
mov qword [rbp - 0x71], rdi
mov qword [rsp + 0x28], rax
lea rdx, [0x1404306b0]
lea rax, [rbp - 0x61]
mov r13d, 3
mov qword [rbp - 0x79], rax
lea rcx, [0x14041073c]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], r13
mov qword [rbp - 0x69], rax
call fcn.1400ed82c
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 0x14005ccd8
mov r14d, 0xc004f015
jmp 0x14005cc2b
test r14d, r14d
jns 0x14005ccf5
lea rdx, [0x140431380]
lea rcx, [0x140413584]
call fcn.1400ebd6c
jmp 0x14005cc2b
mov eax, dword [rbp + 0x17]
and eax, 2
test al, al
je 0x14005cd0a
mov r14d, 0xc004f016
jmp 0x14005cc2b
lea rax, [0x140004bf8]
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 0x14005cd5f
cmp ecx, 0xc004d304
je 0x14005cd64
mov r14d, ecx
jmp 0x14005cc2e
cmp dword [rbp - 0x59], ebx
jl 0x14005cd70
test esi, esi
je 0x14005cd70
xor r14d, r14d
jmp 0x14005ce34
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x39]
call fcn.14005349c
mov rbx, qword [rbp - 0x51]
test eax, eax
js 0x14005cda9
mov rsi, qword [0x140437a30]
mov rax, qword [rsi]
mov rdi, qword [rax + 0x38]
mov rcx, rdi
call qword [0x1403b8660]
mov rdx, rbx
mov rcx, rsi
call rdi
mov edi, 0x28
lea rax, [0x140004578]
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, [0x140003ef8]
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], rax
lea rdx, [0x1404302b8]
lea rax, [rbp - 0x45]
lea rcx, [0x14041e798]
mov qword [rbp - 0x79], rax
call fcn.1400ed188
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.140062ad4
mov ecx, r14d
call fcn.14007ab44
test rbx, rbx
je 0x14005ce4a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x14005ce5c
test r12d, r12d
je 0x14005ce5c
mov rcx, r15
call fcn.14007329c
mov eax, r14d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14036e5e0
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