Function at 0x42f7d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x5b706c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x110
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [ebp - 0x124], 0x114
call fcn.00525340
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42f89f
cmp dword [ebp - 0x120], 6
jb 0x42f89f
xorps xmm0, xmm0
mov dword [ebp - 0x374], 0x14
push str.comctl32.dll
xor ebx, ebx
movlpd qword [ebp - 0x370], xmm0
movlpd qword [ebp - 0x368], xmm0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x42f89f
push str.DllGetVersion
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x42f870
mov esi, 0x80004001
jmp 0x42f87b
lea ecx, [ebp - 0x374]
push ecx
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
js 0x42f88e
mov ebx, dword [ebp - 0x370]
jmp 0x42f896
cmp esi, 0x80004001
je 0x42f89f
test esi, esi
js 0x42f89f
cmp ebx, 6
jae 0x42f8a6
mov eax, 0x50
jmp 0x42f8ab
mov eax, 0x64
push 0x60
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00525340
mov esi, dword [ebp - 0x438]
lea ecx, [ebp - 0x42c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
mov dword [ebp - 0x428], 0x10
mov eax, dword [esi + 4]
push ecx
push dword [eax + 0xc]
push 0x41c
push dword [eax]
call ebx
mov edi, dword [ebp - 0x40c]
push 0
push 0
push 0x418
push edi
call ebx
mov dword [ebp - 0x440], eax
test eax, eax
jle 0x42fbc1
push 0
push 0
push 0x52e
push edi
call ebx
test eax, eax
mov dword [ebp - 0x43c], eax
setne al
mov byte [esi + 8], al
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov esi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x360]
push eax
push edi
movups xmmword [ebp - 0x360], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
xor ebx, ebx
nop dword [eax]
lea eax, [ebp - 0x340]
mov dword [ebp - 0x330], 0
push eax
push ebx
push 0x417
xorps xmm0, xmm0
push edi
movups xmmword [ebp - 0x340], xmm0
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [ebp - 0x338], 8
jne 0x42fb96
lea eax, [ebp - 0x350]
xorps xmm0, xmm0
push eax
push ebx
push 0x41d
push edi
movups xmmword [ebp - 0x350], xmm0
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [ebp - 0x338]
shr al, 2
and al, 1
mov byte [ebp - 0x42d], al
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp - 0x358]
jg 0x42f9d4
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x354]
jle 0x42fb96
test byte [ebp - 0x337], 1
je 0x42f9fa
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x42fb96
push 0
push 0
push 0x800
jmp 0x42fb8f
mov eax, dword [ebp - 0x438]
push 0x190
push 0
cmp byte [eax + 8], 0
je 0x42faad
lea eax, [ebp - 0x32c]
push eax
call fcn.00525340
add esp, 0xc
mov dword [ebp - 0x384], 0
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x378], 0
mov dword [ebp - 0x380], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x3a4]
movlpd qword [ebp - 0x39c], xmm0
push eax
push 1
push ebx
push dword [ebp - 0x43c]
movlpd qword [ebp - 0x394], xmm0
movlpd qword [ebp - 0x38c], xmm0
mov dword [ebp - 0x3a4], 0x30
mov dword [ebp - 0x3a0], 0x14
mov dword [ebp - 0x37c], 0xc8
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
movzx eax, byte [ebp - 0x42d]
push dword [ebp - 0x380]
xor eax, 1
push dword [ebp - 0x390]
or eax, 0x10
jmp 0x42fb8e
lea eax, [ebp - 0x19c]
push eax
call fcn.00525340
add esp, 0xc
mov dword [ebp - 0x3c4], 0x20
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x3c0], 2
mov dword [ebp - 0x434], eax
xorps xmm0, xmm0
mov dword [ebp - 0x3ac], eax
lea eax, [ebp - 0x3c4]
push eax
push dword [ebp - 0x33c]
movlpd qword [ebp - 0x3bc], xmm0
push 0x43f
push edi
movlpd qword [ebp - 0x3b4], xmm0
mov dword [ebp - 0x3a8], 0xc8
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x42fb27
cmp word [ebp - 0x19c], 0
jne 0x42fb65
push 0xc8
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x434], 0x584430
push eax
push dword [ebp - 0x33c]
push dword [0x5be65c]
call dword [sym.imp.USER32.dll_LoadStringW]
xor ecx, ecx
test eax, eax
jle 0x42fb78
cmp word [ebp + ecx*2 - 0x19c], 0xa
je 0x42fb6d
inc ecx
cmp ecx, eax
jl 0x42fb55
mov eax, dword [ebp - 0x434]
jmp 0x42fb7d
lea eax, [ebp - 0x19a]
lea eax, [eax + ecx*2]
jmp 0x42fb7d
mov eax, 0x584430
push eax
movzx eax, byte [ebp - 0x42d]
push dword [ebp - 0x33c]
xor eax, 1
push eax
push esi
call dword [sym.imp.USER32.dll_AppendMenuW]
inc ebx
cmp ebx, dword [ebp - 0x440]
jl 0x42f950
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jne 0x42fbd6
test esi, esi
je 0x42fbb9
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x438]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov dword [eax], esi
mov al, 1
pop esi
pop ebx
call fcn.0051e9d8
mov esp, ebp
pop ebp
ret 4