Function at 0x475c30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x564040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetCheck_int_]
push edi
cmp dword [ebx + 0x39c], 0
mov dword [ebp - 0xa30], ebx
je 0x475c74
call fcn.00422100
call dword [0x56f404]
mov ecx, dword [ebx + 0x39c]
movzx eax, al
push eax
call esi
cmp dword [ebx + 0x3a0], 0
je 0x475c94
call fcn.00422100
call dword [0x56f4d0]
mov ecx, dword [ebx + 0x3a0]
movzx eax, al
push eax
call esi
cmp dword [ebx + 0x3a4], 0
je 0x475cb8
call fcn.00422100
call dword [0x56f4d0]
xor ecx, ecx
test al, al
sete cl
push ecx
mov ecx, dword [ebx + 0x3a4]
call esi
cmp dword [ebx + 0x3a8], 0
je 0x475cd8
call fcn.00422100
call dword [0x56f4c4]
mov ecx, dword [ebx + 0x3a8]
movzx eax, al
push eax
call esi
mov ecx, dword [ebx + 0x3ac]
mov edi, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::EnableWindow_int__int_]
test ecx, ecx
je 0x475d08
push 0
call esi
mov ecx, dword [ebx + 0x3ac]
push 1
push 0
call edi
mov ecx, dword [ebx + 0x3ac]
push 1
push 0
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetVisible_int__int_]
cmp dword [ebx + 0x3b0], 0
je 0x475e43
call fcn.00422100
call dword [0x56f424]
mov ecx, dword [ebx + 0x3b0]
movzx eax, al
push eax
call esi
push 0x118
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004d6cd0
add esp, 0xc
mov dword [ebp - 0x124], 0x11c
mov dword [ebp - 0xa2c], 0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x475db5
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x475da5
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
je 0x475da5
xor eax, eax
mov dword [ebp - 0xa2c], 1
mov word [ebp - 0x116], ax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0xa2c], 0
jne 0x475ddf
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x124]
push eax
call edi
test eax, eax
jne 0x475ddf
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0x114
push eax
call edi
test eax, eax
je 0x475e30
cmp dword [ebp - 0x120], 6
jne 0x475e30
cmp dword [ebp - 0x11c], 1
jne 0x475e30
call fcn.00422100
lea ecx, [ebp - 0xa28]
call fcn.00422ac0
lea eax, [ebp - 0xa28]
push eax
call dword [0x56f4a8]
add esp, 4
test al, al
je 0x475e29
mov eax, dword [ebp - 0xa28]
cmp eax, 6
je 0x475e29
cmp eax, 7
je 0x475e29
test eax, eax
jne 0x475e30
mov eax, 1
jmp 0x475e32
xor eax, eax
mov ecx, dword [ebx + 0x3b0]
mov edi, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::EnableWindow_int__int_]
push 1
push eax
call edi
cmp dword [ebx + 0x3b4], 0
je 0x475eaf
call fcn.00422100
call dword [0x56f494]
mov ecx, dword [ebx + 0x3b4]
movzx eax, al
push eax
call esi
call fcn.00422100
lea ecx, [ebp - 0xa28]
call fcn.00422ac0
lea eax, [ebp - 0xa28]
push eax
call dword [0x56f4a8]
add esp, 4
test al, al
je 0x475e9f
mov eax, dword [ebp - 0xa28]
cmp eax, 6
je 0x475e9f
cmp eax, 7
je 0x475e9f
test eax, eax
je 0x475e9f
xor eax, eax
jmp 0x475ea4
mov eax, 1
mov ecx, dword [ebx + 0x3b4]
push 1
push eax
call edi
cmp dword [ebx + 0x3b8], 0
je 0x475f2d
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 0x76
push ebx
call esi
push 0x75
push ebx
mov edi, eax
call esi
push ebx
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp edi, 0xa00
jl 0x475f07
cmp esi, 0x5a0
jl 0x475f07
mov edi, 1
call fcn.00422100
call dword [0x56f534]
test al, al
je 0x475f09
mov eax, edi
jmp 0x475f0b
xor edi, edi
xor eax, eax
mov esi, dword [ebp - 0xa30]
push eax
mov ecx, dword [esi + 0x3b8]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetCheck_int_]
mov ecx, dword [esi + 0x3b8]
push 1
push edi
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::EnableWindow_int__int_]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1b1e
mov esp, ebp
pop ebp
ret