Function at 0x4374b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c901
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x48e110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
shr eax, 0x10
mov ebx, edx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x1fc], edi
mov dword [ebp - 0x1f8], ecx
test eax, eax
je 0x43750f
mov dword [ecx], 0
mov eax, 1
jmp 0x43791f
mov dword [ebp - 4], 0
push str.E9A6339A_EF7C_4944_83D3_AA89E6DD0607
push str.32768
call dword [sym.imp.USER32.dll_FindWindowA]
push edi
mov esi, eax
push 0xffffffffffffffeb
push esi
mov dword [ebp - 0x200], esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x476844
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebx + 0x20]
lea edx, [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x244], edx
test ecx, ecx
jle 0x437564
mov edx, dword [edx]
cmp dword [edx], edi
je 0x4375d8
inc eax
add edx, 4
cmp eax, ecx
jl 0x437558
mov ecx, edi
call fcn.00437350
mov dword [ebp - 0x1f8], eax
test eax, eax
jne 0x437621
mov dword [ebp - 0x224], eax
push 0x10
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x228], 0x1c
mov dword [ebp - 0x224], 8
call fcn.0045a425
add esp, 4
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4375fa
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jmp 0x4375fc
cmp eax, 0xffffffff
je 0x437564
mov eax, dword [ebp - 0x1f8]
mov dword [eax], 1
mov dword [ebp - 4], 0xffffffff
mov eax, 1
jmp 0x43791f
xor eax, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
push ecx
mov byte [eax + 5], 0
mov dword [eax + 0xc], ebx
push edi
mov dword [ebp - 0x1f8], eax
mov dword [ebp - 0x210], eax
call dword [sym.imp.USER32.dll_SetMenuInfo]
push edi
mov byte [ebp - 0x1f1], 0
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], 0xffffffff
mov dword [ebp - 0x204], ebx
test esi, esi
jle 0x4378e4
xor edx, edx
push 0xc6
push edx
lea eax, [ebp - 0xd6]
push eax
mov word [ebp - 0xd8], dx
call fcn.0045c960
push 0x30
lea ecx, [ebp - 0x23c]
push 0
push ecx
call fcn.0045c960
push 0x110
lea edx, [ebp - 0x1ec]
push 0
push edx
mov dword [ebp - 0x23c], 0x30
call fcn.0045c960
add esp, 0x24
lea eax, [ebp - 0x1f0]
push eax
mov dword [ebp - 0x1f0], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4376d0
mov eax, dword [ebp - 0x1ec]
cmp eax, 5
jae 0x4376da
cmp eax, 4
jne 0x4376d0
cmp dword [ebp - 0x1e8], 0x5a
jae 0x4376da
mov dword [ebp - 0x23c], 0x2c
lea edx, [ebp - 0x23c]
push edx
push 1
push ebx
lea ecx, [ebp - 0xd8]
push edi
mov dword [ebp - 0x214], 0x64
mov dword [ebp - 0x238], 0x3e
mov dword [ebp - 0x218], ecx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test ebx, ebx
jne 0x437727
cmp dword [ebp - 0x22c], 0x29b
jne 0x437727
mov byte [ebp - 0x1f1], 1
jmp 0x4378be
push 0x1c
call fcn.0045a425
add esp, 4
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x43775d
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], 0xffffffff
mov esi, eax
jmp 0x43775f
xor esi, esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20c]
inc eax
push 0x400
mov dword [esi], edi
mov dword [ebp - 0x20c], eax
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x234]
push ebx
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_GetMenuState]
mov dword [esi + 0x10], eax
or dword [ebp - 0x234], 0x100
cmp dword [ebp - 0x22c], 0x29b
je 0x4377aa
test byte [esi + 0x10], 2
je 0x4377b4
or dword [ebp - 0x234], 0x800
mov ecx, dword [ebp - 0x234]
shr ecx, 9
and cl, 1
mov byte [esi + 0x18], cl
cmp word [ebp - 0xd8], 0x28
lea ebx, [ebp - 0xd8]
jne 0x43780d
push 0x29
lea edx, [ebp - 0xd6]
push edx
call dword [sym.imp.SHLWAPI.dll_StrChrIW]
mov edi, eax
test edi, edi
je 0x437807
lea eax, [ebp - 0xd6]
cmp edi, eax
jbe 0x437807
mov ecx, eax
push ecx
call fcn.0045b099
add esp, 4
lea ebx, [edi + 2]
test eax, eax
js 0x437807
mov dword [esi + 0x14], eax
mov edi, dword [ebp - 0x1fc]
mov ecx, dword [ebp - 0x240]
mov edx, dword [ecx]
mov edx, dword [edx]
push esi
lea eax, [ebp - 0x23c]
push eax
call edx
test dword [esi + 0xc], 0x800
je 0x437833
mov dword [esi + 8], 0
jmp 0x437876
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x437870
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045a0f6
add esp, 4
push ebx
push eax
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esi + 8]
xor ecx, ecx
mov word [eax + edi*2], cx
mov edi, dword [ebp - 0x1fc]
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x238], 0x20
cmp edx, dword [esi + 0xc]
je 0x43789b
mov dword [ebp - 0x238], 0x30
mov ecx, dword [ebp - 0x204]
lea eax, [ebp - 0x23c]
push eax
push 1
push ecx
push edi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov esi, dword [ebp - 0x208]
mov ebx, dword [ebp - 0x204]
inc ebx
mov dword [ebp - 0x204], ebx
cmp ebx, esi
jl 0x437651
cmp byte [ebp - 0x1f1], 0
je 0x4378e4
push 0x400
push 0
push edi
call dword [sym.imp.USER32.dll_RemoveMenu]
mov eax, dword [ebp - 0x1f8]
test eax, eax
je 0x4378ff
mov dl, byte [ebp - 0x1f1]
mov ecx, dword [ebp - 0x200]
mov byte [eax + 4], dl
mov dword [eax], ecx
mov esi, dword [ebp - 0x244]
lea ebx, [ebp - 0x200]
mov dword [ebp - 0x200], edi
call fcn.00431a20
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a10c
mov esp, ebp
pop ebp
ret 8