Function at 0x4d5e30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591e38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], 1
mov al, byte [esi + 0x84]
and al, 1
push edi
mov dword [ebp - 0x18], esi
mov ebx, 0
je 0x4d5e7a
mov dword [ebp - 0x14], ebx
cmp cx, 0xd
jne 0x4d5e81
mov dword [ebp - 0x14], 0x10001
cmp al, bl
je 0x4d6041
mov edx, ecx
shr edx, 0x10
cmp edx, 0x10
jne 0x4d6039
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x60], esi
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor edi, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0xd], bl
cmp eax, ebx
jle 0x4d602d
jmp 0x4d5ec6
mov esi, dword [ebp + 0x10]
push 0x30
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.00555020
push 0x110
lea ecx, [ebp - 0x1a0]
push ebx
push ecx
mov dword [ebp - 0x90], 0x30
call fcn.00555020
add esp, 0x18
lea edx, [ebp - 0x1a4]
push edx
mov dword [ebp - 0x1a4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, ebx
je 0x4d5f28
mov eax, dword [ebp - 0x1a0]
cmp eax, 5
jae 0x4d5f32
cmp eax, 4
jne 0x4d5f28
cmp dword [ebp - 0x19c], 0x5a
jae 0x4d5f32
mov dword [ebp - 0x90], 0x2c
lea ecx, [ebp - 0x90]
push ecx
push 1
push edi
lea eax, [ebp - 0x26c]
push esi
mov dword [ebp - 0x68], 0x64
mov dword [ebp - 0x8c], 0x3f
mov dword [ebp - 0x6c], eax
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
cmp eax, ebx
je 0x4d5fd9
test dword [ebp - 0x88], 0x800
jne 0x4d5fd9
mov eax, dword [ebp - 0x70]
cmp eax, ebx
je 0x4d5fd9
cmp dword [eax], 0x1313
jne 0x4d5fd9
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x4d5fd9
movzx ecx, word [eax]
cmp cx, bx
je 0x4d5fd9
jmp 0x4d5f90
cmp cx, 0x26
je 0x4d5fa7
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x4d5f90
jmp 0x4d5fd9
cmp word [eax], bx
je 0x4d5fd9
movzx esi, word [eax + 2]
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push esi
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_CharLowerW]
cmp eax, dword [ebp - 0x28]
jne 0x4d5fd9
cmp byte [ebp - 0xd], bl
jne 0x4d5fe5
movzx edx, di
mov dword [ebp - 0x20], edx
mov byte [ebp - 0xd], 1
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x4d5ec3
jmp 0x4d5fec
mov dword [ebp - 0x1c], 3
cmp byte [ebp - 0xd], bl
je 0x4d602d
mov edi, dword [ebp - 0x1c]
cmp edi, 2
jne 0x4d6015
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 4]
push ebx
push 0xffffffffffffffff
push 0x448
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, esi
call fcn.004d50f0
movzx edx, word [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
movzx eax, di
shl eax, 0x10
or eax, edx
mov dword [ecx], 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4d618c
cmp al, bl
jne 0x4d618c
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp + 0x10]
push eax
movzx ecx, cx
push ecx
push 0x45a
push edx
mov dword [ebp + 0x10], ebx
call edi
test eax, eax
jne 0x4d60b5
mov edi, dword [ebp + 0x14]
push ebx
push 0xffffffffffffffff
mov dword [edi], ebx
mov eax, dword [esi + 4]
push 0x448
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, esi
call fcn.004d50f0
cmp word [ebp + 0xc], 0x2f
jne 0x4d618c
mov ecx, esi
call fcn.004d2cf0
test al, al
mov eax, dword [ebp - 0x14]
je 0x4d618f
mov dword [edi], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4d618c
mov ecx, dword [esi + 4]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push ecx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 4]
xor eax, eax
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
push eax
push 0x41d
push ecx
mov dword [ebp - 0x48], ebx
call edi
mov ecx, dword [esi + 4]
xor eax, eax
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
push eax
push 0x417
push ecx
mov dword [ebp - 0x5c], ebx
call edi
mov al, byte [ebp - 0x54]
test al, 4
je 0x4d6185
test al, 8
jne 0x4d6185
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x30]
jg 0x4d6185
mov edi, esi
mov al, byte [edi + 0x85]
test al, 2
je 0x4d615e
test al, 4
jne 0x4d615e
or al, 8
push 1
mov ecx, edi
mov byte [edi + 0x85], al
call fcn.004d3b50
mov ecx, edi
call fcn.004d2db0
mov eax, dword [esi + 4]
push ebx
push 0x28
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [esi + 4]
call fcn.004d2de0
jmp 0x4d618c
push ebx
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10