Function at 0x1400248d0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rdx, [rsp + 0x20]
lea rcx, str.VS_Reliability_GDIHandleInfo
call fcn.14005fd78
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetGuiResources]
mov dword [0x140091c1c], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140024957
mov r9, qword [rcx]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Process.HandlesInUse.Current
call qword [r9 + 0x40]
cmp dword [0x140091c1c], 0
jne 0x140024957
mov rax, qword [rsp + 0x20]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Process.HandlesInUse.Current.Error
mov rcx, qword [rsp + 0x20]
call qword [rbx + 0x40]
mov ebx, 0x11c
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x34], 6
ja 0x140024992
jne 0x140024aa2
cmp dword [rsp + 0x38], 1
jb 0x140024aa2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 2
call qword [sym.imp.USER32.dll_GetGuiResources]
mov dword [0x140091c18], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400249f0
mov r9, qword [rcx]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Process.HandlesInUse.Peak
call qword [r9 + 0x40]
cmp dword [0x140091c18], 0
jne 0x1400249f0
mov rax, qword [rsp + 0x20]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Process.HandlesInUse.Peak.Error
mov rcx, qword [rsp + 0x20]
call qword [rbx + 0x40]
xor edx, edx
lea rcx, [rdx - 2]
call qword [sym.imp.USER32.dll_GetGuiResources]
mov dword [0x140091c14], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140024a46
mov r9, qword [rcx]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Session.HandlesInUse.Current
call qword [r9 + 0x40]
cmp dword [0x140091c14], 0
jne 0x140024a46
mov rax, qword [rsp + 0x20]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Session.HandlesInUse.Current.Error
mov rcx, qword [rsp + 0x20]
call qword [rbx + 0x40]
mov edx, 2
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.USER32.dll_GetGuiResources]
mov dword [0x140091c10], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140024aa2
mov r9, qword [rcx]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Session.HandlesInUse.Peak
call qword [r9 + 0x40]
cmp dword [0x140091c10], 0
jne 0x140024aa2
mov rax, qword [rsp + 0x20]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Session.HandlesInUse.Peak.Error
mov rcx, qword [rsp + 0x20]
call qword [rbx + 0x40]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140024abc
call fcn.140060064
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x140024abe
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140052570
add rsp, 0x160
pop rbx
ret