Function at 0x140108ca0
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x58
mov rax, qword [0x1402bf040]
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 [0x1402ca998], r14b
je 0x140108dab
mov eax, dword [0x1402cd578]
xor r9d, r9d
mov rdx, qword [0x1402cd630]
mov ecx, 0x17
lea r8d, [rax + rax*2]
shl r8d, 3
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, dword [0x1402cd578]
mov rdi, qword [0x1402cd630]
test eax, eax
jns 0x140108d31
lea r8, [rbx + rbx*2]
xor edx, edx
shl r8, 3
mov rcx, rdi
call fcn.14020a280
mov rdx, r15
mov r8, r15
cmp ebx, 2
jb 0x140108d8b
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 0x140108d60
cmp r11d, ebx
jb 0x140108d92
lea rax, [rdx + r8]
movzx edx, word [0x1402ca99c]
jmp 0x140108f1d
test ebx, ebx
je 0x140108d9b
mov r10, r15
lea rax, [r10 + r10*2]
mov r14d, dword [rdi + rax*8 + 4]
lea rax, [rdx + r8]
movzx edx, word [0x1402ca99c]
jmp 0x140108f1d
movzx edx, word [0x1402ca99c]
movzx esi, r15w
mov rbp, qword [0x1402cd630]
mov word [rsp + 0x30], r15w
cmp r15w, dx
jae 0x140108eaf
movzx eax, r15w
movzx r8d, r15w
movzx r9d, r15w
nop dword [rax]
mov rcx, qword [0x1402ca9a0]
test rcx, rcx
je 0x140108e1f
movzx ebx, r15w
cmp ax, r12w
jne 0x140108e0f
cmp r15w, dx
jae 0x140108e26
movzx eax, dx
nop
add bx, word [rcx]
lea rcx, [rcx + 2]
sub rax, 1
jne 0x140108e00
jmp 0x140108e26
cmp r8w, dx
jae 0x140108e26
movzx eax, r9w
movzx ebx, word [rcx + rax*2]
jmp 0x140108e26
movzx ebx, word [0x1402ca99a]
movzx eax, si
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], r15
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
mov ecx, 0x17
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
mov rbp, qword [0x1402cd630]
test eax, eax
jns 0x140108e87
movzx eax, bx
lea rcx, [rdi + rbp]
xor edx, edx
lea r8, [rax + rax*2]
shl r8, 3
call fcn.14020a280
movzx eax, word [rsp + 0x30]
add si, bx
movzx edx, word [0x1402ca99c]
inc ax
mov word [rsp + 0x30], ax
movzx r8d, ax
movzx r9d, ax
cmp ax, dx
jb 0x140108de0
mov ebx, dword [0x1402cd578]
mov r8, r15
mov r9, r15
cmp ebx, 2
jb 0x140108efc
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 0x140108ee0
cmp edi, ebx
jb 0x140108f10
jmp 0x140108f19
nop dword [rax]
test ebx, ebx
je 0x140108f19
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 [0x1402cf8c8]
add r14, rax
mov eax, ecx
sub eax, dword [0x1402cd610]
mov dword [0x1402cd614], eax
mov dword [0x1402cd610], ecx
mov ecx, dword [0x1402cf948]
mov eax, ecx
sub eax, dword [0x1402cd520]
mov dword [0x1402cd524], eax
mov rax, r14
sub rax, qword [0x1402cd668]
mov qword [0x1402cd670], rax
mov dword [0x1402cd520], ecx
mov ecx, dword [0x1402cf8d4]
mov eax, ecx
sub eax, dword [0x1402cd650]
cmp byte [0x1402ca998], r15b
mov qword [0x1402cd668], r14
mov r14, qword [rsp + 0x48]
mov dword [0x1402cd654], eax
mov dword [0x1402cd650], ecx
je 0x140108fde
mov r9, qword [0x1402cd620]
lea eax, [rbx + rbx*2]
shl eax, 3
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], eax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtPowerInformation]
test eax, eax
jns 0x1401090d6
mov eax, dword [0x1402cd578]
xor edx, edx
mov rcx, qword [0x1402cd620]
lea r8, [rax + rax*2]
shl r8, 3
call fcn.14020a280
jmp 0x1401090d6
mov word [rsp + 0x34], r15w
movzx esi, r15w
cmp r15w, dx
jae 0x1401090d6
mov rbp, qword [0x1402cd620]
movzx ecx, r15w
movzx r8d, r15w
movzx r9d, r15w
nop word [rax + rax]
mov rax, qword [0x1402ca9a0]
test rax, rax
je 0x140109050
movzx ebx, r15w
cmp cx, r12w
jne 0x14010903f
cmp r15w, dx
jae 0x140109057
movzx ecx, dx
nop
add bx, word [rax]
lea rax, [rax + 2]
sub rcx, 1
jne 0x140109030
jmp 0x140109057
nop
cmp r8w, dx
jae 0x140109057
movzx ecx, r9w
movzx ebx, word [rax + rcx*2]
jmp 0x140109057
movzx ebx, word [0x1402ca99a]
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
mov ecx, 0x2e
call qword [sym.imp.ntdll.dll_NtPowerInformation]
mov rbp, qword [0x1402cd620]
test eax, eax
jns 0x1401090ae
movzx eax, bx
lea rcx, [rdi + rbp]
xor edx, edx
lea r8, [rax + rax*2]
shl r8, 3
call fcn.14020a280
movzx ecx, word [rsp + 0x34]
add si, bx
movzx edx, word [0x1402ca99c]
inc cx
mov word [rsp + 0x34], cx
movzx r8d, cx
movzx r9d, cx
cmp cx, dx
jb 0x140109010
mov r8, qword [0x1402cd530]
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 0x14010910a
mov rcx, qword [0x1402caad0]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword [0x1402cd658]
mov qword [0x1402cd530], rax
mov qword [0x1402cd658], r15
nop
call fcn.14010c2a0
mov eax, dword [0x1402cd600]
mov r15, qword [rsp + 0x40]
cmp eax, 2
jae 0x14010913d
inc eax
mov dword [0x1402cd600], eax
nop dword [rax]
call fcn.14010ade0
call fcn.14010af20
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0x58
ret