Function at 0x140041094
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rdx, [rsp + 0x20]
lea rcx, str.VS_Reliability_GDIHandleInfo
call fcn.14005f5b8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetGuiResources]
mov dword [0x140090098], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14004111b
mov r9, qword [rcx]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Process.HandlesInUse.Current
call qword [r9 + 0x40]
cmp dword [0x140090098], 0
jne 0x14004111b
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 0x140041156
jne 0x140041266
cmp dword [rsp + 0x38], 1
jb 0x140041266
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 2
call qword [sym.imp.USER32.dll_GetGuiResources]
mov dword [0x14009009c], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400411b4
mov r9, qword [rcx]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Process.HandlesInUse.Peak
call qword [r9 + 0x40]
cmp dword [0x14009009c], 0
jne 0x1400411b4
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 [0x140090090], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14004120a
mov r9, qword [rcx]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Session.HandlesInUse.Current
call qword [r9 + 0x40]
cmp dword [0x140090090], 0
jne 0x14004120a
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 [0x140090094], eax
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140041266
mov r9, qword [rcx]
mov r8d, eax
lea rdx, str.VS.Reliability.GDIHandleInfo.Session.HandlesInUse.Peak
call qword [r9 + 0x40]
cmp dword [0x140090094], 0
jne 0x140041266
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 0x140041280
call fcn.14005f8b0
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x140041282
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140001020
add rsp, 0x160
pop rbx
ret