Function at 0x5865e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6637b8
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 0x58662a
mov dword [ebp - 0x14], ebx
cmp cx, 0xd
jne 0x586631
mov dword [ebp - 0x14], 0x10001
cmp al, bl
je 0x5867f1
mov edx, ecx
shr edx, 0x10
cmp edx, 0x10
jne 0x5867e9
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 0x5867dd
jmp 0x586676
mov esi, dword [ebp + 0x10]
push 0x30
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.006100a0
push pe_nt_image_headers32
lea ecx, [ebp - 0x1a0]
push ebx
push ecx
mov dword [ebp - 0x90], 0x30
call fcn.006100a0
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 0x5866d8
mov eax, dword [ebp - 0x1a0]
cmp eax, 5
jae 0x5866e2
cmp eax, 4
jne 0x5866d8
cmp dword [ebp - 0x19c], 0x5a
jae 0x5866e2
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 0x586789
test dword [ebp - 0x88], 0x800
jne 0x586789
mov eax, dword [ebp - 0x70]
cmp eax, ebx
je 0x586789
cmp dword [eax], 0x1313
jne 0x586789
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x586789
movzx ecx, word [eax]
cmp cx, bx
je 0x586789
jmp 0x586740
cmp cx, 0x26
je 0x586757
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
cmp cx, bx
jne 0x586740
jmp 0x586789
cmp word [eax], bx
je 0x586789
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 0x586789
cmp byte [ebp - 0xd], bl
jne 0x586795
movzx edx, di
mov dword [ebp - 0x20], edx
mov byte [ebp - 0xd], 1
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x586673
jmp 0x58679c
mov dword [ebp - 0x1c], 3
cmp byte [ebp - 0xd], bl
je 0x5867dd
mov edi, dword [ebp - 0x1c]
cmp edi, 2
jne 0x5867c5
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.005857d0
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 0x58693c
cmp al, bl
jne 0x58693c
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 0x586865
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.005857d0
cmp word [ebp + 0xc], 0x2f
jne 0x58693c
mov ecx, esi
call fcn.00583310
test al, al
mov eax, dword [ebp - 0x14]
je 0x58693f
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 0x58693c
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 0x586935
test al, 8
jne 0x586935
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x30]
jg 0x586935
mov edi, esi
mov al, byte [edi + 0x85]
test al, 2
je 0x58690e
test al, 4
jne 0x58690e
or al, 8
push 1
mov ecx, edi
mov byte [edi + 0x85], al
call fcn.00584240
mov ecx, edi
call fcn.005833d0
mov eax, dword [esi + 4]
push ebx
push 0x28
push 0x100
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [esi + 4]
call fcn.00583400
jmp 0x58693c
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