Function at 0x100165a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 0xa8], edx
setne bl
mov dword [ebp - 0x9c], ecx
call fcn.100b0900
movzx ecx, bl
xor edx, edx
mov ebx, dword [ebp - 0x9c]
test al, al
cmovne ecx, edx
mov dword [ebp - 0xa4], ecx
mov eax, dword [ebx]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.100120c0
mov eax, dword [ebp - 0x98]
cmp eax, dword [0x1014be40]
je 0x10016618
mov al, byte [eax + 0x61]
mov byte [ebp - 0x91], al
jmp 0x1001661f
mov byte [ebp - 0x91], 0
call fcn.10012030
cmp byte [ebp - 0x91], al
je 0x10016633
mov ecx, dword [ebx]
call fcn.1001c480
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x5c]
push 0
push 0
call fcn.100147d0
add esp, 8
mov edi, eax
mov dword [ebp - 0xa0], edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
mov dword [ebp - 0x80], 0x24
xorps xmm0, xmm0
sbb eax, eax
and eax, 0xffffffc0
add eax, 0x291
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x80]
push eax
push 4
movups xmmword [ebp - 0x7c], xmm0
movups xmmword [ebp - 0x6c], xmm0
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
mov esi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
test al, 1
je 0x100166f3
test edi, edi
jne 0x100166af
mov eax, dword [ebp - 0x58]
add eax, 5
cmp dword [ebp - 0xc], eax
setl al
jmp 0x100166d8
cmp edi, 2
jne 0x100166bc
lea eax, [esi - 5]
cmp dword [ebp - 0x14], eax
jmp 0x100166d5
cmp edi, 1
jne 0x100166cc
lea eax, [edx + 5]
cmp dword [ebp - 8], eax
setl al
jmp 0x100166d8
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffffb
cmp dword [ebp - 0x10], eax
setg al
mov ecx, dword [ebp - 0x98]
test al, al
je 0x100166f9
and ecx, 0xffffffbf
or ecx, 0x80
mov dword [ebp - 0x98], ecx
jmp 0x100166f9
mov ecx, dword [ebp - 0x98]
cmp edi, 1
je 0x1001670d
cmp edi, 3
je 0x1001670d
cmp dword [ebp - 0x10], edx
jge 0x10016725
mov dword [ebp - 0x10], edx
jmp 0x10016725
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x58]
cmovl eax, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
cmp eax, esi
cmovg eax, esi
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xa8]
mov eax, dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x9c], 0
test byte [esi + 0x18], 4
je 0x1001674b
or ecx, 4
mov dword [ebp - 0x98], ecx
jmp 0x100167ae
mov esi, dword [esi + 4]
mov dword [ebp - 0x9c], esi
test esi, esi
jne 0x1001676d
push 0xffffffffffffffec
push dword [ebx + 8]
call eax
test al, 8
jne 0x10016789
mov eax, dword [sym.imp.USER32.dll_GetWindowLongW]
or esi, 0xffffffff
jmp 0x10016772
cmp esi, 0xffffffff
jne 0x10016789
push 0xffffffffffffffec
push dword [ebx + 4]
call eax
test al, 8
mov eax, 0
cmove esi, eax
mov dword [ebp - 0x9c], esi
mov ecx, dword [ebp - 0x98]
mov eax, ecx
or eax, 4
cmp esi, 1
cmovne eax, ecx
mov dword [ebp - 0x98], eax
cmp esi, dword [ebx + 8]
jne 0x100167ae
or eax, 4
mov dword [ebp - 0x98], eax
mov eax, dword [ebx]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.100120c0
mov eax, dword [ebp - 0xac]
cmp eax, dword [0x1014be40]
je 0x100167e2
mov al, byte [eax + 0x61]
test al, al
jne 0x10016877
mov cx, word [0x10159320]
test cx, cx
jne 0x1001680d
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
movzx eax, al
shr ecx, 8
movzx ecx, cl
shl ax, 8
or cx, ax
mov word [0x10159320], cx
mov eax, 0x602
cmp cx, ax
jae 0x10016826
call dword [sym.imp.UxTheme.dll_IsAppThemed]
test eax, eax
sete al
test al, al
jmp 0x10016859
push 0
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], 0xc
push eax
push 0xc
xorps xmm0, xmm0
push 0x42
movq qword [ebp - 0xb4], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x1001685b
test byte [ebp - 0xb4], 1
jne 0x10016877
cmp edi, 1
jne 0x10016864
push 0xffffffffffffffff
jmp 0x1001686b
cmp edi, 3
jne 0x10016877
push 1
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
cmp byte [ebp - 0xa4], 0
je 0x1001688d
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
test edi, edi
je 0x10016a08
cmp edi, 2
je 0x10016a08
push 0xffffffffffffffec
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x400000
je 0x100168c3
cmp byte [ebp - 0xa4], 0
mov edi, dword [ebp - 0xc]
cmovne edi, dword [ebp - 0x2c]
sub edi, dword [ebx + 0x20]
jmp 0x100168d1
cmp byte [ebp - 0xa4], 0
mov edi, dword [ebp - 0x14]
cmovne edi, dword [ebp - 0x34]
mov esi, dword [0x1014e914]
cmp dword [esi], 0
je 0x10016912
nop dword [eax]
mov eax, dword [esi + 4]
cmp eax, 2
je 0x100168f7
cmp eax, 3
je 0x100168f7
cmp eax, 4
je 0x100168f7
cmp eax, 5
jne 0x1001690a
push str.StartButtonType
push dword [esi]
call fcn.100dc721
add esp, 8
test eax, eax
je 0x1001695f
add esi, 0x60
cmp dword [esi], 0
jne 0x100168e0
mov eax, dword [ebp - 0x10]
sub eax, dword [ebx + 0x24]
add eax, dword [ebp - 8]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
call fcn.100b0900
test al, al
je 0x10016a67
cmp edi, dword [ebp - 0x58]
jne 0x10016a67
call fcn.100115e0
test eax, eax
jne 0x10016a67
mov ecx, dword [ebx + 4]
push 0x60
call fcn.100b0ea0
push eax
push 6
call dword [sym.imp.KERNEL32.dll_MulDiv]
add edi, eax
jmp 0x10016a67
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov esi, dword [esi + 0x40]
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp esi, 2
jne 0x10016912
mov esi, dword [0x1014e914]
cmp dword [esi], 0
je 0x10016912
cmp dword [esi + 4], 1
jne 0x100169a1
push str.StartButtonAlign
push dword [esi]
call fcn.100dc721
add esp, 8
test eax, eax
je 0x100169ae
add esi, 0x60
cmp dword [esi], 0
jne 0x10016988
jmp 0x10016912
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
cmp word [esi + 0x38], 3
jne 0x100169cd
cmp dword [esi + 0x40], 1
mov byte [ebp - 0x91], 1
je 0x100169d4
mov byte [ebp - 0x91], 0
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp byte [ebp - 0x91], 0
je 0x10016912
cmp dword [ebp - 0xa0], 1
jne 0x100169fd
mov esi, dword [ebp - 0x10]
jmp 0x10016922
mov esi, dword [ebp - 8]
sub esi, dword [ebx + 0x24]
jmp 0x10016922
mov esi, dword [0x1014e914]
cmp dword [esi], 0
je 0x10016a49
mov eax, dword [esi + 4]
cmp eax, 2
je 0x10016a2a
cmp eax, 3
je 0x10016a2a
cmp eax, 4
je 0x10016a2a
cmp eax, 5
jne 0x10016a41
push str.StartButtonType
push dword [esi]
call fcn.100dc721
add esp, 8
test eax, eax
je 0x10016b44
add esi, 0x60
cmp dword [esi], 0
jne 0x10016a13
mov eax, dword [ebp - 0x14]
sub eax, dword [ebx + 0x20]
add eax, dword [ebp - 0xc]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp byte [ebp - 0xa4], 0
mov esi, dword [ebp - 0x10]
cmovne esi, dword [ebp - 0x30]
mov eax, dword [ebx + 0x20]
add eax, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x24]
add eax, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [ebp - 0x84]
sub eax, esi
push eax
mov eax, dword [ebp - 0x88]
sub eax, edi
push eax
mov eax, dword [ebp - 0x8c]
sub eax, esi
push eax
mov eax, dword [ebp - 0x90]
sub eax, edi
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 0
push eax
push dword [ebx + 8]
mov dword [ebp - 0xa0], eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
test eax, eax
jne 0x10016ade
push dword [ebp - 0xa0]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x98]
push 0
push 0
push esi
push edi
push dword [ebp - 0x9c]
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
test byte [ebp - 0x98], 0x40
je 0x10016b33
mov eax, dword [ebx]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.100120c0
mov eax, dword [ebp - 0xac]
cmp eax, dword [0x1014be40]
je 0x10016b33
lea ecx, [eax + 0x14]
call fcn.10010bf0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d4906
mov esp, ebp
pop ebp
ret
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov esi, dword [esi + 0x40]
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp esi, 2
jne 0x10016a49
mov esi, dword [0x1014e914]
cmp dword [esi], 0
je 0x10016a49
cmp dword [esi + 4], 1
jne 0x10016b8e
push str.StartButtonAlign
push dword [esi]
call fcn.100dc721
add esp, 8
test eax, eax
je 0x10016b9b
add esi, 0x60
cmp dword [esi], 0
jne 0x10016b75
jmp 0x10016a49
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
cmp word [esi + 0x38], 3
jne 0x10016bba
cmp dword [esi + 0x40], 1
mov byte [ebp - 0x91], 1
je 0x10016bc1
mov byte [ebp - 0x91], 0
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
cmp byte [ebp - 0x91], 0
je 0x10016a49
test edi, edi
jne 0x10016be5
mov edi, dword [ebp - 0x14]
jmp 0x10016a59
mov edi, dword [ebp - 0xc]
sub edi, dword [ebx + 0x20]
jmp 0x10016a59