Function at 0x40e3b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4261b0
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x433074]
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 edi, ecx
mov dword [ebp - 0x168], edi
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + 0x34]
sub ecx, dword [eax + 0x30]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x184], esi
je 0x40e7e3
mov ebx, dword [edi + 0x70]
lea eax, [edi + 0x6c]
mov edx, dword [eax]
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x190], eax
sar ecx, 2
cmp esi, ecx
jae 0x40e45b
lea eax, [edx + esi*4]
mov dword [ebp - 0x16c], eax
mov esi, eax
cmp eax, ebx
je 0x40e450
mov eax, dword [esi]
test eax, eax
je 0x40e443
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
add esi, 4
cmp esi, ebx
jne 0x40e436
mov eax, dword [ebp - 0x16c]
mov esi, dword [ebp - 0x184]
mov dword [edi + 0x70], eax
jmp 0x40e495
jbe 0x40e495
mov eax, dword [eax + 8]
sub eax, edx
sar eax, 2
cmp esi, eax
jbe 0x40e47b
lea eax, [ebp - 0x171]
push eax
push esi
lea ecx, [edi + 0x6c]
call fcn.0040c0d0
jmp 0x40e495
mov edx, esi
sub edx, ecx
je 0x40e492
mov edi, ebx
mov ecx, edx
xor eax, eax
lea ebx, [ebx + edx*4]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x168]
mov dword [edi + 0x70], ebx
mov eax, dword [edi + 0x24]
push dword [eax + 0x28]
push dword [edi + 4]
call fcn.004023e0
push 0x2d
push dword [edi + 4]
mov ebx, eax
mov dword [ebp - 0x18c], ebx
call fcn.00402280
push 0x2e
push dword [edi + 4]
lea eax, [ebx + eax*4]
mov dword [ebp - 0x17c], eax
call fcn.00402280
add esp, 0x18
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebx + eax*4]
xor ebx, ebx
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x16c], ebx
test esi, esi
jle 0x40e7e3
mov dword [ebp - 4], 0
call fcn.00404d30
test eax, eax
je 0x40e7ff
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x170], eax
mov eax, dword [edi + 0x24]
lea ecx, [ebx*8]
sub ecx, ebx
mov dword [ebp - 4], 1
shl ecx, 2
mov dword [ebp - 0x178], ecx
mov eax, dword [eax + 0x30]
movzx eax, word [eax + ecx + 0x10]
test ax, ax
je 0x40e547
push eax
push 0x427efc
jmp 0x40e575
lea eax, [ebx + 1]
cmp eax, 0xa
jge 0x40e557
push eax
push 0x427f04
jmp 0x40e575
jne 0x40e56f
lea eax, [ebp - 0x170]
push 0x427f0c
push eax
call fcn.00404b60
add esp, 8
jmp 0x40e584
push eax
push 0x427f14
lea eax, [ebp - 0x170]
push eax
call fcn.00404b60
add esp, 0xc
push 0
push dword [0x433da4]
lea eax, [ebx + 0x3f4]
push eax
push dword [edi + 4]
mov edi, dword [ebp - 0x170]
push dword [ebp - 0x188]
push dword [ebp - 0x17c]
push 0
push 0
push 0x50010000
push edi
push str.BUTTON
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
mov esi, eax
mov eax, dword [ebp - 0x168]
push 0
push 0x31
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x168]
mov edx, dword [ecx + 0x24]
mov eax, dword [edx + 0x30]
add eax, dword [ebp - 0x178]
mov eax, dword [eax + 4]
cmp dword [eax - 0xc], 0
je 0x40e71a
cmp dword [ecx + 0x68], 0
jne 0x40e661
mov edi, dword [ebp - 0x168]
mov edx, dword [0x433038]
mov ebx, dword [0x433030]
sub edx, ebx
mov eax, dword [0x433034]
mov ecx, dword [0x43302c]
sub eax, ecx
push 0
push dword [0x433da4]
push 0
push dword [edi + 4]
push edx
push eax
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push str.tooltips_class32
push 8
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, dword [ebp - 0x16c]
mov ecx, edi
mov edi, dword [ebp - 0x170]
mov dword [ecx + 0x68], eax
mov edx, dword [ecx + 0x24]
mov eax, dword [edx + 0x30]
add eax, dword [ebp - 0x178]
push 0x30
push 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x50]
push eax
call fcn.004163d0
push 0x110
lea eax, [ebp - 0x160]
mov dword [ebp - 0x164], 0x114
push 0
push eax
call fcn.004163d0
add esp, 0x18
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40e6bf
cmp dword [ebp - 0x160], 6
mov eax, 0x30
jae 0x40e6c4
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 [0x433da8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x168]
push 0
push 0x432
mov dword [ebp - 0x44], esi
push dword [eax + 0x68]
mov dword [ebp - 0x28], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x168]
mov edx, dword [eax + 0x24]
mov ecx, dword [ebp - 0x178]
add ecx, dword [edx + 0x30]
mov eax, dword [ecx + 8]
cmp dword [eax - 0xc], 0
je 0x40e7ab
push dword [ebp - 0x18c]
lea edx, [ebp - 0x180]
push 0
push edx
push 0
push dword [ecx + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHDefExtractIconW]
test eax, eax
jne 0x40e7ab
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x40
cmp eax, ecx
je 0x40e76b
push ecx
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [ebp - 0x180]
push 1
push 0xf7
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x190]
mov eax, dword [eax]
lea esi, [eax + ebx*4]
mov eax, dword [esi]
test eax, eax
je 0x40e7a3
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x16c]
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40e7ca
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x168]
inc ebx
mov dword [ebp - 0x16c], ebx
cmp ebx, dword [ebp - 0x184]
jl 0x40e4f2
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.00414c7c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402060
int3