Function at 0x437940
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46deda
mov eax, dword fs:[0]
push eax
sub esp, 0x174
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 + 8]
shr eax, 0x10
mov esi, edx
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x130], ecx
cmp eax, 0xffff
jne 0x437c36
cmp dword [ebp + 0xc], 0
jne 0x437c36
mov eax, dword [esi + 0x20]
lea ecx, [eax - 1]
test ecx, ecx
js 0x437bc8
mov edx, dword [esi + 0x1c]
mov edi, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ecx, eax
jge 0x437bc8
lea ebx, [eax - 1]
cmp ecx, ebx
je case.0x4379e5.0
sub eax, ecx
add eax, eax
add eax, eax
lea ecx, [eax - 4]
push ecx
lea ebx, [edx + 4]
push ebx
push eax
push edx
call fcn.0045ad76
add esp, 0x10
cmp eax, 0x50
ja case.0x4379e5.1
movzx eax, byte [eax + 0x437c78]
jmp dword [eax*4 + 0x437c68]
dec dword [esi + 0x20]
test edi, edi
je 0x437bc8
xor ebx, ebx
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x437b16
jmp 0x437a10
mov esi, 0x30
push esi
lea ecx, [ebp - 0x180]
push 0
push ecx
call fcn.0045c960
push 0x110
lea edx, [ebp - 0x124]
push 0
push edx
mov dword [ebp - 0x180], esi
call fcn.0045c960
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x437a74
mov eax, dword [ebp - 0x124]
cmp eax, 5
jae 0x437a7e
cmp eax, 4
jne 0x437a74
cmp dword [ebp - 0x120], 0x5a
jae 0x437a7e
mov dword [ebp - 0x180], 0x2c
lea ecx, [ebp - 0x180]
push ecx
push 1
push ebx
push edi
mov dword [ebp - 0x17c], esi
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x437b00
mov dword [ebp - 0x17c], esi
mov edx, dword [eax + 0xc]
lea esi, [eax + 8]
mov dword [ebp - 0x178], edx
mov eax, dword [esi]
mov dword [ebp - 0x15c], eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x180]
push edx
push 1
push ebx
push edi
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x160], 0
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov esi, dword [esi]
push esi
call fcn.0045abd1
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0045a101
add esp, 8
push edi
inc ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp ebx, eax
jl 0x437a10
mov esi, dword [ebp - 0x134]
mov byte [ebp - 4], 1
xor eax, eax
lea ecx, [ebp - 0x150]
push ecx
mov dword [ebp - 0x14c], eax
push edi
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x150], 0x1c
mov dword [ebp - 0x14c], 8
call dword [sym.imp.USER32.dll_GetMenuInfo]
test eax, eax
je 0x437b9a
mov edi, dword [ebp - 0x138]
mov byte [ebp - 4], 0
test edi, edi
je 0x437b8e
mov eax, dword [edi + 8]
test eax, eax
je 0x437b85
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
push edi
call fcn.0045a101
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x437997
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x437997
push 0x8007000e
call fcn.00401950
push 0x80070057
call fcn.00401950
push 0x80004005
call fcn.00401950
mov ecx, dword [esi + 0x2c]
mov ebx, dword [ecx + 4]
cmp byte [ebx + 0x19], 0
mov dword [ebp - 0x12c], ebx
jne 0x437c09
lea ebx, [ebx]
mov edx, dword [ebx + 8]
push edx
lea ecx, [esi + 0x28]
call fcn.00438b60
mov eax, dword [ebp - 0x12c]
mov ebx, dword [ebx]
push eax
call fcn.0045a101
add esp, 4
cmp byte [ebx + 0x19], 0
mov dword [ebp - 0x12c], ebx
je 0x437be0
mov eax, dword [esi + 0x2c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x2c]
mov dword [eax], eax
mov eax, dword [esi + 0x2c]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esi + 0x30], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x437c30
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esi + 8], ebx
mov dword [0x4928f0], ebx
mov ecx, dword [ebp - 0x130]
mov dword [ecx], 0
mov eax, 1
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