Function at 0x661c50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff44
push ebx
push esi
mov ebx, eax
mov byte [ebp - 1], 0
mov eax, ebx
mov edx, dword [sym.StartupControl.exe__Scommondata_TsCommonData_]
call fcn.004c0b94
test al, al
je 0x6624e5
mov dword [ebp - 0x18], ebx
xor edx, edx
mov eax, dword [ebp - 0x18]
call sym.StartupControl.exe__Scommondata_TsCommonData_Skinned_qqrxo
test al, al
je 0x6624e5
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xa0], 0
je 0x6624e5
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xa0]
cmp byte [eax + 0xa8], 0
jne 0x6624e5
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 0xb4]
mov eax, ebx
mov edx, dword [0x525b10]
call fcn.004c0b94
test al, al
je 0x661ced
mov eax, ebx
call fcn.005337a4
test al, al
je 0x6624e5
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xb4]
call fcn.005333f8
mov dword [ebp - 0x14], eax
jmp 0x661d43
mov eax, dword [ebp - 0x18]
call sym.StartupControl.exe__Scommondata_TsCommonData_OwnerHandle_qqrv
test eax, eax
je 0x661d06
mov eax, dword [ebp - 0x18]
call sym.StartupControl.exe__Scommondata_TsCommonData_OwnerHandle_qqrv
mov dword [ebp - 0x14], eax
jmp 0x661d43
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 0xb4]
mov eax, ebx
mov edx, dword [sym.StartupControl.exe__Sspeedbutton_TsSpeedButton_]
call fcn.004c0b94
test al, al
je 0x6624e5
cmp dword [ebx + 0x30], 0
je 0x6624e5
mov eax, dword [ebx + 0x30]
call fcn.005337a4
test al, al
je 0x6624e5
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xa0]
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
call sym.StartupControl.exe__Acntutils_MkRect_qqrp16Graphics_TBitmap
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xb4]
call sym.StartupControl.exe__Svclutils_acMousePos_qqrp17Controls_TControl
lea edx, [ebp - 0xa8]
lea eax, [ebp - 0xa0]
call fcn.004a7b9c
test al, al
je 0x6624ba
push 0
push 4
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x30]
imul eax
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x24]
imul eax
add ebx, eax
mov dword [ebp - 0xac], ebx
fild dword [ebp - 0xac]
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.004c0070
call fcn.004c0080
call fcn.004c3f50
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x661ddf
call fcn.004c0884
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x24]
cmp eax, ebx
jge 0x661e00
mov eax, ebx
add eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x70], 2
jne 0x661ef9
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x80], 6
jne 0x661ec9
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x84], 2
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xb4]
call sym.StartupControl.exe__Svclutils_acMousePos_qqrp17Controls_TControl
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xa8]
mov dword [eax + 0x94], edx
mov edx, dword [ebp - 0xa4]
mov dword [eax + 0x98], edx
mov eax, dword [ebp - 0x2c]
mov ecx, 0x7fffffff
mov dword [eax + 0x80], ecx
mov eax, 0xff
cdq
idiv ecx
mov dword [ebp - 0xac], eax
fild dword [ebp - 0xac]
mov eax, dword [ebp - 0x2c]
fstp qword [eax + 0x60]
wait
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax*2]
mov dword [ebp - 0xac], eax
fild dword [ebp - 0xac]
fdiv dword [0x6624f0]
mov eax, dword [ebp - 0x2c]
fstp qword [eax + 0x58]
wait
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x90], 0
je 0x661eeb
mov eax, dword [ebp - 0x2c]
add eax, 0x90
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax], ecx
mov eax, edx
call fcn.004c09bc
jmp 0x661eeb
fild dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
fsubr qword [eax + 0x58]
fdiv dword [0x6624f4]
mov eax, dword [ebp - 0x2c]
fadd qword [eax + 0x58]
fadd dword [0x6624f8]
mov eax, dword [ebp - 0x2c]
fstp qword [eax + 0x58]
wait
mov dword [ebp - 0x20], 1
xor ebx, ebx
jmp 0x662034
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xad], 0
je 0x661f1f
push 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xb4]
mov ecx, 0x170000
mov edx, 0xa100
call fcn.0052bdd4
fild dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
fsub qword [eax + 0x58]
fdiv dword [0x6624f4]
mov eax, dword [ebp - 0x2c]
fadd qword [eax + 0x58]
fadd dword [0x6624f8]
mov eax, dword [ebp - 0x2c]
fstp qword [eax + 0x58]
wait
fild dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
fsub qword [eax + 0x58]
fcomp dword [0x6624fc]
wait
fnstsw ax
sahf
jae 0x661f64
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], ax
jmp 0x661f71
fild dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
fsub qword [eax + 0x58]
fstp xword [ebp - 0x38]
wait
fld xword [ebp - 0x38]
fmul dword [0x662500]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0xac], eax
fild dword [ebp - 0xac]
fdivp st(1)
call fcn.004c0080
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
jne 0x661fa7
cmp dword [ebp - 0x40], 0
jae 0x661fb9
jmp 0x661fa9
jge 0x661fb9
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
jmp 0x661fc5
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x661fd6
cmp dword [ebp - 0x48], 0xff
jbe 0x661fe8
jmp 0x661fd8
jle 0x661fe8
mov dword [ebp - 0x50], 0xff
mov dword [ebp - 0x4c], 0
jmp 0x661ff4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
cmp edx, 0
jne 0x662004
cmp eax, 0xff
jbe 0x66200b
call fcn.004c0884
mov ebx, eax
mov eax, dword [ebp - 0x18]
call sym.StartupControl.exe__Scommondata_TsCommonData_GetSkinManager_qqrv
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 0x10]
cmp byte [eax + 0xd], 2
jne 0x66202d
mov dword [ebp - 0x20], 0x28
jmp 0x662034
mov dword [ebp - 0x20], 0xa
fild dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
fsub qword [eax + 0x58]
fcomp dword [0x6624fc]
wait
fnstsw ax
sahf
jae 0x662057
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x58], ax
jmp 0x662064
fild dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
fsub qword [eax + 0x58]
fstp xword [ebp - 0x60]
wait
fild dword [ebp - 0x24]
fdiv dword [0x662504]
fld xword [ebp - 0x60]
fmulp st(1)
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0xac], eax
fild dword [ebp - 0xac]
fdivp st(1)
call fcn.004c0080
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 0
jne 0x66209f
cmp dword [ebp - 0x68], 1
jae 0x6620b1
jmp 0x6620a1
jge 0x6620b1
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], 0
jmp 0x6620bd
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x6620d1
call fcn.004c0884
mov esi, eax
fild dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
fsub qword [eax + 0x58]
fcomp dword [0x6624fc]
wait
fnstsw ax
sahf
jae 0x6620f6
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov word [ebp - 0x78], ax
jmp 0x662103
fild dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
fsub qword [eax + 0x58]
fstp xword [ebp - 0x80]
wait
fld xword [ebp - 0x80]
fmul dword [0x662500]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0xac], eax
fild dword [ebp - 0xac]
fdivp st(1)
call fcn.004c0080
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x84], 0
jne 0x662145
cmp dword [ebp - 0x88], 0
jae 0x66215d
jmp 0x662147
jge 0x66215d
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
jmp 0x662175
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x66218f
call fcn.004c0884
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x78], eax
mov eax, dword [ebp - 0x2c]
fld qword [eax + 0x58]
call fcn.004c0080
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x6621ae
call fcn.004c0884
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 0x2c]
add eax, 0x8c
call sym.StartupControl.exe__Sgraphutils_CheckBmp_qqrrp16Graphics_TBitmapp16Graphics_TBitmap
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x88], 0
je 0x662228
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x88]
call fcn.00502d6c
call fcn.004fdd24
push eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x8c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x8c]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x8c]
call fcn.00502d6c
call fcn.004fdd24
push eax
call sub.GDI32.DLL_BitBlt
push 0
push 0
push esi
push 0
push 0
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 0x18]
call sym.StartupControl.exe__Scommondata_GetLightColor_qqrpx24Scommondata_TsCommonDatai
or eax, 0x66000000
mov edx, dword [ebp - 0x24]
sar edx, 1
jns 0x66224e
adc edx, 0
xor ecx, ecx
call sym.StartupControl.exe__Sgradient_MakeShadow_qqr15Graphics_TColoriiiiioo
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
sar eax, 1
jns 0x662267
adc eax, 0
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0x94]
sub edx, eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
sar eax, 1
jns 0x662284
adc eax, 0
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx + 0x98]
sub edx, eax
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x78]
sar eax, 1
jns 0x6622a3
adc eax, 0
cmp eax, 0xff
jbe 0x6622af
call fcn.004c0884
push eax
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0x1c]
call sym.StartupControl.exe__Acntutils_MkRect_qqrp16Graphics_TBitmap
lea ecx, [ebp - 0xbc]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x8c]
mov edx, dword [ebp - 0x1c]
call sym.StartupControl.exe__Sgraphutils_PaintBmpRect32_qqrpx16Graphics_TBitmapt1rx11Types_TRectrx12Types_TPointuc
test bl, bl
je 0x6622ef
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x8c]
mov ecx, ebx
call sym.StartupControl.exe__Sgraphutils_SumBitmaps_qqrp16Graphics_TBitmapt1xuc
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 0x5c]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x8c]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x70]
movzx ecx, byte [0x662508]
mov eax, dword [ebp - 0x18]
call sym.StartupControl.exe__Salphagraph_UpdateCorners_qqrp24Scommondata_TsCommonDatai48System__Set_t20Salphagraph_TsCorner_iuc_0_iuc_3
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x5c], ebx
cmp dword [ebp - 0x14], 0
je 0x662333
mov eax, dword [ebp - 0x14]
push eax
call sub.USER32.DLL_GetWindowDC
mov dword [ebp - 8], eax
jmp 0x66234a
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xb4]
mov eax, dword [eax + 0x1a0]
call fcn.004fdd24
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x6623cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x7b9688]
mov eax, dword [eax]
cmp byte [eax + 0x31], 1
jne 0x66236f
xor edx, edx
mov eax, dword [ebp - 8]
call sym.StartupControl.exe__Sgraphutils_acSetLayout_qqrp5HDC__ui
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x8c]
call fcn.00502d6c
call fcn.004fdd24
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6623d3
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.USER32.DLL_ReleaseDC
ret
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x6624d3
mov eax, dword [eax + 0x84]
dec eax
sub eax, 2
jb 0x6624e5
xor edx, edx
mov eax, dword [ebp - 0x18]
call sym.StartupControl.exe__Scommondata_TsCommonData_Invalidate_qqrxo
mov eax, dword [ebp - 0x18]
call sym.StartupControl.exe__Scommondata_StopTimer_qqrp24Scommondata_TsCommonData
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret