Function at 0x442720
Capabilities:
Check os version

Disassembly:
sub esp, 0x458
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
cmp eax, edi
jne 0x44273e
pop edi
xor eax, eax
pop esi
add esp, 0x458
ret
push ebx
push ebp
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov ebp, eax
mov dword [esp + 0x14], edi
cmp ebp, edi
jle 0x4427ed
mov ebx, dword [sym.imp.USER32.dll_GetMenuItemInfoW]
jmp 0x442760
push 0x30
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049e6e0
push 0x110
lea ecx, [esp + 0x60]
push 0
push ecx
mov dword [esp + 0x34], 0x30
mov dword [esp + 0x64], 0x114
call fcn.0049e6e0
add esp, 0x18
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4427b6
mov eax, dword [esp + 0x50]
cmp eax, 5
jae 0x4427be
cmp eax, 4
jne 0x4427b6
cmp dword [esp + 0x54], 0x5a
jae 0x4427be
mov dword [esp + 0x1c], 0x2c
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x1c]
push eax
push 1
push edi
push ecx
mov dword [esp + 0x30], 2
call ebx
cmp dword [esp + 0x2c], 0xe110
je 0x4427e9
inc edi
cmp edi, ebp
jl 0x442760
jmp 0x4427ed
mov dword [esp + 0x14], edi
mov edx, dword [esi + 0xc]
mov edi, 0xe110
add edx, edi
cmp edx, edi
jle 0x442823
jmp 0x442800
cmp edi, 0xe110
je 0x442815
mov eax, dword [esi + 0x10]
push 0
push edi
push eax
call dword [sym.imp.USER32.dll_DeleteMenu]
mov ecx, dword [esi + 0xc]
inc edi
add ecx, 0xe110
cmp edi, ecx
jl 0x442800
xor edx, edx
push 0x212
push edx
lea eax, [esp + 0x25e]
push eax
mov word [esp + 0x260], dx
call fcn.0049e6e0
mov ebx, dword [esi + 4]
add esp, 0xc
mov dword [esp + 0x18], ebx
test ebx, ebx
jle 0x44296d
xor ebp, ebp
test ebx, ebx
jle 0x4429a0
lea eax, [ebx - 1]
imul ebx, ebx, 0x208
lea edi, [ebp + 1]
mov dword [esp + 0x10], eax
sub ebx, 0x208
jmp 0x442884
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x21c], 0xffffffff
jne 0x4428c0
test eax, eax
js 0x44295c
cmp eax, dword [esi + 4]
jge 0x44295c
mov ecx, dword [esi]
add ecx, ebx
push ecx
push edi
push str._i__s
lea edx, [esp + 0x260]
push 0x10a
push edx
call fcn.004417b0
add esp, 0x14
jmp 0x44291d
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x56]
push ecx
mov word [esp + 0x58], ax
call fcn.0049e6e0
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
js 0x44295c
cmp eax, dword [esi + 4]
jge 0x44295c
mov eax, dword [esi + 0x21c]
mov edx, dword [esi]
push eax
add edx, ebx
push edx
lea eax, [esp + 0x54]
push eax
call fcn.00441850
lea ecx, [esp + 0x58]
push ecx
push edi
push str._i__s
lea edx, [esp + 0x26c]
push 0x10a
push edx
call fcn.004417b0
add esp, 0x20
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x254]
push eax
lea ecx, [edi + 0xe10f]
push ecx
mov ecx, dword [esi + 0x10]
push 0x400
lea eax, [edx + edi - 1]
push eax
push ecx
call dword [sym.imp.USER32.dll_InsertMenuW]
dec dword [esp + 0x10]
inc ebp
sub ebx, 0x208
inc edi
cmp ebp, dword [esp + 0x18]
jl 0x442880
jmp 0x4429a0
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [esi + 0x14]
push edx
push 0xe110
push 0x400
push eax
push ecx
call dword [sym.imp.USER32.dll_InsertMenuW]
mov edx, dword [esi + 0x10]
push 1
push 0xe110
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ebp, 1
add ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
push 0x400
push ebp
push ecx
call dword [sym.imp.USER32.dll_DeleteMenu]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x458
ret