Function at 0x1401065c0
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x58
mov rax, qword [0x1402ba040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r12
mov r12d, 0xffff
mov qword [r11 - 0x10], r14
mov qword [r11 - 0x18], r15
xor r15d, r15d
mov r14d, r15d
cmp byte [0x1402c4fd8], r14b
je 0x1401066cb
mov eax, dword [0x1402c7b14]
lea ecx, [r15 + 0x17]
mov rdx, qword [0x1402c7c00]
xor r9d, r9d
lea r8d, [rax + rax*2]
shl r8d, 3
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, dword [0x1402c7b14]
mov rdi, qword [0x1402c7c00]
test eax, eax
jns 0x140106650
lea r8, [rbx + rbx*2]
xor edx, edx
shl r8, 3
mov rcx, rdi
call fcn.140207110
mov rdx, r15
mov r8, r15
cmp ebx, 2
jb 0x1401066ab
lea eax, [rbx - 2]
shr eax, 1
lea rcx, [rdi + 0x1c]
inc eax
mov r9d, eax
lea r11d, [rax + rax]
lea r10, [rax + rax]
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rcx - 0x18]
lea rcx, [rcx + 0x30]
add rdx, rax
mov eax, dword [rcx - 0x30]
add r8, rax
sub r9, 1
jne 0x140106680
cmp r11d, ebx
jb 0x1401066b2
lea rax, [rdx + r8]
movzx edx, word [0x1402c4fdc]
jmp 0x14010683d
test ebx, ebx
je 0x1401066bb
mov r10, r15
lea rax, [r10 + r10*2]
mov r14d, dword [rdi + rax*8 + 4]
lea rax, [rdx + r8]
movzx edx, word [0x1402c4fdc]
jmp 0x14010683d
movzx edx, word [0x1402c4fdc]
movzx esi, r15w
mov rbp, qword [0x1402c7c00]
mov word [rsp + 0x30], r15w
cmp r15w, dx
jae 0x1401067cf
movzx eax, r15w
movzx r8d, r15w
movzx r9d, r15w
nop dword [rax]
mov rcx, qword [0x1402c4fe0]
test rcx, rcx
je 0x14010673f
movzx ebx, r15w
cmp ax, r12w
jne 0x14010672f
cmp r15w, dx
jae 0x140106746
movzx eax, dx
nop
add bx, word [rcx]
lea rcx, [rcx + 2]
sub rax, 1
jne 0x140106720
jmp 0x140106746
cmp r8w, dx
jae 0x140106746
movzx eax, r9w
movzx ebx, word [rcx + rax*2]
jmp 0x140106746
movzx ebx, word [0x1402c4fda]
movzx eax, si
lea rdx, [rsp + 0x30]
mov r8d, 2
mov qword [rsp + 0x28], r15
lea rcx, [rax + rax*2]
movzx eax, bx
lea rdi, [rcx*8]
lea r9, [rdi + rbp]
lea ecx, [rax + rax*2]
shl ecx, 3
mov dword [rsp + 0x20], ecx
lea ecx, [r8 + 0x15]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov rbp, qword [0x1402c7c00]
test eax, eax
jns 0x1401067a7
movzx eax, bx
lea rcx, [rdi + rbp]
xor edx, edx
lea r8, [rax + rax*2]
shl r8, 3
call fcn.140207110
movzx eax, word [rsp + 0x30]
add si, bx
movzx edx, word [0x1402c4fdc]
inc ax
mov word [rsp + 0x30], ax
movzx r8d, ax
movzx r9d, ax
cmp ax, dx
jb 0x140106700
mov ebx, dword [0x1402c7b14]
mov r8, r15
mov r9, r15
cmp ebx, 2
jb 0x14010681c
lea eax, [rbx - 2]
shr eax, 1
lea rcx, [rbp + 0x1c]
inc eax
mov r10d, eax
lea edi, [rax + rax]
lea r11, [rax + rax]
nop word [rax + rax]
mov eax, dword [rcx - 0x18]
lea rcx, [rcx + 0x30]
add r8, rax
mov eax, dword [rcx - 0x30]
add r9, rax
sub r10, 1
jne 0x140106800
cmp edi, ebx
jb 0x140106830
jmp 0x140106839
nop dword [rax]
test ebx, ebx
je 0x140106839
mov r11, r15
nop word [rax + rax]
lea rax, [r11 + r11*2]
mov r14d, dword [rbp + rax*8 + 4]
lea rax, [r9 + r8]
mov ecx, dword [0x1402c9e68]
add r14, rax
mov eax, ecx
sub eax, dword [0x1402c7be0]
mov dword [0x1402c7be4], eax
mov dword [0x1402c7be0], ecx
mov ecx, dword [0x1402c9ee8]
mov eax, ecx
sub eax, dword [0x1402c7af8]
mov dword [0x1402c7afc], eax
mov rax, r14
sub rax, qword [0x1402c7c38]
mov qword [0x1402c7c40], rax
mov dword [0x1402c7af8], ecx
mov ecx, dword [0x1402c9e74]
mov eax, ecx
sub eax, dword [0x1402c7c20]
cmp byte [0x1402c4fd8], r15b
mov qword [0x1402c7c38], r14
mov r14, qword [rsp + 0x48]
mov dword [0x1402c7c24], eax
mov dword [0x1402c7c20], ecx
je 0x1401068fc
mov r9, qword [0x1402c7bf0]
lea eax, [rbx + rbx*2]
xor edx, edx
shl eax, 3
xor r8d, r8d
mov dword [rsp + 0x20], eax
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtPowerInformation]
test eax, eax
jns 0x1401069e9
mov eax, dword [0x1402c7b14]
xor edx, edx
mov rcx, qword [0x1402c7bf0]
lea r8, [rax + rax*2]
shl r8, 3
call fcn.140207110
jmp 0x1401069e9
mov word [rsp + 0x34], r15w
movzx esi, r15w
cmp r15w, dx
jae 0x1401069e9
mov rbp, qword [0x1402c7bf0]
movzx ecx, r15w
movzx r8d, r15w
movzx r9d, r15w
mov rax, qword [0x1402c4fe0]
test rax, rax
je 0x140106962
movzx ebx, r15w
cmp cx, r12w
jne 0x140106951
cmp r15w, dx
jae 0x140106969
movzx ecx, dx
add bx, word [rax]
lea rax, [rax + 2]
sub rcx, 1
jne 0x140106942
jmp 0x140106969
cmp r8w, dx
jae 0x140106969
movzx ecx, r9w
movzx ebx, word [rax + rcx*2]
jmp 0x140106969
movzx ebx, word [0x1402c4fda]
movzx eax, si
lea rdx, [rsp + 0x34]
mov r8d, 2
lea rcx, [rax + rax*2]
movzx eax, bx
lea rdi, [rcx*8]
lea r9, [rdi + rbp]
lea ecx, [rax + rax*2]
shl ecx, 3
mov dword [rsp + 0x20], ecx
lea ecx, [r8 + 0x2c]
call qword [sym.imp.ntdll.dll_NtPowerInformation]
mov rbp, qword [0x1402c7bf0]
test eax, eax
jns 0x1401069bf
movzx eax, bx
lea rcx, [rdi + rbp]
xor edx, edx
lea r8, [rax + rax*2]
shl r8, 3
call fcn.140207110
movzx ecx, word ds:[rsp + 0x34]
add si, bx
movzx edx, word [0x1402c4fdc]
inc cx
mov word [rsp + 0x34], cx
movzx r8d, cx
movzx r9d, cx
cmp cx, dx
jb 0x140106923
mov r8, qword [0x1402c7b08]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
test r8, r8
je 0x140106a1d
mov rcx, qword [0x1402c5110]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword [0x1402c7c28]
mov qword [0x1402c7b08], rax
mov qword [0x1402c7c28], r15
call fcn.1401098c0
mov eax, dword [0x1402c7bd0]
mov r15, qword [rsp + 0x40]
cmp eax, 2
jae 0x140106a4f
inc eax
mov dword [0x1402c7bd0], eax
call fcn.1401086a0
call fcn.1401087e0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e0100
add rsp, 0x58
ret