Function at 0x140042f30
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1400922d0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rdx, [rsp + 0x20]
lea rcx, str.VS_Reliability_GDIHandleInfo
call fcn.1400623cc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetGuiResources]
mov dword [0x14009509c], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140042fb7
mov r9, qword [rcx]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Process.HandlesInUse.Current
call qword [r9 + 0x40]
cmp dword [0x14009509c], 0
jne 0x140042fb7
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 0x140042ff2
jne 0x140043102
cmp dword [rsp + 0x38], 1
jb 0x140043102
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 2
call qword [sym.imp.USER32.dll_GetGuiResources]
mov dword [0x1400950a0], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140043050
mov r9, qword [rcx]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Process.HandlesInUse.Peak
call qword [r9 + 0x40]
cmp dword [0x1400950a0], 0
jne 0x140043050
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 [0x140095090], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400430a6
mov r9, qword [rcx]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Session.HandlesInUse.Current
call qword [r9 + 0x40]
cmp dword [0x140095090], 0
jne 0x1400430a6
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 [0x140095098], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140043102
mov r9, qword [rcx]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Session.HandlesInUse.Peak
call qword [r9 + 0x40]
cmp dword [0x140095098], 0
jne 0x140043102
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 0x14004311c
call fcn.1400626b0
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x14004311e
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140001020
add rsp, 0x160
pop rbx
ret