Function at 0x410d70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aa98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov eax, ecx
mov dword [ebp - 0x18], ebx
push esi
shr eax, 0x10
push edi
mov dword [ebp - 0x10], esp
test eax, eax
je 0x410dc6
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dl, byte [ebx + 0x84]
mov al, dl
shr al, 1
and al, 1
jne 0x410dd9
test dl, 1
je 0x410da5
test al, al
je 0x410e08
test ecx, ecx
jne 0x410df8
test dl, 0x10
jne 0x410df8
push ecx
push ecx
push 0x447
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, eax
mov esi, dword [ebp + 0xc]
push ecx
push esi
push dword [ebp + 8]
push dword [ebx + 4]
push dword [ebx + 0x40]
jmp 0x410e31
test ecx, ecx
jne 0x410e23
test dl, 0x10
jne 0x410e23
push ecx
push ecx
push 0x447
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, eax
mov esi, dword [ebp + 0xc]
push ecx
push esi
push dword [ebp + 8]
push dword [ebx + 0x5c]
push dword [ebx + 0x74]
call dword [sym.imp.USER32.dll_CallWindowProcA]
test byte [ebx + 0x86], 1
mov dword [ebp + 0xc], eax
je 0x410f5c
xor edi, edi
push esi
mov dword [ebp + 0x14], edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x41110d
jmp 0x410e60
push edi
push esi
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov ecx, dword [ebx + 0x50]
xor edi, edi
movzx edx, ax
test ecx, ecx
jle 0x410e84
mov eax, dword [ebx + 0x4c]
cmp word [eax], dx
je 0x410e87
inc edi
add eax, 2
cmp edi, ecx
jl 0x410e77
or edi, 0xffffffff
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00423310
push 0x90
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x48], 0x30
push 0
push eax
mov dword [ebp - 0xdc], 0x94
call fcn.00423310
add esp, 0x18
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x410ee5
mov eax, dword [ebp - 0xd8]
cmp eax, 5
jae 0x410eec
cmp eax, 4
jne 0x410ee5
cmp dword [ebp - 0xd4], 0x5a
jae 0x410eec
mov dword [ebp - 0x48], 0x2c
test byte [ebx + 0x84], 4
mov dword [ebp - 0x44], 0x80
je 0x410f1b
cmp edi, 0xffffffff
je 0x410f1b
test edi, edi
js 0x410f4b
cmp edi, dword [ebx + 0xb8]
jge 0x410f4b
mov eax, dword [ebx + 0xb4]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x1c], eax
jmp 0x410f22
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x48]
push eax
push 1
push edi
push esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
inc edi
push esi
mov dword [ebp + 0x14], edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x410e60
jmp 0x41110d
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.DLL_RaiseException]
test byte [ebx + 0x84], 4
je 0x41110d
mov dword [ebp - 0x14], esi
push 0x63
lea eax, [ebp - 0xab]
mov dword [ebp - 4], 0
push 0
push eax
mov byte [ebp - 0xac], 0
call fcn.00423310
add esp, 0xc
xor edi, edi
push esi
mov dword [ebp + 0x14], edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jge 0x4110fe
lea ecx, [ebp - 0x48]
call fcn.004020d0
lea eax, [ebp - 0xac]
mov dword [ebp - 0x20], 0x64
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
push eax
push 1
push edi
push esi
mov dword [ebp - 0x44], 0x3f
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
test dword [ebp - 0x40], 0x100
jne 0x4110f8
push 0x14
mov dword [ebp - 0x44], 0x31
mov byte [ebp - 4], 1
call fcn.0042344a
mov edi, eax
add esp, 4
test edi, edi
je 0x411001
mov dword [edi], 0x1313
mov dword [ebp + 8], eax
jmp 0x411006
xor edi, edi
mov dword [ebp + 8], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4110f5
mov eax, dword [ebp - 0x40]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0xc], eax
xor eax, eax
or dword [ebp - 0x40], 0x100
mov dword [edi + 0x10], 0xffffffff
cmp dword [ebx + 0x50], eax
jle 0x411067
mov edx, dword [ebp - 0x38]
lea esp, [esp]
test eax, eax
js 0x410f4b
cmp eax, dword [ebx + 0x50]
jge 0x410f4b
mov ecx, dword [ebx + 0x4c]
movzx ecx, word [ecx + eax*2]
cmp ecx, edx
je 0x411064
inc eax
cmp eax, dword [ebx + 0x50]
jl 0x411040
jmp 0x411067
mov dword [edi + 0x10], eax
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
mov dword [edi + 4], 0
push eax
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 3
call fcn.00423748
add esp, 4
mov dword [edi + 4], eax
jmp 0x4110a0
mov ecx, dword [edi + 4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x4110c8
lea edx, [ebp - 0xac]
push edx
push eax
push ecx
call fcn.00424f48
push eax
call fcn.00405100
add esp, 0x10
lea eax, [ebp - 0x48]
mov dword [ebp - 0x28], edi
mov edi, dword [ebp + 0x14]
push eax
push 1
push edi
push esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
inc edi
jmp 0x410f8f
mov edi, dword [ebp + 0x14]
inc edi
jmp 0x410f8f
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], esi
push eax
lea ecx, [ebx + 0x14]
call fcn.00403ad0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10