Function at 0x5b76d8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe30
push ebx
push esi
push edi
mov byte [ebp - 0x6a], cl
mov byte [ebp - 0x69], dl
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x5c], 0x6e2f8c
mov dword [ebp - 0x58], esp
mov eax, 0x56498f
mov dword [ebp - 0x60], eax
xor edx, edx
mov word [ebp - 0x54], 0
mov dword [ebp - 0x48], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x64], ecx
lea eax, [ebp - 0x64]
mov dword fs:[0], eax
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x70]
push edx
push ecx
mov eax, dword [ebp - 0x68]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x68]
mov bl, byte [ecx + 0x48]
mov eax, dword [ebp - 0x68]
call fcn.005b6f30
cmp dword [ebp - 0x70], 0
je 0x5b774b
cmp dword [ebp - 0x74], 0
jne 0x5b775c
mov edx, dword [ebp - 0x64]
mov dword fs:[0], edx
mov eax, edx
jmp 0x5b7e3b
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x44], 0
jne 0x5b7779
cmp byte [ebp - 0x6a], 0
jne 0x5b7779
test bl, bl
je 0x5b7779
mov edx, ebx
mov eax, dword [ebp - 0x68]
call fcn.005b6fd0
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x44], 0
jne 0x5b77b8
mov eax, dword [ebp - 0x68]
cmp byte [eax + 0x49], 1
jne 0x5b77a1
cmp byte [ebp - 0x69], 0
je 0x5b7795
mov dl, 2
jmp 0x5b7797
mov dl, 1
mov eax, dword [ebp - 0x68]
call fcn.005b6fd0
jmp 0x5b77b8
mov ecx, dword [ebp - 0x68]
cmp byte [ecx + 0x49], 0
je 0x5b77b8
mov eax, dword [ebp - 0x68]
mov dl, byte [eax + 0x49]
mov eax, dword [ebp - 0x68]
call fcn.005b6fd0
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x44], 0
jne 0x5b77da
cmp byte [ebp - 0x69], 0
jne 0x5b77da
cmp byte [0x6e1555], 0
jne 0x5b77da
mov dl, 1
mov eax, dword [ebp - 0x68]
call fcn.005b6fd0
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x44], 0
jne 0x5b77fc
mov eax, dword [ebp - 0x68]
cmp byte [eax + 0x40], 0
jne 0x5b77fc
cmp byte [ebp - 0x69], 0
jne 0x5b77fc
mov dl, 1
mov eax, dword [ebp - 0x68]
call fcn.005b6fd0
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x44], 0
jne 0x5b7db8
mov dword [ebp - 0xd0], 0x28
mov ecx, dword [ebp - 0x70]
xor edx, edx
mov dword [ebp - 0xcc], ecx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xc8], eax
xor eax, eax
mov word [ebp - 0xc4], 1
mov word [ebp - 0xc2], 0x20
mov dword [ebp - 0xc0], edx
xor edx, edx
mov ecx, dword [ebp - 0x70]
shl ecx, 2
imul ecx, dword [ebp - 0x74]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xbc]
add edx, 0x40
push edx
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0xbc]
push ecx
push 0
mov eax, dword [ebp - 0x78]
push eax
call fcn.0056420c
add esp, 0xc
xor edx, edx
mov dword [ebp - 0xe0], edx
xor ecx, ecx
mov dword [ebp - 0xdc], ecx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0xd4], edx
xor ecx, ecx
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x90], 0x6e1668
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x6e1664
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x8c]
mov cl, byte [edx]
mov byte [eax], cl
mov edx, dword [ebp - 0x8c]
mov dword [edx - 4], 0xbf800000
mov word [ebp - 0x54], 8
mov eax, dword [ebp - 0x8c]
mov dl, byte [eax]
mov eax, dword [ebp - 0x68]
call fcn.005b6fd0
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x44], 0
jne 0x5b797e
mov word [ebp - 0x54], 0x14
mov ecx, dword [ebp - 0x90]
mov ebx, dword [ecx]
mov eax, ebx
call fcn.00408c54
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
inc dword [ebp - 0x48]
lea ecx, [ebp - 8]
mov eax, str.Passthrough:_Could_not_create_drawer_object
call fcn.0040b19c
lea eax, [ebp - 8]
inc dword [ebp - 0x48]
call fcn.005bef00
dec dword [ebp - 0x48]
mov eax, dword [ebp - 8]
test eax, eax
je 0x5b7960
call fcn.00408920
mov word [ebp - 0x54], 8
dec dword [ebp - 0x48]
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b7d0d
call fcn.00408920
jmp 0x5b7d0d
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x44]
mov edx, dword [eax]
call dword [edx + 0x30]
mov word [ebp - 0x54], 8
cmp byte [0x6e1554], 0
je 0x5b7a2f
test al, 2
jne 0x5b7a2f
mov word [ebp - 0x54], 0x38
mov ecx, dword [ebp - 0x90]
mov ebx, dword [ecx]
mov eax, ebx
call fcn.00408c54
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0xc]
inc dword [ebp - 0x48]
lea ecx, [ebp - 0x10]
mov eax, str.Passthrough:_Drawer_object
call fcn.0040b19c
lea eax, [ebp - 0x10]
inc dword [ebp - 0x48]
lea ecx, [ebp - 0x14]
mov edx, str._does_not_have_smooth_zooming_functionality
call fcn.004016d4
lea eax, [ebp - 0x14]
inc dword [ebp - 0x48]
call fcn.005bef00
dec dword [ebp - 0x48]
cmp dword [ebp - 0x14], 0
je 0x5b79fe
mov eax, dword [ebp - 0x14]
call fcn.00408920
mov word [ebp - 0x54], 8
dec dword [ebp - 0x48]
cmp dword [ebp - 0x10], 0
je 0x5b7a15
mov eax, dword [ebp - 0x10]
call fcn.00408920
dec dword [ebp - 0x48]
cmp dword [ebp - 0xc], 0
je 0x5b7d0d
mov eax, dword [ebp - 0xc]
call fcn.00408920
jmp 0x5b7d0d
cmp byte [0x6e1554], 0
jne 0x5b7acf
test al, 1
jne 0x5b7acf
mov word [ebp - 0x54], 0x68
mov edx, dword [ebp - 0x90]
mov ebx, dword [edx]
mov eax, ebx
call fcn.00408c54
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x18]
inc dword [ebp - 0x48]
lea ecx, [ebp - 0x1c]
mov eax, str.Passthrough:_Drawer_object
call fcn.0040b19c
lea eax, [ebp - 0x1c]
inc dword [ebp - 0x48]
lea ecx, [ebp - 0x20]
mov edx, str._does_not_have_point_on_point_zooming_functionality
call fcn.004016d4
lea eax, [ebp - 0x20]
inc dword [ebp - 0x48]
call fcn.005bef00
dec dword [ebp - 0x48]
cmp dword [ebp - 0x20], 0
je 0x5b7a9e
mov eax, dword [ebp - 0x20]
call fcn.00408920
mov word [ebp - 0x54], 8
dec dword [ebp - 0x48]
cmp dword [ebp - 0x1c], 0
je 0x5b7ab5
mov eax, dword [ebp - 0x1c]
call fcn.00408920
dec dword [ebp - 0x48]
cmp dword [ebp - 0x18], 0
je 0x5b7d0d
mov eax, dword [ebp - 0x18]
call fcn.00408920
jmp 0x5b7d0d
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x44]
mov edx, dword [eax]
call dword [edx + 0x34]
call fcn.006a691e
mov ebx, eax
xor esi, esi
jmp 0x5b7b28
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0xd0]
push ecx
lea edx, [ebp - 0xe0]
push eax
push edx
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + 0x44]
xor ecx, ecx
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0x20]
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx + 0x44]
mov edx, dword [eax]
call dword [edx + 0x28]
inc esi
call fcn.006a691e
sub eax, ebx
cmp eax, 0x14d
jb 0x5b7ae5
call fcn.006a691e
mov word [ebp - 0x54], 8
mov edi, eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x38]
mov ecx, esi
sub edi, ebx
shl ecx, 3
xor eax, eax
add esp, 0xfffffff8
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
mov dword [ebp - 0x1c8], ecx
fild dword [ebp - 0x1c8]
mov dword [ebp - 0x1d0], edi
mov dword [ebp - 0x1cc], eax
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x130]
fild qword [ebp - 0x1d0]
fdivp st(1)
fstp dword [edx - 4]
mov ecx, dword [ebp - 0x8c]
fld dword [ecx - 4]
fstp qword [esp]
push str._.2f_fps
push eax
call fcn.00568270
mov word [ebp - 0x54], 0x98
mov edx, dword [ebp - 0x90]
add esp, 0x10
mov ebx, dword [edx]
mov eax, ebx
call fcn.00408c54
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x24]
inc dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
mov eax, str.Passthrough:_benchmark_result:
call fcn.0040b19c
lea eax, [ebp - 0x28]
inc dword [ebp - 0x48]
lea ecx, [ebp - 0x2c]
mov edx, 0x6e1b1e
call fcn.004016d4
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x130]
inc dword [ebp - 0x48]
call fcn.00408d58
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x30]
inc dword [ebp - 0x48]
lea ecx, [ebp - 0x34]
pop eax
call fcn.00401834
lea eax, [ebp - 0x34]
inc dword [ebp - 0x48]
call fcn.005bef00
dec dword [ebp - 0x48]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x5b7c28
call fcn.00408920
mov word [ebp - 0x54], 8
dec dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x5b7c3d
call fcn.00408920
dec dword [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x5b7c4c
call fcn.00408920
dec dword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5b7c5b
call fcn.00408920
dec dword [ebp - 0x48]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x5b7c6a
call fcn.00408920
mov edx, dword [ebp - 0x8c]
cmp byte [edx], 2
jne 0x5b7c80
mov ecx, dword [ebp - 0x8c]
xor eax, eax
mov dword [ecx - 4], eax
mov edx, dword [ebp - 0x8c]
cmp byte [edx], 3
jne 0x5b7cea
mov dword [ebp - 0x1c4], 0x94
lea ecx, [ebp - 0x1c4]
push ecx
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0x1c0], 6
jb 0x5b7cea
mov eax, dword [ebp - 0x8c]
xor edx, edx
mov dword [eax - 4], edx
mov word [ebp - 0x54], 0xe0
mov eax, str.Passthrough:_Windows_Vista__or_later__detected__DirectDraw_is_not_preferred
call fcn.00408c54
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
inc dword [ebp - 0x48]
call fcn.005bef00
dec dword [ebp - 0x48]
cmp dword [ebp - 0x38], 0
je 0x5b7ce4
mov eax, dword [ebp - 0x38]
call fcn.00408920
mov word [ebp - 0x54], 8
mov word [ebp - 0x54], 0
jmp 0x5b7d05
mov eax, dword [ebp - 0x68]
call fcn.005b6f30
inc dword [ebp - 0x7c]
add dword [ebp - 0x90], 4
add dword [ebp - 0x8c], 8
inc dword [ebp - 0x88]
cmp dword [ebp - 0x7c], 3
jl 0x5b78df
mov edx, dword [ebp - 0x78]
push edx
call sub.KERNEL32.DLL_GlobalFree
xor ecx, ecx
xor ebx, ebx
lea edx, [ebp - 0xa8]
fld dword [edx]
fcomp dword [edx + 8]
fnstsw ax
sahf
jae 0x5b7d75
mov ecx, dword [edx]
mov dword [ebp - 0x84], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x80], ecx
mov eax, dword [edx + 8]
mov dword [edx], eax
mov eax, dword [edx + 0xc]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x84]
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x80]
mov dword [edx + 0xc], ecx
mov cl, 1
inc ebx
add edx, 8
cmp ebx, 2
jl 0x5b7d41
test cl, cl
je 0x5b7d84
jmp 0x5b7d37
xor ebx, ebx
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x68]
mov dl, byte [edx]
call fcn.005b6fd0
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x44], 0
jne 0x5b7db8
inc ebx
add dword [ebp - 0x90], 8
cmp ebx, 3
jl 0x5b7d92
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x44], 0
jne 0x5b7dcb
mov eax, str.Fatal:_Could_not_create_any_drawer_objects.
call fcn.0066883c
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x44], 0
je 0x5b7e31
mov ecx, dword [ebp - 0x68]
cmp byte [ecx + 0x40], 0
je 0x5b7e31
mov word [ebp - 0x54], 0xf8
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x44]
mov ecx, dword [eax]
call dword [ecx + 4]
lea edx, [ebp - 0x3c]
inc dword [ebp - 0x48]
lea ecx, [ebp - 0x40]
mov eax, str.Passthrough:_Using_passthrough_draw_device:
call fcn.0040b19c
lea eax, [ebp - 0x40]
inc dword [ebp - 0x48]
call fcn.005bef00
dec dword [ebp - 0x48]
cmp dword [ebp - 0x40], 0
je 0x5b7e20
mov eax, dword [ebp - 0x40]
call fcn.00408920
dec dword [ebp - 0x48]
cmp dword [ebp - 0x3c], 0
je 0x5b7e31
mov eax, dword [ebp - 0x3c]
call fcn.00408920
mov edx, dword [ebp - 0x64]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret