Function at 0x4b4bf0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4f2c9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov al, byte [esp + 0x40]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], 0x15
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x14], ebx
mov edx, dword [0x53a3c0]
mov ecx, 0x53a3c0
mov byte [esp + 0x48], 1
mov dword [esp + 0x24], 0x53a3c0
call dword [edx + 4]
mov eax, dword [0x534040]
mov byte [esp + 0x48], 2
cmp eax, ebx
jne 0x4b4cbe
cmp dword [0x53403c], ebx
jne 0x4b4cbe
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x48], 3
je 0x4b4c93
mov ecx, eax
call fcn.00431c60
jmp 0x4b4c95
xor eax, eax
mov dword [0x53403c], eax
mov eax, dword [0x525888]
push eax
push 0x4031b0
mov ecx, 0x538d90
mov byte [esp + 0x50], 2
call fcn.00402180
mov dword [0x534040], 1
mov edx, dword [0x53a3c0]
mov esi, dword [0x53403c]
mov ecx, 0x53a3c0
mov byte [esp + 0x48], 1
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [eax + 8]
mov edi, dword [esp + 0x50]
test eax, eax
jl 0x4b4d8c
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4b4d8c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], ebx
push 0x5258a8
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x54], 5
call fcn.004030c0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [esp + 0x14]
push 0x526890
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.004030c0
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x24]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, dword [esp + 0x24]
push ebx
add edx, 0x4b7
push edx
push 0x4b9
push 0x4b7
push edi
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov eax, dword [esp + 0x50]
mov byte [esp + 0x48], 4
cmp eax, ebx
je 0x4b4d79
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x48], 1
cmp eax, ebx
je 0x4b4d8c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [0x53a380]
mov ebp, 0x53a380
mov ecx, ebp
mov dword [esp + 0x50], ebp
call dword [eax + 4]
mov eax, dword [0x53404c]
mov byte [esp + 0x48], 6
cmp eax, ebx
jne 0x4b4e05
cmp dword [0x534048], ebx
jne 0x4b4e05
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x48], 7
je 0x4b4dd9
push ebx
mov ecx, eax
call fcn.00404ab0
jmp 0x4b4ddb
xor eax, eax
mov ecx, dword [0x525b68]
mov byte [esp + 0x48], 6
push ecx
push 0x404a80
mov ecx, 0x538d90
mov dword [0x534048], eax
call fcn.00402180
mov dword [0x53404c], 1
mov edx, dword [0x53a380]
mov esi, dword [0x534048]
mov ecx, ebp
mov byte [esp + 0x48], 1
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [eax + 0x88]
cmp dword [esp + 0x20], ebx
jne 0x4b4e71
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], 5
call fcn.0049ba20
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
xor ecx, ecx
cmp edx, ebx
setne cl
add ecx, 7
lea edx, [esp + 0x50]
mov dword [esp + 0x50], ecx
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.0049ba20
jmp 0x4b4ec4
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x50]
push ecx
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], 4
call fcn.0049ba20
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], 7
call fcn.0049ba20
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x50]
push edx
push 1
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], 8
call fcn.00421640
push 2
push edi
call fcn.004b52e0
push 0xc
push edi
call fcn.004b5660
push 0xb
push edi
call fcn.004b5b50
mov edx, dword [0x53a380]
add esp, 0x18
mov ecx, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x50], ebp
call dword [edx + 4]
mov eax, dword [0x53404c]
mov byte [esp + 0x48], 8
cmp eax, ebx
jne 0x4b4f57
cmp dword [0x534048], ebx
jne 0x4b4f57
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x48], 9
je 0x4b4f2c
push ebx
mov ecx, eax
call fcn.00404ab0
jmp 0x4b4f2e
xor eax, eax
mov dword [0x534048], eax
mov eax, dword [0x525b68]
push eax
push 0x404a80
mov ecx, 0x538d90
mov byte [esp + 0x50], 8
call fcn.00402180
mov dword [0x53404c], 1
mov edx, dword [0x53a380]
mov esi, dword [0x534048]
mov ecx, ebp
mov byte [esp + 0x48], 1
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [eax + 0xb4]
cmp dword [esp + 0x10], ebx
je 0x4b5043
mov edx, dword [0x53a380]
mov ecx, ebp
mov dword [esp + 0x50], 9
mov dword [esp + 0x24], ebp
call dword [edx + 4]
mov eax, dword [0x53404c]
mov byte [esp + 0x48], 0xa
cmp eax, ebx
jne 0x4b5001
cmp dword [0x534048], ebx
jne 0x4b5001
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x48], 0xb
je 0x4b4fd6
push ebx
mov ecx, eax
call fcn.00404ab0
jmp 0x4b4fd8
xor eax, eax
mov dword [0x534048], eax
mov eax, dword [0x525b68]
push eax
push 0x404a80
mov ecx, 0x538d90
mov byte [esp + 0x50], 0xa
call fcn.00402180
mov dword [0x53404c], 1
mov edx, dword [0x53a380]
mov esi, dword [0x534048]
mov ecx, ebp
mov byte [esp + 0x48], 1
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x50]
push ecx
push esi
call dword [eax + 0xa8]
test eax, eax
jl 0x4b5037
mov eax, dword [esp + 0x50]
cmp eax, 4
je 0x4b503d
cmp eax, 5
je 0x4b503d
mov dword [esp + 0x10], ebx
jmp 0x4b5043
cmp dword [esp + 0x10], ebx
jne 0x4b505a
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 3
push 0x4b0
push edi
call esi
push 0x403
jmp 0x4b506e
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
push ebx
push 0x4b0
push edi
call esi
push 0x400
push 6
push edi
call esi
push 0xd
push edi
call fcn.004b5d40
add esp, 8
call fcn.004184b0
mov edx, dword [eax]
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [edx + 0xa0]
mov eax, dword [esp + 0x50]
mov ebp, dword [sym.imp.USER32.dll_GetSubMenu]
cmp eax, ebx
je 0x4b50d0
push 0xe
push edi
call ebp
mov esi, eax
cmp esi, ebx
je 0x4b50d0
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x24]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
cmp dword [esp + 0x24], ebx
jne 0x4b50c2
push ebx
jmp 0x4b50c4
push 8
push 0x800e
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov dword [esp + 0x50], ebx
call fcn.004184b0
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [edx + 0xa0]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4b5117
mov edx, dword [eax]
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [edx + 0x50]
mov edx, dword [esp + 0x50]
push ebx
add edx, 0x803c
push edx
push 0x803e
push 0x803c
push edi
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov dword [esp + 0x50], ebx
mov byte [esp + 0x48], 0xc
call fcn.00418e90
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push eax
call dword [ecx + 8]
test eax, eax
jl 0x4b5198
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x4b5198
mov dword [esp + 0x18], ebx
push 0x52ade0
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x50], 0xd
push eax
call fcn.004030c0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
push 6
push edi
call ebp
cmp eax, ebx
je 0x4b518a
mov ecx, dword [esp + 0x24]
push ebx
add ecx, 0x4b2
push ecx
push 0x4b6
push 0x4b2
push eax
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0xc
call fcn.00439b90
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 1
call fcn.00439b90
cmp dword [esp + 0x1c], ebx
je 0x4b51b9
push 0x15
push edi
call fcn.004b6430
add esp, 8
jmp 0x4b5202
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], 0x14
call fcn.0049ba20
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.0049ba20
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], 0x16
call fcn.0049ba20
push 0x10
push edi
call ebp
push eax
call fcn.004b6fe0
add esp, 4
test eax, eax
jne 0x4b5227
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.0049ba20
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push ebx
push ecx
push edx
push eax
call fcn.004b6640
mov eax, dword [esp + 0x44]
add esp, 0x10
cmp eax, ebx
je 0x4b526e
mov esi, dword [esp + 0x38]
sub esi, eax
sar esi, 2
je 0x4b526e
mov ebp, dword [sym.imp.USER32.dll_DeleteMenu]
mov ecx, dword [eax + esi*4 - 4]
dec esi
push 0x400
push ecx
push edi
call ebp
mov eax, dword [esp + 0x34]
cmp esi, ebx
jne 0x4b5258
push eax
mov eax, dword [esp + 0x3c]
push eax
push eax
call fcn.00412c90
mov edx, dword [esp + 0x44]
add esp, 0xc
mov esi, eax
lea ecx, [esp + 0x30]
push edx
push esi
call fcn.0048d320
push edi
mov dword [esp + 0x3c], esi
call fcn.00402870
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x48], bl
je 0x4b52af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x34]
push edx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x44]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret