Function at 0x454350
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x5ef300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.soui4.dll_public:_int___thiscall_SOUI::SWindow::IsMsgHandled_void_const]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x148], eax
cmp ebx, 5
jne 0x4544b2
push 1
call dword [sym.imp.soui4.dll_public:_void___thiscall_SOUI::SWindow::SetMsgHandled_int_]
cmp dword [ebp + 0xc], 1
je 0x45470c
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call dword [sym.imp.soui4.dll_public:_class_SOUI::CRect___thiscall_SOUI::SWindow::GetWindowRect_void_]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x45470c
mov eax, dword [edi]
push edi
call dword [eax + 0x138]
mov esi, dword [sym.imp.soui4.dll_public:_int___thiscall_SOUI::SLayoutSize::toPixelSize_int_const]
lea ecx, [edi + 0x230]
push eax
call esi
mov dword [ebp - 0x14c], eax
mov eax, dword [edi]
push edi
call dword [eax + 0x138]
push eax
lea ecx, [edi + 0x238]
call esi
cmp dword [ebp - 0x14c], 0
mov esi, eax
jg 0x454417
test esi, esi
jle 0x4544a7
mov dword [ebp - 0x144], 0
mov dword [ebp - 4], 0
call dword [sym.imp.soui4.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, dword [eax + 4]
add eax, 4
push eax
call dword [ecx + 0x60]
lea edx, [ebp - 0x144]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x20]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x144]
push 5
push esi
push dword [ebp - 0x14c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [edi]
push 1
push dword [ebp - 0x144]
push edi
call dword [eax + 0xd8]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x4544a0
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [sym.imp.soui4.dll_public:_int___thiscall_SOUI::SWindow::IsMsgHandled_void_const]
jmp 0x45470c
cmp ebx, 0x201
jne 0x454596
push 1
call dword [sym.imp.soui4.dll_public:_void___thiscall_SOUI::SWindow::SetMsgHandled_int_]
mov edx, dword [ebp - 0x154]
movzx eax, dx
mov ecx, eax
mov dword [ebp - 0x144], ecx
movsx ecx, ax
mov eax, edx
shr eax, 0x10
cwde
movzx eax, ax
mov dword [ebp - 0x150], eax
movzx eax, cx
mov dword [ebp - 0x14c], eax
mov eax, dword [edi]
push edi
call dword [eax + 0xb0]
test eax, eax
je 0x454517
mov eax, dword [edi]
push edi
call dword [eax + 0xb8]
mov ecx, dword [ebp - 0x144]
movzx eax, cx
mov dword [ebp - 0x14c], eax
mov eax, dword [edi]
push edi
call dword [eax + 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0xfffffffffffffff0
push eax
mov dword [ebp - 0x144], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
je 0x454548
mov dword [edi + 0x22c], 1
jmp 0x45470c
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xf012
push 0x112
push dword [ebp - 0x144]
call esi
mov eax, dword [ebp - 0x150]
movzx ecx, ax
mov eax, dword [ebp - 0x14c]
movzx eax, ax
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
push 0x202
push dword [ebp - 0x144]
call esi
mov esi, dword [sym.imp.soui4.dll_public:_int___thiscall_SOUI::SWindow::IsMsgHandled_void_const]
jmp 0x45470c
cmp ebx, 0x203
jne 0x454636
push 1
call dword [sym.imp.soui4.dll_public:_void___thiscall_SOUI::SWindow::SetMsgHandled_int_]
mov eax, dword [edi]
push edi
call dword [eax + 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0xfffffffffffffff0
push eax
mov dword [ebp - 0x144], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000
je 0x45470c
push 0xfffffffffffffff0
push dword [ebp - 0x144]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000
je 0x45470c
push 0xfffffffffffffff0
push dword [ebp - 0x144]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0
test eax, 0x1000000
je 0x45461b
push 0xf122
push 0x112
push dword [ebp - 0x144]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x45470c
push 0xf032
push 0x112
push dword [ebp - 0x144]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x45470c
cmp ebx, 0x200
jne 0x4546f2
push 1
call dword [sym.imp.soui4.dll_public:_void___thiscall_SOUI::SWindow::SetMsgHandled_int_]
mov eax, dword [edi]
push edi
call dword [eax + 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0xfffffffffffffff0
push eax
mov dword [ebp - 0x150], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
je 0x45470c
cmp dword [edi + 0x22c], 0
je 0x45470c
push 0x118
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.0052dd20
add esp, 0xc
mov dword [ebp - 0x140], 0x11c
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4546c9
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45470c
cmp byte [ebp - 0x26], 1
jne 0x45470c
cmp dword [ebp - 0x13c], 6
jne 0x45470c
push 0
push 0xf012
push 0x112
push dword [ebp - 0x150]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x454702
cmp ebx, 0x202
jne 0x454720
push 1
call dword [sym.imp.soui4.dll_public:_void___thiscall_SOUI::SWindow::SetMsgHandled_int_]
mov dword [edi + 0x22c], 0
mov eax, dword [ebp - 0x148]
mov ecx, edi
mov dword [eax], 0
call esi
test eax, eax
jne 0x454742
mov ecx, edi
call esi
test eax, eax
jne 0x454742
push dword [ebp - 0x148]
mov ecx, edi
push dword [ebp - 0x154]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.soui4.dll_protected_virtual:_int___thiscall_SOUI::SWindow::ProcessSwndMessage_unsigned_int__unsigned_int__long_int__long_int__]
jmp 0x454747
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b3fa
mov esp, ebp
pop ebp
ret 0x10