Function at 0x4b72d0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4f590c
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 [0x53d480]
mov ecx, 0x53d480
mov byte [esp + 0x48], 1
mov dword [esp + 0x24], 0x53d480
call dword [edx + 4]
mov eax, dword [0x537160]
mov byte [esp + 0x48], 2
cmp eax, ebx
jne 0x4b739e
cmp dword [0x53715c], ebx
jne 0x4b739e
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x48], 3
je 0x4b7373
mov ecx, eax
call fcn.00431f10
jmp 0x4b7375
xor eax, eax
mov dword [0x53715c], eax
mov eax, dword [0x528890]
push eax
push 0x4031c0
mov ecx, 0x53bea0
mov byte [esp + 0x50], 2
call fcn.00402190
mov dword [0x537160], 1
mov edx, dword [0x53d480]
mov esi, dword [0x53715c]
mov ecx, 0x53d480
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 0x4b746c
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4b746c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], ebx
push 0x5288b0
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x54], 5
call fcn.004030d0
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 0x5298d8
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.004030d0
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 0x4b7459
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x48], 1
cmp eax, ebx
je 0x4b746c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [0x53d440]
mov ebp, 0x53d440
mov ecx, ebp
mov dword [esp + 0x50], ebp
call dword [eax + 4]
mov eax, dword [0x53716c]
mov byte [esp + 0x48], 6
cmp eax, ebx
jne 0x4b74e5
cmp dword [0x537168], ebx
jne 0x4b74e5
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x48], 7
je 0x4b74b9
push ebx
mov ecx, eax
call fcn.00404a60
jmp 0x4b74bb
xor eax, eax
mov ecx, dword [0x528b70]
mov byte [esp + 0x48], 6
push ecx
push 0x404a30
mov ecx, 0x53bea0
mov dword [0x537168], eax
call fcn.00402190
mov dword [0x53716c], 1
mov edx, dword [0x53d440]
mov esi, dword [0x537168]
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 0x4b7551
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], 5
call fcn.00421890
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.00421890
jmp 0x4b75a4
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x50]
push ecx
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], 4
call fcn.00421890
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], 7
call fcn.00421890
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.00421a30
push 2
push edi
call fcn.004b79c0
push 0xc
push edi
call fcn.004b7d40
push 0xb
push edi
call fcn.004b8230
mov edx, dword [0x53d440]
add esp, 0x18
mov ecx, ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x50], ebp
call dword [edx + 4]
mov eax, dword [0x53716c]
mov byte [esp + 0x48], 8
cmp eax, ebx
jne 0x4b7637
cmp dword [0x537168], ebx
jne 0x4b7637
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x48], 9
je 0x4b760c
push ebx
mov ecx, eax
call fcn.00404a60
jmp 0x4b760e
xor eax, eax
mov dword [0x537168], eax
mov eax, dword [0x528b70]
push eax
push 0x404a30
mov ecx, 0x53bea0
mov byte [esp + 0x50], 8
call fcn.00402190
mov dword [0x53716c], 1
mov edx, dword [0x53d440]
mov esi, dword [0x537168]
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 0x4b7723
mov edx, dword [0x53d440]
mov ecx, ebp
mov dword [esp + 0x50], 9
mov dword [esp + 0x24], ebp
call dword [edx + 4]
mov eax, dword [0x53716c]
mov byte [esp + 0x48], 0xa
cmp eax, ebx
jne 0x4b76e1
cmp dword [0x537168], ebx
jne 0x4b76e1
push 0x110
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x48], 0xb
je 0x4b76b6
push ebx
mov ecx, eax
call fcn.00404a60
jmp 0x4b76b8
xor eax, eax
mov dword [0x537168], eax
mov eax, dword [0x528b70]
push eax
push 0x404a30
mov ecx, 0x53bea0
mov byte [esp + 0x50], 0xa
call fcn.00402190
mov dword [0x53716c], 1
mov edx, dword [0x53d440]
mov esi, dword [0x537168]
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 0x4b7717
mov eax, dword [esp + 0x50]
cmp eax, 4
je 0x4b771d
cmp eax, 5
je 0x4b771d
mov dword [esp + 0x10], ebx
jmp 0x4b7723
cmp dword [esp + 0x10], ebx
jne 0x4b773a
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 3
push 0x4b0
push edi
call esi
push 0x403
jmp 0x4b774e
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.004b8420
add esp, 8
call fcn.00418660
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 0x4b77b0
push 0xe
push edi
call ebp
mov esi, eax
cmp esi, ebx
je 0x4b77b0
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 0x4b77a2
push ebx
jmp 0x4b77a4
push 8
push 0x800e
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov dword [esp + 0x50], ebx
call fcn.00418660
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 0x4b77f7
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.00419040
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push eax
call dword [ecx + 8]
test eax, eax
jl 0x4b7878
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x4b7878
mov dword [esp + 0x18], ebx
push 0x52de00
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x50], 0xd
push eax
call fcn.004030d0
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 0x4b786a
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.00404bf0
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 1
call fcn.00404bf0
cmp dword [esp + 0x1c], ebx
je 0x4b7899
push 0x15
push edi
call fcn.004b8b10
add esp, 8
jmp 0x4b78e2
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], 0x14
call fcn.00421890
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00421890
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], 0x16
call fcn.00421890
push 0x10
push edi
call ebp
push eax
call fcn.004b96c0
add esp, 4
test eax, eax
jne 0x4b7907
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.00421890
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.004b8d20
mov eax, dword [esp + 0x44]
add esp, 0x10
cmp eax, ebx
je 0x4b794e
mov esi, dword [esp + 0x38]
sub esi, eax
sar esi, 2
je 0x4b794e
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 0x4b7938
push eax
mov eax, dword [esp + 0x3c]
push eax
push eax
call fcn.00412fa0
mov edx, dword [esp + 0x44]
add esp, 0xc
mov esi, eax
lea ecx, [esp + 0x30]
push edx
push esi
call fcn.0047e270
push edi
mov dword [esp + 0x3c], esi
call fcn.00402880
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x48], bl
je 0x4b798f
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