Function at 0x477a50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f39d
mov eax, dword fs:[0]
push eax
mov eax, 0x147c
call fcn.004d49d0
mov eax, dword [0x567040]
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 ebx, ecx
mov dword [ebp - 0x1484], ebx
cmp dword [ebx + 0x398], 0
mov edi, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetCheck_int_]
je 0x477afa
call fcn.004340b0
lea ecx, [ebp - 0x28]
lea edx, [eax + 0x124]
call fcn.00416480
mov edx, eax
mov dword [ebp - 4], 0
call fcn.0041a1a0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00414f90
call fcn.0041ccc0
test esi, esi
je 0x477ad8
push 1
jmp 0x477ada
push 0
call dword [0x572394]
add esp, 4
call fcn.0041ccc0
call dword [0x5723a8]
mov ecx, dword [ebx + 0x398]
movzx eax, al
push eax
call edi
cmp dword [ebx + 0x39c], 0
je 0x477b1a
call fcn.0041ccc0
call dword [0x5723c8]
mov ecx, dword [ebx + 0x39c]
movzx eax, al
push eax
call edi
cmp dword [ebx + 0x3a0], 0
je 0x477b3a
call fcn.0041ccc0
call dword [0x5724ac]
mov ecx, dword [ebx + 0x3a0]
movzx eax, al
push eax
call edi
cmp dword [ebx + 0x3a4], 0
je 0x477b5e
call fcn.0041ccc0
call dword [0x5724ac]
xor ecx, ecx
test al, al
sete cl
push ecx
mov ecx, dword [ebx + 0x3a4]
call edi
cmp dword [ebx + 0x3a8], 0
je 0x477b7e
call fcn.0041ccc0
call dword [0x5724a0]
mov ecx, dword [ebx + 0x3a8]
movzx eax, al
push eax
call edi
cmp dword [ebx + 0x3ac], 0
mov esi, dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::EnableWindow_int__int_]
je 0x477bf0
call fcn.0041ccc0
call dword [0x5722f4]
mov ecx, dword [ebx + 0x3ac]
movzx eax, al
push eax
call edi
call fcn.0041ccc0
lea ecx, [ebp - 0xa50]
call fcn.0041d6c0
lea eax, [ebp - 0xa50]
push eax
call dword [0x572478]
add esp, 4
test al, al
je 0x477be0
mov eax, dword [ebp - 0xa50]
cmp eax, 6
je 0x477be0
cmp eax, 7
je 0x477be0
test eax, eax
je 0x477be0
xor eax, eax
jmp 0x477be5
mov eax, 1
mov ecx, dword [ebx + 0x3ac]
push 1
push eax
call esi
cmp dword [ebx + 0x3b0], 0
je 0x477d30
call fcn.0041ccc0
call dword [0x5723e8]
mov ecx, dword [ebx + 0x3b0]
movzx eax, al
push eax
call edi
push 0x118
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.004d8e30
add esp, 0xc
mov dword [ebp - 0x150], 0x11c
mov dword [ebp - 0x147c], 0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x1480], eax
test eax, eax
je 0x477ca6
push str.RtlGetNtVersionNumbers
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x477c91
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x148]
push ecx
lea ecx, [ebp - 0x14c]
push ecx
call eax
test eax, eax
je 0x477c91
xor eax, eax
mov dword [ebp - 0x147c], 1
mov word [ebp - 0x142], ax
push dword [ebp - 0x1480]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x147c], 0
jne 0x477cd2
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x477cd2
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x477d23
cmp dword [ebp - 0x14c], 6
jne 0x477d23
cmp dword [ebp - 0x148], 1
jne 0x477d23
call fcn.0041ccc0
lea ecx, [ebp - 0xa50]
call fcn.0041d6c0
lea eax, [ebp - 0xa50]
push eax
call dword [0x572478]
add esp, 4
test al, al
je 0x477d1c
mov eax, dword [ebp - 0xa50]
cmp eax, 6
je 0x477d1c
cmp eax, 7
je 0x477d1c
test eax, eax
jne 0x477d23
mov eax, 1
jmp 0x477d25
xor eax, eax
mov ecx, dword [ebx + 0x3b0]
push 1
push eax
call esi
cmp dword [ebx + 0x3b4], 0
je 0x477d9c
call fcn.0041ccc0
call dword [0x572464]
mov ecx, dword [ebx + 0x3b4]
movzx eax, al
push eax
call edi
call fcn.0041ccc0
lea ecx, [ebp - 0xa50]
call fcn.0041d6c0
lea eax, [ebp - 0xa50]
push eax
call dword [0x572478]
add esp, 4
test al, al
je 0x477d8c
mov eax, dword [ebp - 0xa50]
cmp eax, 6
je 0x477d8c
cmp eax, 7
je 0x477d8c
test eax, eax
je 0x477d8c
xor eax, eax
jmp 0x477d91
mov eax, 1
mov ecx, dword [ebx + 0x3b4]
push 1
push eax
call esi
cmp dword [ebx + 0x3b8], 0
je 0x477e0c
call fcn.0041ccc0
call dword [0x572484]
xor ecx, ecx
test al, al
sete cl
push ecx
mov ecx, dword [ebx + 0x3b8]
call edi
call fcn.0041ccc0
lea ecx, [ebp - 0x1478]
call fcn.0041d6c0
lea eax, [ebp - 0x1478]
push eax
call dword [0x572478]
add esp, 4
test al, al
je 0x477dfc
mov eax, dword [ebp - 0x1478]
cmp eax, 6
je 0x477dfc
cmp eax, 7
je 0x477dfc
test eax, eax
je 0x477dfc
xor eax, eax
jmp 0x477e01
mov eax, 1
mov ecx, dword [ebx + 0x3b8]
push 1
push eax
call esi
cmp dword [ebx + 0x3bc], 0
je 0x477e8a
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 0x477e64
cmp esi, 0x5a0
jl 0x477e64
mov edi, 1
call fcn.0041ccc0
call dword [0x572510]
test al, al
je 0x477e66
mov eax, edi
jmp 0x477e68
xor edi, edi
xor eax, eax
mov esi, dword [ebp - 0x1484]
push eax
mov ecx, dword [esi + 0x3bc]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::SetCheck_int_]
mov ecx, dword [esi + 0x3bc]
push 1
push edi
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SWindow::EnableWindow_int__int_]
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.004d402e
mov esp, ebp
pop ebp
ret