Function at 0x40cc40
Capabilities:
Check os version
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4243a0
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x431078]
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 dword [ebp - 0x170], ecx
mov edx, dword [ecx + 0x68]
mov eax, 0x2aaaaaab
sub edx, dword [ecx + 0x64]
imul edx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x180], esi
jne 0x40ccc6
push 0x3f2
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
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.0041345d
mov esp, ebp
pop ebp
ret
mov ebx, dword [ecx + 0x78]
lea edi, [ecx + 0x74]
mov edx, dword [edi]
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x17c], edi
sar ecx, 2
cmp esi, ecx
jae 0x40cd07
lea edi, [edx + esi*4]
mov esi, edi
cmp edi, ebx
je 0x40ccfc
mov eax, dword [esi]
test eax, eax
je 0x40ccf5
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
add esi, 4
cmp esi, ebx
jne 0x40cce8
mov eax, dword [ebp - 0x17c]
mov dword [eax + 4], edi
jmp 0x40cd40
jbe 0x40cd40
mov eax, dword [edi + 8]
sub eax, edx
sar eax, 2
cmp esi, eax
jbe 0x40cd26
lea eax, [ebp - 0x175]
mov ecx, edi
push eax
push esi
call fcn.0040b190
jmp 0x40cd40
mov edx, esi
sub edx, ecx
je 0x40cd3d
mov edi, ebx
mov ecx, edx
xor eax, eax
lea ebx, [ebx + edx*4]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x17c]
mov dword [edi + 4], ebx
xor esi, esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x174], esi
cmp dword [ebp - 0x180], esi
jle 0x40ccaa
mov dword [ebp - 4], 0
call fcn.00403eb0
test eax, eax
je 0x40d091
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x168], eax
mov ebx, dword [ebp - 0x170]
lea ecx, [esi + esi*2]
shl ecx, 3
mov dword [ebp - 4], 1
mov dword [ebp - 0x16c], ecx
mov eax, dword [ebx + 0x64]
movzx eax, word [eax + ecx + 0xc]
test ax, ax
je 0x40cdc2
push eax
push 0x425dfc
jmp 0x40cdf0
lea eax, [esi + 1]
cmp eax, 0xa
jge 0x40cdd2
push eax
push 0x425e04
jmp 0x40cdf0
jne 0x40cdea
lea eax, [ebp - 0x168]
push 0x425e0c
push eax
call fcn.00403ce0
add esp, 8
jmp 0x40cdff
push eax
push 0x425e14
lea eax, [ebp - 0x168]
push eax
call fcn.00403ce0
add esp, 0xc
test esi, esi
jne 0x40ce41
push 0x3f2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
push 0
push 0x31
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [ebp - 0x168]
push edi
push esi
mov dword [ebp - 0x184], eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x40ce93
mov edi, dword [ebp - 0x1c]
lea edx, [esi + 0x3f2]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
sub esi, edi
mov ecx, dword [ebp - 0x20]
sub eax, ecx
push 0
push dword [0x431d84]
push edx
push dword [ebx + 4]
push esi
push eax
push edi
mov edi, dword [ebp - 0x168]
push ecx
push 0x50010000
push edi
push 0x425ec4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
push dword [ebp - 0x184]
mov esi, eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebp - 0x16c]
mov eax, dword [eax + ecx + 4]
cmp dword [eax - 0xc], 0
je 0x40cfb2
cmp dword [ebx + 0x70], 0
jne 0x40cf07
mov edi, dword [ebp - 0x170]
mov edx, dword [0x431038]
mov ebx, dword [0x431030]
sub edx, ebx
mov eax, dword [0x431034]
mov ecx, dword [0x43102c]
sub eax, ecx
push 0
push dword [0x431d84]
push 0
push dword [edi + 4]
push edx
push eax
push ebx
push ecx
push SysStringLen
push 0
push str.tooltips_class32
push 8
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 0x16c]
mov ebx, edi
mov edi, dword [ebp - 0x168]
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x64]
push 0x30
push 0
mov eax, dword [eax + ecx + 4]
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x50]
push eax
call fcn.00414d90
push 0x110
lea eax, [ebp - 0x160]
mov dword [ebp - 0x164], 0x114
push 0
push eax
call fcn.00414d90
add esp, 0x18
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40cf60
cmp dword [ebp - 0x160], 6
mov eax, 0x30
jae 0x40cf65
mov eax, 0x2c
push esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0x10
call dword [sym.imp.USER32.dll_GetParent]
or dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], eax
mov eax, dword [0x431d88]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0x432
push dword [ebx + 0x70]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x28], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x16c]
mov eax, dword [ebx + 0x64]
mov eax, dword [eax + ecx + 8]
cmp dword [eax - 0xc], 0
je 0x40d054
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x31
mov ebx, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x170]
push 0x10
push ebx
push eax
mov ecx, dword [ecx + 0x64]
add ecx, dword [ebp - 0x16c]
push 1
push dword [ecx + 8]
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov ebx, eax
mov dword [ebp - 0x16c], ebx
test ebx, ebx
je 0x40d054
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x40
cmp eax, ecx
je 0x40d01d
push ecx
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push ebx
push 1
push 0xf7
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x17c]
mov esi, dword [ebp - 0x174]
mov eax, dword [eax]
lea ebx, [eax + esi*4]
mov eax, dword [ebx]
test eax, eax
je 0x40d04a
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x16c]
mov dword [ebx], eax
jmp 0x40d05a
mov esi, dword [ebp - 0x174]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40d079
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
mov dword [ebp - 0x174], esi
cmp esi, dword [ebp - 0x180]
jl 0x40cd70
jmp 0x40ccaa
push 0x80004005
call fcn.00402f20
int3