Function at 0x140108d40
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x58
mov rax, qword [0x1402c0040]
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 [0x1402cb8e0], r14b
je 0x140108e4b
mov eax, dword [0x1402ce4c8]
xor r9d, r9d
mov rdx, qword [0x1402ce580]
mov ecx, 0x17
lea r8d, [rax + rax*2]
shl r8d, 3
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, dword [0x1402ce4c8]
mov rdi, qword [0x1402ce580]
test eax, eax
jns 0x140108dd1
lea r8, [rbx + rbx*2]
xor edx, edx
shl r8, 3
mov rcx, rdi
call fcn.14020ba80
mov rdx, r15
mov r8, r15
cmp ebx, 2
jb 0x140108e2b
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 0x140108e00
cmp r11d, ebx
jb 0x140108e32
lea rax, [rdx + r8]
movzx edx, word [0x1402cb8e4]
jmp 0x140108fbd
test ebx, ebx
je 0x140108e3b
mov r10, r15
lea rax, [r10 + r10*2]
mov r14d, dword [rdi + rax*8 + 4]
lea rax, [rdx + r8]
movzx edx, word [0x1402cb8e4]
jmp 0x140108fbd
movzx edx, word [0x1402cb8e4]
movzx esi, r15w
mov rbp, qword [0x1402ce580]
mov word [rsp + 0x30], r15w
cmp r15w, dx
jae 0x140108f4f
movzx eax, r15w
movzx r8d, r15w
movzx r9d, r15w
nop dword [rax]
mov rcx, qword [0x1402cb8e8]
test rcx, rcx
je 0x140108ebf
movzx ebx, r15w
cmp ax, r12w
jne 0x140108eaf
cmp r15w, dx
jae 0x140108ec6
movzx eax, dx
nop
add bx, word [rcx]
lea rcx, [rcx + 2]
sub rax, 1
jne 0x140108ea0
jmp 0x140108ec6
cmp r8w, dx
jae 0x140108ec6
movzx eax, r9w
movzx ebx, word [rcx + rax*2]
jmp 0x140108ec6
movzx ebx, word [0x1402cb8e2]
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 [0x1402ce580]
test eax, eax
jns 0x140108f27
movzx eax, bx
lea rcx, [rdi + rbp]
xor edx, edx
lea r8, [rax + rax*2]
shl r8, 3
call fcn.14020ba80
movzx eax, word [rsp + 0x30]
add si, bx
movzx edx, word [0x1402cb8e4]
inc ax
mov word [rsp + 0x30], ax
movzx r8d, ax
movzx r9d, ax
cmp ax, dx
jb 0x140108e80
mov ebx, dword [0x1402ce4c8]
mov r8, r15
mov r9, r15
cmp ebx, 2
jb 0x140108f9c
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 0x140108f80
cmp edi, ebx
jb 0x140108fb0
jmp 0x140108fb9
nop dword [rax]
test ebx, ebx
je 0x140108fb9
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 [0x1402d0828]
add r14, rax
mov eax, ecx
sub eax, dword [0x1402ce560]
mov dword [0x1402ce564], eax
mov dword [0x1402ce560], ecx
mov ecx, dword [0x1402d08a8]
mov eax, ecx
sub eax, dword [0x1402ce470]
mov dword [0x1402ce474], eax
mov rax, r14
sub rax, qword [0x1402ce5b8]
mov qword [0x1402ce5c0], rax
mov dword [0x1402ce470], ecx
mov ecx, dword [0x1402d0834]
mov eax, ecx
sub eax, dword [0x1402ce5a0]
cmp byte [0x1402cb8e0], r15b
mov qword [0x1402ce5b8], r14
mov r14, qword [rsp + 0x48]
mov dword [0x1402ce5a4], eax
mov dword [0x1402ce5a0], ecx
je 0x14010907e
mov r9, qword [0x1402ce570]
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 0x140109176
mov eax, dword [0x1402ce4c8]
xor edx, edx
mov rcx, qword [0x1402ce570]
lea r8, [rax + rax*2]
shl r8, 3
call fcn.14020ba80
jmp 0x140109176
mov word [rsp + 0x34], r15w
movzx esi, r15w
cmp r15w, dx
jae 0x140109176
mov rbp, qword [0x1402ce570]
movzx ecx, r15w
movzx r8d, r15w
movzx r9d, r15w
nop word [rax + rax]
mov rax, qword [0x1402cb8e8]
test rax, rax
je 0x1401090f0
movzx ebx, r15w
cmp cx, r12w
jne 0x1401090df
cmp r15w, dx
jae 0x1401090f7
movzx ecx, dx
nop
add bx, word [rax]
lea rax, [rax + 2]
sub rcx, 1
jne 0x1401090d0
jmp 0x1401090f7
nop
cmp r8w, dx
jae 0x1401090f7
movzx ecx, r9w
movzx ebx, word [rax + rcx*2]
jmp 0x1401090f7
movzx ebx, word [0x1402cb8e2]
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 [0x1402ce570]
test eax, eax
jns 0x14010914e
movzx eax, bx
lea rcx, [rdi + rbp]
xor edx, edx
lea r8, [rax + rax*2]
shl r8, 3
call fcn.14020ba80
movzx ecx, word [rsp + 0x34]
add si, bx
movzx edx, word [0x1402cb8e4]
inc cx
mov word [rsp + 0x34], cx
movzx r8d, cx
movzx r9d, cx
cmp cx, dx
jb 0x1401090b0
mov r8, qword [0x1402ce480]
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 0x1401091aa
mov rcx, qword [0x1402cba10]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword [0x1402ce5a8]
mov qword [0x1402ce480], rax
mov qword [0x1402ce5a8], r15
nop
call fcn.14010c340
mov eax, dword [0x1402ce550]
mov r15, qword [rsp + 0x40]
cmp eax, 2
jae 0x1401091dd
inc eax
mov dword [0x1402ce550], eax
nop dword [rax]
call fcn.14010ae80
call fcn.14010afc0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0x58
ret