Function at 0x475980
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x562040]
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 0x4759c4
call fcn.00421ff0
call dword [0x56d31c]
mov ecx, dword [ebx + 0x39c]
movzx eax, al
push eax
call esi
cmp dword [ebx + 0x3a0], 0
je 0x4759e4
call fcn.00421ff0
call dword [0x56d3e8]
mov ecx, dword [ebx + 0x3a0]
movzx eax, al
push eax
call esi
cmp dword [ebx + 0x3a4], 0
je 0x475a08
call fcn.00421ff0
call dword [0x56d3e8]
xor ecx, ecx
test al, al
sete cl
push ecx
mov ecx, dword [ebx + 0x3a4]
call esi
cmp dword [ebx + 0x3a8], 0
je 0x475a28
call fcn.00421ff0
call dword [0x56d3dc]
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 0x475a58
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 0x475b93
call fcn.00421ff0
call dword [0x56d33c]
mov ecx, dword [ebx + 0x3b0]
movzx eax, al
push eax
call esi
push 0x118
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004d4ca0
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 0x475b05
push str.RtlGetNtVersionNumbers
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x475af5
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
je 0x475af5
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 0x475b2f
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x124]
push eax
call edi
test eax, eax
jne 0x475b2f
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0x114
push eax
call edi
test eax, eax
je 0x475b80
cmp dword [ebp - 0x120], 6
jne 0x475b80
cmp dword [ebp - 0x11c], 1
jne 0x475b80
call fcn.00421ff0
lea ecx, [ebp - 0xa28]
call fcn.00422920
lea eax, [ebp - 0xa28]
push eax
call dword [0x56d3c0]
add esp, 4
test al, al
je 0x475b79
mov eax, dword [ebp - 0xa28]
cmp eax, 6
je 0x475b79
cmp eax, 7
je 0x475b79
test eax, eax
jne 0x475b80
mov eax, 1
jmp 0x475b82
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 0x475bff
call fcn.00421ff0
call dword [0x56d3ac]
mov ecx, dword [ebx + 0x3b4]
movzx eax, al
push eax
call esi
call fcn.00421ff0
lea ecx, [ebp - 0xa28]
call fcn.00422920
lea eax, [ebp - 0xa28]
push eax
call dword [0x56d3c0]
add esp, 4
test al, al
je 0x475bef
mov eax, dword [ebp - 0xa28]
cmp eax, 6
je 0x475bef
cmp eax, 7
je 0x475bef
test eax, eax
je 0x475bef
xor eax, eax
jmp 0x475bf4
mov eax, 1
mov ecx, dword [ebx + 0x3b4]
push 1
push eax
call edi
cmp dword [ebx + 0x3b8], 0
je 0x475c7d
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 0x475c57
cmp esi, 0x5a0
jl 0x475c57
mov edi, 1
call fcn.00421ff0
call dword [0x56d44c]
test al, al
je 0x475c59
mov eax, edi
jmp 0x475c5b
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.004cfcce
mov esp, ebp
pop ebp
ret